[Libav-user] Advice/settings needed for encoding at timebase 15fps

Chris Hennes chennes at pioneerlibrarysystem.org
Tue Feb 21 18:39:13 EET 2017


I'm trying to use the code from doc/examples/decoding_encoding.c as the basis for a piece of software that needs to encode at 15fps. I can't use the encoder specified in that example (AV_CODEC_ID_MPEG1VIDEO) because it doesn't support a 15fps timebase. So I figured I'd use H.264 since that seems to be a common option these days. I don't get any errors when I run the example code modified to use AV_CODEC_ID_H264, and an mp4 file is generated, but neither VLC nor Windows Media Player will play it. Libx264 seems perfectly content with its file creation, but I don't know how to interpret its stdout except to note that there don't appear to be any errors.

When using ffmpeg on the command line I can generate the file I need by simply passing the appropriate -r and -pixfmt yuv420p options. Can anyone direct me to a set of libavcodec options that will do what I need? Or a way to figure out what options ffmpeg is using internally?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170221/5cf4d0b1/attachment.html>


More information about the Libav-user mailing list