[Libav-user] Where and how to add a custom hardware decoder in libavcodec ?
Hi, I am new to ffmpeg, am working on a *custom board* which has its own hardware decoder. I have a linux application for hardware decoder which take a h264 file as input and provides a yuv file as output. It working fine, now we are extending this support to *gstreamer* and *ffmpeg* libraries. I am familiar with gstreamer but new to ffmpeg. I just need some quick suggestions on where to add a new decoder and an example (in ffmpeg source) on how to do that ! Please guyz help me. -- View this message in context: http://libav-users.943685.n4.nabble.com/Where-and-how-to-add-a-custom-hardware-decoder-in-libavcodec-tp4662203.html Sent from the libav-users mailing list archive at Nabble.com. ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
Re: [Libav-user] Converting from 25 to 29.97fps
buffer the decoded frames for a few hundred millisecond and queue the frames and then render at a particular interval On Thu, May 26, 2016 at 7:11 PM, Scottwrote: > I am converting a 25fps mp4 file to VCD format (ntsc). It's watchable > but I notice "flickering pixels" that occur during > playback. Parts of the image become mildly blurred then quickly flick > back. I'm assuming this is because of mismatched frame rates. Are they > ways of mitigating this "flickering" via filters? Thank you. > > -s > ___ > Libav-user mailing list > Libav-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/libav-user > ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
[Libav-user] Odd problem after encoding video
Hello, I am encoding video with a new framerate expecting a slowdown or speed up in the final result. Odd thing is: "Videos" or ffmpeg player seems to give me expected results while VLC plays the video at the same-ish framerate (makes no difference what FPS I set) Encoder setup: out_codec = avcodec_find_encoder(AV_CODEC_ID_H264); if (!out_codec) { cout << "out_codec found" << endl; exit(1); } pOutputContext = avcodec_alloc_context3(out_codec); if (!pOutputContext) { cout << "Could not allocate video codec context" << endl; exit(1); } // put sample parameters pOutputContext->bit_rate = FILE_OUTPUT_WIDTH * FILE_OUTPUT_HEIGHT * 4; pOutputContext->width = FILE_OUTPUT_WIDTH; pOutputContext->height = FILE_OUTPUT_HEIGHT; // frames per second pOutputContext->time_base.den = OUT_FRAMERATE; //FPS pOutputContext->time_base.num = 1; pOutputContext->gop_size = 10; pOutputContext->max_b_frames = 1; pOutputContext->pix_fmt = AV_PIX_FMT_YUV420P; av_opt_set(pOutputContext->priv_data, "preset", "slow", 0); Any thoughts what might cause this behaviour? /Kris ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
Re: [Libav-user] how to predict the size of destination clips
I second that, I would love how to know at least the upper bound estimate for the file size of an encoded video before I encode it. this can be something like this: AVCodecContext->max_bitrate * (duration_in_secs / 8) [ bytes ] -- С уважением,Слободенюк Александр Игоревич контактный телефон: +7-925-050-64-62 02.06.2016, 15:59, "Peter Steinbach":I second that, I would love how to know at least the upper bound estimate for the file size of an encoded video before I encode it.Best,Peter___Libav-user mailing listLibav-user@ffmpeg.orghttp://ffmpeg.org/mailman/listinfo/libav-user___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
Re: [Libav-user] how to predict the size of destination clips
I second that, I would love how to know at least the upper bound estimate for the file size of an encoded video before I encode it. Best, Peter ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
[Libav-user] how to predict the size of destination clips
Hi, Does ffmpeg provide some function that can predict the size of destination clips before transcoding? Thanks! B.R. Andrew ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
[Libav-user] how to know whether disk is full or not
Hi, If disk is full, does ffmpeg provide some functions to report full-disk error? Thanks! B.R. Andrew ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user