[FFmpeg-devel] About Unchanged Frames

Michael Niedermayer michaelni
Sat May 10 12:12:23 CEST 2008

On Fri, May 09, 2008 at 11:42:01PM -0700, Mike Melanson wrote:
> Hi,
> The type of material I am trying to encode with ZMBV has a lot of 
> unchanged frames. It seems that the best ZMBV can do with unchanged 
> frames is 11-12 bytes. I seem to recall that it's possible to stuff an 
> AVI file with an empty frame (i.e., a '00dc' chunk with a 0-length 
> payload) that the demuxer will interpret as an empty frame (I have some 
> H.264 AVI files that do this). How can an encoder communicate to FFmpeg 
> that the AVI muxer should mux a 0-length frame? When I try to return 0 
> from the encode_frame() function, FFmpeg construes that as a skipped 
> frame and doesn't mux it.

The avi muxer will add 0 frames as needed depending on dts.
Anyway try skip_threshold,
if it works (with mpeg4) then your code is buggy
if it doesnt then mine is :)


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080510/475d2656/attachment.pgp>

More information about the ffmpeg-devel mailing list