[Ffmpeg-devel] FPS being read wrong?

Andy Parkins andyparkins
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 
to set.

Dr Andrew Parkins, M Eng (hons), AMIEE

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050701/a707e51e/attachment.pgp>

More information about the ffmpeg-devel mailing list