[FFmpeg-devel] fps wrong with codecpar
Gonzalo
ggarra13 at gmail.com
Fri Jul 1 01:56:14 CEST 2016
I emailed libav-user, but got no replies. Thought it might be better to
post here.
I compiled ffmpeg HEAD and compiled the one example that uses the new
api (muxing.c). It compiles and runs fine, but it creates a movie with
wrong fps according to ffprobe:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
encoder : Lavf57.40.101
Duration: 00:00:10.03, start: 0.000000, bitrate: 289 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
352x288, 220 kb/s, 25.10 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
(snip)
Notice it says 25.10 fps, instead of 25fps. When I converted my
application in a similar way to muxing.c I got weird fps like 25.1603.
When using the old api, all works fine and the fps are okay (but you get
complaints about st->codec being deprecated).
--
Gonzalo Garramuño
ggarra13 at gmail.com
More information about the ffmpeg-devel
mailing list