[mythtv-commits] Ticket #8875: av-sync lost

MythTV mythtv at cvs.mythtv.org
Sun Oct 3 12:11:06 UTC 2010


#8875: av-sync lost
-----------------------------------------------+----------------------------
 Reporter:  Markus Schulz <msc@…>              |           Owner:  tralph    
     Type:  defect                             |          Status:  closed    
 Priority:  minor                              |       Milestone:  0.24      
Component:  MythTV - Video Playback            |         Version:  Trunk Head
 Severity:  medium                             |      Resolution:  fixed     
 Keywords:                                     |   Ticket locked:  0         
-----------------------------------------------+----------------------------

Comment (by Markus Schulz <msc@…>):

 i've attached the log. same file except in an avi container.

 why the fps was calculated? Sounds stupid to me, cause you don't know if
 the audio was long enough for all video frames?!? Only the container knows
 the right choice (written by encoder).

 the new code results in 25fps for the matroska:
 {{{
 AFD: Selected FPS is 25 (matroska 25 stream 23.9791 container 1000
 estimated 23.9791)
 Player(0): Display Refresh Rate: 59.952 Video Frame Rate: 25.000
 }}}

 but still wrong for avi (cause: new code only affects mkv files):
 {{{
 Selected FPS is 23.9791 (matroska 0 stream 23.9791 container 25 estimated
 23.9791)
 Player(1): Display Refresh Rate: 59.952 Video Frame Rate: 23.980
 }}}

 but really strange was for me, that some avi files with perfect av-sync:
 {{{
 AFD: Selected FPS is 23.976 (matroska 0 stream 23.976 container 25
 estimated 23.976)
 Player(2): Display Refresh Rate: 59.952 Video Frame Rate: 23.976
 }}}

 results too in "Selected FPS" of 23,976 and was played perfectly synced at
 25fps:
 {{{
 'video_output' mean = '40009,83', std. dev. = '11201,69', fps = '24,99'
 'video_output' mean = '40010,56', std. dev. = '10616,94', fps = '24,99'
 'video_output' mean = '40010,63', std. dev. = '10573,37', fps = '24,99'
 'video_output' mean = '40010,51', std. dev. = '10190,71', fps = '24,99'
 }}}

 i think for an avi file only the container can know the right choice for
 the fps.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8875#comment:9>
MythTV <http://www.mythtv.org/>
MythTV Media Center


More information about the mythtv-commits mailing list