I have seen some flv streams in which the AVCodecContext timing is inconsistent with the timing from the AVStream. For example, in one case the AVCodecContext pts / time_base indicates 50 fps while the AVStream pts / time_base indicates 25 fps (see dump below). The codec context does not indicate it is interlaced. Am I miossing something here? Should one rely on the AVStream values instead of the codec values?

Thanks,
Bob

Input #0, flv, from '':
 Metadata:
   duration        : 137
   starttime       : 0
   totalduration   : 137
   width           : 640
   height          : 360
   videodatarate   : 738
   audiodatarate   : 117
   totaldatarate   : 861
   framerate       : 25
   bytelength      : 14758699
   canseekontime   : true
   sourcedata      : BD075FA44HH1280178702169965
   purl            :
   pmsg            :
 Duration: 00:02:16.59, start: 0.000000, bitrate: 756 kb/s
Stream #0.0: Video: h264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 756 kb/s, 50 fps, 25 tbr, 1k tbn, 50 tbc
   Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to