[Libav-user] Keeping all frames in mp4 with h264 codec

Arthur Muller muller at vki.com
Mon Feb 8 17:15:02 CET 2016


Hello,

 

I'm generating a mp4 file using the H264 encoder from a series of still
frames. This is just an animation from a technical simulation, so every
frame is important and the viewer often needs to step through one frame at a
time.

 

If I encode it using the MPEG4 encoder everything is fine. But with the H264
encoder (using the same code otherwise), I end up with missing frames. I
step through frame-by-frame with Windows Media and the total number of
frames is smaller than what I start with.

 

1) Is there a way to force the h264 encoder to keep all frames so one can
recover the original images if necessary if advancing the video frame by
frame?

 

2) Can somebody point out to me the controls I can use - from an API
perspective - to control how frames are kept using libx264?

 

Thanks.

 

-Arthur

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160208/6b035d0f/attachment.html>


More information about the Libav-user mailing list