View Single Post
Old 22nd August 2010, 20:43   #123  |  Link
Underground78
Registered User
 
Underground78's Avatar
 
Join Date: Oct 2004
Location: France
Posts: 567
Thanks !

I have been playing with the code today and I wonder why you choose to use avg_frame_rate rather than r_frame_rate ?

I have few samples (TS File mostly) whose frame rate was incorrectly detected by LAVFSplitter but not by VLC and mplayer. I saw that r_frame_rate was correct so I had a look to VLC and mplayer source code and they do use r_frame_rate rather than avg_frame_rate. I modified a bit the code to do more testing and so far all the samples I have tested have worked.

Also I have been tracking down a bug with incorrect aspect ratio with some TS file but it is highly strange, ffprobe does detect the AR correctly but using a debug build of LAVFSplitter I see that the aspect ratio is not detected. I use ffprobe compiled at the same time than the libs used by the splitter and looking at ffprobe code I can't see why it does not work.

Last edited by Underground78; 22nd August 2010 at 20:48.
Underground78 is offline   Reply With Quote