[FFmpeg-devel] Skip Frame in MJPEG video

Michael Niedermayer michaelni at gmx.at
Thu May 26 13:45:49 CEST 2011


On Thu, May 26, 2011 at 11:31:19AM +0200, christophe laferriere wrote:
> After some time, I haven't found anything concerning skipping frame for MJPEG in libavformat directory.

what exactly are you trying to do ?


> I instead found a function called 'find_frame_end' in libavcodec/mjpeg* but I don't find a link between this function and the way frames are dropped / skipped.
> I'm looking for the part that actually skip bytes from input file.
> 
> Le 25 mai 2011 à 16:57, Michael Niedermayer a écrit :
> 
> > On Wed, May 25, 2011 at 04:42:28PM +0200, christophe laferriere wrote:
> >> Hi all,
> >> 
> >> I'm wondering if there is a function to skip an entire frame in MJPEG video in ffmpeg sources and where it stands (if there's one).
> > 
> > there is some code in demuxers to skip frames (grep for discard in
> > libavformat)
> > 
> > there is code that can skip frames to maintain a requested fps in
> > ffmpeg.c, see the code surrounding video_sync_method
> > 
> > [...]
> > -- 
> > Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> > 
> > The educated differ from the uneducated as much as the living from the
> > dead. -- Aristotle 
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> 
> --
> Chris.
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- 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/20110526/df327341/attachment.asc>


More information about the ffmpeg-devel mailing list