There are two questions in this email, any form or help to any question will
be extremely appreciated.
Question 1.
I realized if I do ffmpeg -i on the flv file generated by my program using
libav, I got the following error:
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 29.92 (359/12)
However, the same program used to generate mpeg file is fine. Does anybody
happen to have a clue of what is missing here? I specifically specify the
codec frame rate by
c->time_base.den = 30000;
c->time_base.num = 1001;
no clue what is going on.
Question 2.
I also need help interpreting some ffmpeg output. What does tbc, tbr, tbn
really mean, physically? I saw the following output from ffmpeg, but this
numbers don't make sense to me. 29.92 looks like frame rate, but I specify
the frame rate as 30000/1001, which should be 29.97, I have no idea where
29.92 comes from. 1k tbn and 1k tbc do not make sense to me either.
Stream #0.0: Video: flv, yuv420p, 624x472, 665 kb/s, 29.92 tbr, 1k tbn, 1k
tbc
Entire output is shown below.
$ ffmpeg -i test_cgi.flv
FFmpeg version SVN-r26263, Copyright (c) 2000-2011 the FFmpeg developers
built on Mar 10 2011 01:16:34 with gcc 4.3.2
configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-ffserver --enable-ffplay --enable-ffmpeg --enable-libfaac
--enable-libvorbis --enable-libx264 --enable-ffprobe --enable-pthreads
--enable-static --enable-shared --build-suffix=_mary101 --enable-pic
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.107. 0 / 52.107. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
[flv @ 0x1a06510] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 29.92 (359/12)
Input #0, flv, from 'test_cgi.flv':
Metadata:
duration : 1
width : 624
height : 472
videodatarate : 649
framerate : 0
videocodecid : 2
audiodatarate : 125
audiosamplerate : 22050
audiosamplesize : 16
stereo : false
audiocodecid : 2
encoder : Lavf52.92.0
filesize : 248145
Duration: 00:00:01.43, start: 0.000000, bitrate: 793 kb/s
Stream #0.0: Video: flv, yuv420p, 624x472, 665 kb/s, 29.92 tbr, 1k tbn,
1k tbc
Stream #0.1: Audio: mp3, 22050 Hz, 1 channels, s16, 128 kb/s
At least one output file must be specified
_______________________________________________
libav-user mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-user