[FFmpeg-devel] Skip Frame in MJPEG video

Michael Niedermayer michaelni at gmx.at
Fri May 27 15:08:24 CEST 2011


On Fri, May 27, 2011 at 10:21:36AM +0200, christophe laferriere wrote:
> I mean that I'm looking for a way to skip all bytes (in a FILE* in my case) from a same frame (for example in order to maintain a certain framerate.) so I was wondering how does the equivalent piece of code from ffmpeg look like.

the frame rate maintaince code is in ffmpeg.c in
if(video_sync_method){

one could say the:
    if (nb_frames <= 0)
        return;

is doing the skiping

This does not work on "FILE *" level it works on frame level.
You need a demuxer first to get the frames out of a file and then you
can in case of intra only codecs skip frames.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110527/62741489/attachment.asc>


More information about the ffmpeg-devel mailing list