encoder

How to write a video encoder with ffmpeg that explicitly controls the position of keyframes?

旧街凉风 提交于 2019-12-03 03:43:48
问题 I want to write an encoder with ffmpeg which can put iFrames (keyframes) at positions I want. Where can I found tutorials or reference material for it? P.S Is it possible to do this with mencoder or any opensource encoder. I want to encode H263 file. I am writing under & for linux. 回答1: You'll need to look at the libavcodec documentation - specifically, at avcodec_encode_video(). I found that the best available documentation is in the ffmpeg header files and the API sample source code that's

base64 image decoder for ASP classic

一笑奈何 提交于 2019-12-02 16:26:43
问题 Can any one tell me how to decode a base64 encoded image in classic ASP? The image is encoded by Java org.apache base64 class. The Java uses RFC 2045 for base64 decoding. 回答1: You can use the Capicom COM object. I've been using it to to the reverse (base64 encoding). This is what I would do (if you've got a big loop, you'd better have the CreateObject done outside the loop, but in simple cases this should do it): Function Base64Decode(encodedString) Dim caputil : Set caputil = CreateObject(

How to write a video encoder with ffmpeg that explicitly controls the position of keyframes?

爷,独闯天下 提交于 2019-12-02 15:58:38
I want to write an encoder with ffmpeg which can put iFrames (keyframes) at positions I want. Where can I found tutorials or reference material for it? P.S Is it possible to do this with mencoder or any opensource encoder. I want to encode H263 file. I am writing under & for linux. You'll need to look at the libavcodec documentation - specifically, at avcodec_encode_video(). I found that the best available documentation is in the ffmpeg header files and the API sample source code that's provided with the ffmpeg source. Specifically, look at libavcodec/api-example.c or even ffmpeg.c. To force

base64 image decoder for ASP classic

老子叫甜甜 提交于 2019-12-02 11:48:31
Can any one tell me how to decode a base64 encoded image in classic ASP? The image is encoded by Java org.apache base64 class. The Java uses RFC 2045 for base64 decoding. You can use the Capicom COM object. I've been using it to to the reverse (base64 encoding). This is what I would do (if you've got a big loop, you'd better have the CreateObject done outside the loop, but in simple cases this should do it): Function Base64Decode(encodedString) Dim caputil : Set caputil = CreateObject("CAPICOM.Utilities") If len(encodedString) > 0 Then Base64Decode = caputil.Base64Decode(encodedString) Else

Priority encoder in verilog

筅森魡賤 提交于 2019-12-01 14:30:19
I am somewhat new to verilog, I tried running this code but it gives me an error: module enc(in,out); input [7:0] in; output [3:0] out; reg i; reg [3:0] out; always @* begin for (i=0;i<7;i=i+1) begin if ((in[i]==1) && (in[7:i+1]==0)) out = i; else out = 0; end end endmodule I think it complains about in[7:i+1] but i don't understand why ? Can someone please advise.. EDIT ok so I am reluctant to using the X due to their numerous problems.. I was thinking of modifying the code to something like this : module enc(in,out); input [7:0] in; output [2:0] out; reg i; reg [2:0] out,temp; always @*

Nexus 7 2013 mediacodec video encoder garbled output

故事扮演 提交于 2019-12-01 11:15:05
I'm working on an app which encodes a movie using h.264 encoder to gallery and other targets. This app supports variable aspect ratios at output (1:1, 2:3, 3:2, 16:9, 3:4, 4:3). I'm using surface inputs for input/output from the 4.3 API. The app works ok on many devices (tested on S3, Motorola G, Nexus 7 2012, Motorola X), however, I've hit a wall when running it on Nexus 7 2013. Basically, some output resolutions work, some do not. 3:4 (720x960), 2:3 (720x1080) and 16:9 (1280x720) work as intended, but the rest (1:1 (960x960), 3:2 (1080x720) and 4:3 (960x720)) produce an output like this:

How can I turn a series of images into a video using JCodec?

不羁的心 提交于 2019-12-01 00:41:27
I'm trying to use JCodec to turn a series of images into a video inside of a Java SE desktop application. The few methods I've tried all resulted in a video that Windows Media Player could not play. It is unclear to me if this is a codec issue (doubtful) or if I'm not creating the video properly. When I try to play the video in Windows Media Player I get: Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file. Here is the cobbled together sample that I've been using most recently. I really don't

Using jcodec SequenceEncoder

你。 提交于 2019-11-30 05:19:38
I need to create video from images, I have seen jcodec and I think it is what I need: http://jcodec.org/ How do I add jcodec to my project? I have seen there is a version for android. Correct me if I am wrong, but I added jcodec-0.1.5.jar to my project under the libs folder. Then added SequenceEncoder.java and BitmapUtil.java from jcodec-android-0.1.7.zip to my package but when I add: public void encodeImage(Bitmap bi) throws IOException { encodeNativeFrame(BitmapUtil.fromBitmap(bi)); } It gives me error on package com.example.seqtest and asks me to configure build path. So how I use it, How

MediaCodec H264 Encoder not working on Snapdragon 800 devices

▼魔方 西西 提交于 2019-11-29 22:39:24
I have written a H264 Stream Encoder using the MediaCodec API of Android. I tested it on about ten different devices with different processors and it worked on all of them, except on Snapdragon 800 powered ones (Google Nexus 5 and Sony Xperia Z1). On those devices I get the SPS and PPS and the first Keyframe, but after that mEncoder.dequeueOutputBuffer(mBufferInfo, 0) only returns MediaCodec.INFO_TRY_AGAIN_LATER. I already experimented with different timeouts, bitrates, resolutions and other configuration options, to no avail. The result is always the same. I use the following code to

Multiple instances of MediaCodec used as video encoder in Android

孤者浪人 提交于 2019-11-29 05:12:41
Is it possible to use two Android MediaCodec instances as video encoder to encode two videos simultaneously? I know that MediaCodec itself can have multiple instances, for video/audio encoding/decoding. But is there any restriction on hardware/Android version on encoding multiple videos, besides the impact of performance? More specifically, if considering only Android version 4.3 or higher, is multiple instances of video encoder valid or still be device-dependent? From my experience it completely depends on a device. And there are devices that are able to support only one instance of video