[Ffmpeg-devel] FPS being read wrong?
Fri Jul 1 12:18:45 CEST 2005
I'm writing an mpeg ts stream in one process:
Output #0, mpegts, to '/home/andyp/live.ts':
Stream #0.0: Video: mpeg4, 720x576, 25.00 fps, q=2-31, 700 kb/s
And reading it in another:
Input #0, mpegts, from '/home/andyp/live.ts':
Duration: 02:21:39.0, start: 0.000000, bitrate: 1735 kb/s
Stream #0.0[0x100]: Video: mpeg4, yuv420p, 720x576, 29.97 fps
How come the FPS has changed between the read and the write? At present I'm
codecCtx->time_base.den = 25025;
codecCtx->time_base.num = 1001;
Before I start writing - is there another field I need to set to make the
stream get the correct frame rate?
I had a look at dump_format() but as far as I can tell the same field is being
used for displaying FPS in both cases; so I can only guess that in the input
case, the frame rate is read from some other structure that I have neglected
Dr Andrew Parkins, M Eng (hons), AMIEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel