Sync to VBlank & non 60hz framerate

View: New views
7 Messages — Rating Filter:   Alert me  

Sync to VBlank & non 60hz framerate

by Mark Buechler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a question regarding people's experience with using XVideoTextureSyncToVBlank, XVideoBlitterSyncToVBlank or SyncToVBlank. I have an nvidia 8500 so I use XVideoTextureSyncToVBlank=1. For all 30fps (specifically 29.94 ) video, this works very well. Without it I get tearing. I am using OpenGL VSync:

2007-09-27 08:00:04.790 OpenGLVideoSync()
2007-09-27 08:00:04.793 OpenGLVideoSync: x,y -> 959, 540
2007-09-27 08:00:04.810 Using OpenGLVideoSync

However, often times with streams playing at near 60fps (ie: 59.88), I get quite a lot of stuttering and "video behind audio" messages from myth. My modeline is 1080i@...:

"1080i-spec" 74.175824 1920 1960 2008 2200 1080 1084 1094 1125 interlace -hsync -vsync

Note, I also use ExactModeTimingsDVI=true in my configuration. If I set XVideoTextureSyncToVBlank to 0 then playback is flawless. Has anyone else run into this issue and found a solution? Should I be using a better modeline?

Thanks, Mark.

_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Re: Sync to VBlank & non 60hz framerate

by Alex Halovanic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When you run mythfrontend --verbose playback on 60i videos, what
numbers do you see for this line?
2007-09-27 21:16:38.864 Refresh rate: 16682, frame interval: 33366


Alex
_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Re: Sync to VBlank & non 60hz framerate

by Mark Buechler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2007-09-27 22:31:35.167 RingBuf(/shares/recordings/LiveTV/23_20070927223134.mpg): CalcReadAheadThresh(0 KB)
                         -> threshhold(16 KB) min read(0 KB) blk size(8 KB)
2007-09-27 22:31:35.167 NVP: DoPlay: rate: 59.9401 speed: 1 skip: 1 => new interval 16683
2007-09-27 22:31:35.167 VDP: LoadBestPreferences(1280x720, 59.9401)
2007-09-27 22:31:35.167 Set video sync frame interval to 16683
...
2007-09-27 22:17:35.869 NVP: 6000 progressive frames seen.
'video_output' mean = '16700.18', std. dev. = '538.00', fps = '59.88'
2007-09-27 22:17:36.403 NVP: Video is 3.01211 frames behind audio (too slow), dropping frame to catch up.
'video_output' mean = ' 16533.07', std. dev. = '1670.55', fps = '60.48'
'video_output' mean = '16700.09', std. dev. = '151.11', fps = '59.88'
'video_output' mean = '16699.88', std. dev. = ' 190.23', fps = '59.88'
2007-09-27 22:17:42.532 NVP: 6400 progressive frames seen.
'video_output' mean = '16700.23', std. dev. = '172.90', fps = '59.88'
'video_output' mean = ' 16699.88', std. dev. = '127.77', fps = '59.88'
'video_output' mean = '16699.94', std. dev. = '128.48', fps = '59.88'
'video_output' mean = '16701.04', std. dev. = ' 139.58', fps = '59.88'
2007-09-27 22:17:49.212 NVP: 6800 progressive frames seen.
'video_output' mean = '16699.85', std. dev. = '174.26', fps = '59.88'
'video_output' mean = ' 16699.34', std. dev. = '128.89', fps = '59.88'
2007-09-27 22:17:51.634 NVP: Video is 3.00719 frames behind audio (too slow), dropping frame to catch up.
'video_output' mean = '16533.31 ', std. dev. = '1656.91', fps = '60.48'
'video_output' mean = '16699.98', std. dev. = '155.11', fps = '59.88'
2007-09-27 22:17:55.877 NVP: 7200 progressive frames seen.

On 9/27/07, Alex Halovanic <halovanic@...> wrote:
When you run mythfrontend --verbose playback on 60i videos, what
numbers do you see for this line?
2007-09-27 21:16:38.864 Refresh rate: 16682, frame interval: 33366


Alex
_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Re: Sync to VBlank & non 60hz framerate

by Mark Buechler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Sorry, mismatched log entries.. see below:

2007-09-27 22:31:35.167 RingBuf(/shares/recordings
/LiveTV/23_20070927223134.mpg): CalcReadAheadThresh(0 KB)
                         -> threshhold(16 KB) min read(0 KB) blk size(8 KB)
2007-09-27 22:31:35.167 NVP: DoPlay: rate: 59.9401 speed: 1 skip: 1 => new interval 16683
2007-09-27 22:31:35.167 VDP: LoadBestPreferences(1280x720, 59.9401)
2007-09-27 22:31:35.167 Set video sync frame interval to 16683
...
2007-09-27 22:31:38.851 NVP: Waiting for prebuffer.. 0 (au)(au)(au)(au)(au)(au)(au)(au)(au)(au)(au)AAAAAAAAAAAAAAAAAAAA
'video_output' mean = '77219.99', std. dev. = '514135.24', fps = '12.95'
'video_output' mean = ' 16721.62', std. dev. = '539.75', fps = '59.80'
'video_output' mean = '16708.91', std. dev. = '561.81', fps = '59.85'
'video_output' mean = '16705.46', std. dev. = ' 615.61', fps = '59.86'
2007-09-27 22:31:45.539 NVP: 400 progressive frames seen.
'video_output' mean = '16714.11', std. dev. = '532.07', fps = '59.83'
'video_output' mean = ' 16723.52', std. dev. = '627.23', fps = '59.80'
2007-09-27 22:31:48.781 NVP: prebuffering pause
2007-09-27 22:31:48.781 NVP: Waiting for prebuffer.. 0 aaaaaaaaaaauaaaaaaaaaaaaaaaaaaa
2007-09-27 22:31: 48.864 NVP: Video is 3.17851 frames behind audio (too slow), dropping frame to catch up.
2007-09-27 22:31:48.865 NVP: Video is 3.19307 frames behind audio (too slow), dropping frame to catch up.
2007-09-27 22:31:48.898 NVP: Video is 3.00611 frames behind audio (too slow), dropping frame to catch up.
2007-09-27 22:31:48.949 NVP: Video is 3.00737 frames behind audio (too slow), dropping frame to catch up.
'video_output' mean = ' 17034.98', std. dev. = '7836.13', fps = '58.70'
'video_output' mean = '16712.56', std. dev. = '453.59', fps = '59.84'
2007-09-27 22:31:52.258 NVP: 800 progressive frames seen.
'video_output' mean = '16714.77', std. dev. = '542.11', fps = '59.83'
2007-09-27 22:31:54.106 AFD: HandleGopStart: Key frame distance changed from 80 to 44.
2007-09-27 22:31:54.431 NVP: prebuffering pause

On 9/27/07, Mark Buechler <mark.buechler@...> wrote:
2007-09-27 22:31:35.167 RingBuf(/shares/recordings/LiveTV/23_20070927223134.mpg): CalcReadAheadThresh(0 KB)
                         -> threshhold(16 KB) min read(0 KB) blk size(8 KB)
2007-09-27 22:31:35.167 NVP: DoPlay: rate: 59.9401 speed: 1 skip: 1 => new interval 16683
2007-09-27 22:31:35.167 VDP: LoadBestPreferences(1280x720, 59.9401)
2007-09-27 22:31:35.167 Set video sync frame interval to 16683
...
2007-09-27 22:17:35.869 NVP: 6000 progressive frames seen.
'video_output' mean = '16700.18', std. dev. = '538.00', fps = '59.88'
2007-09-27 22:17:36.403 NVP: Video is 3.01211 frames behind audio (too slow), dropping frame to catch up.
'video_output' mean = ' 16533.07', std. dev. = '1670.55', fps = '60.48'
'video_output' mean = '16700.09', std. dev. = '151.11', fps = '59.88'
'video_output' mean = '16699.88', std. dev. = ' 190.23', fps = '59.88'
2007-09-27 22:17:42.532 NVP: 6400 progressive frames seen.
'video_output' mean = '16700.23', std. dev. = '172.90', fps = '59.88'
'video_output' mean = ' 16699.88', std. dev. = '127.77', fps = '59.88'
'video_output' mean = '16699.94', std. dev. = '128.48', fps = '59.88'
'video_output' mean = '16701.04', std. dev. = ' 139.58', fps = '59.88'
2007-09-27 22:17:49.212 NVP: 6800 progressive frames seen.
'video_output' mean = '16699.85', std. dev. = '174.26', fps = '59.88'
'video_output' mean = ' 16699.34', std. dev. = '128.89', fps = '59.88'
2007-09-27 22:17:51.634 NVP: Video is 3.00719 frames behind audio (too slow), dropping frame to catch up.
'video_output' mean = '16533.31 ', std. dev. = '1656.91', fps = '60.48'
'video_output' mean = '16699.98', std. dev. = '155.11', fps = '59.88'
2007-09-27 22:17:55.877 NVP: 7200 progressive frames seen.


On 9/27/07, Alex Halovanic <halovanic@...> wrote:
When you run mythfrontend --verbose playback on 60i videos, what
numbers do you see for this line?
2007-09-27 21:16:38.864 Refresh rate: 16682, frame interval: 33366


Alex
_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Re: Sync to VBlank & non 60hz framerate

by Alex Halovanic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I had thought perhaps your modeline wasn't 59.94 (or myth didn't think
it was), or the video's rate was misidentified, but it looks like it's
correct, and your log looks exactly the same as mine.  Its possible
the problem is a bit more subtle than that.

Your modeline looks a tiny bit off, how did you obtain it?
These are the numbers for the standard 1080i modeline:
74.176 1920 1960 2016 2200 1080 1082 1088 1125
I do know that when hacking a modeline, you should increment or
decrement the numbers by a multiple of 8, so your 1084 and 1094
probably aren't right.  In my personal experience, moving the number
by less than 8 just meant that nothing changed in the picture, but I
wasn't using DVI or exact timings, so I don't know what effect that
would have.  Considering how tiny the changes in yours are, it seems
like you would be best sticking to the standard modeline above.

In that vein, have you tried the built in nvidia modelines, like so:
Modes      "1920x1080_60i"

These are supposed to give correct 1080i output over DVI as well.


Alex
_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Re: Sync to VBlank & non 60hz framerate

by Mark Buechler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'll give that modeline a try.

Thanks!

- Mark.

On 9/28/07, Alex Halovanic <halovanic@...> wrote:
I had thought perhaps your modeline wasn't 59.94 (or myth didn't think
it was), or the video's rate was misidentified, but it looks like it's
correct, and your log looks exactly the same as mine.  Its possible
the problem is a bit more subtle than that.

Your modeline looks a tiny bit off, how did you obtain it?
These are the numbers for the standard 1080i modeline:
74.176 1920 1960 2016 2200 1080 1082 1088 1125
I do know that when hacking a modeline, you should increment or
decrement the numbers by a multiple of 8, so your 1084 and 1094
probably aren't right.  In my personal experience, moving the number
by less than 8 just meant that nothing changed in the picture, but I
wasn't using DVI or exact timings, so I don't know what effect that
would have.  Considering how tiny the changes in yours are, it seems
like you would be best sticking to the standard modeline above.

In that vein, have you tried the built in nvidia modelines, like so:
Modes      "1920x1080_60i"

These are supposed to give correct 1080i output over DVI as well.


Alex
_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Re: Sync to VBlank & non 60hz framerate

by Mark Buechler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I used the NVidia modeline as you suggested and that seems to have done the trick.

Thanks for your help.

- Mark.

On 9/28/07, Mark Buechler <mark.buechler@...> wrote:
I'll give that modeline a try.

Thanks!

- Mark.


On 9/28/07, Alex Halovanic <halovanic@...> wrote:
I had thought perhaps your modeline wasn't 59.94 (or myth didn't think
it was), or the video's rate was misidentified, but it looks like it's
correct, and your log looks exactly the same as mine.  Its possible
the problem is a bit more subtle than that.

Your modeline looks a tiny bit off, how did you obtain it?
These are the numbers for the standard 1080i modeline:
74.176 1920 1960 2016 2200 1080 1082 1088 1125
I do know that when hacking a modeline, you should increment or
decrement the numbers by a multiple of 8, so your 1084 and 1094
probably aren't right.  In my personal experience, moving the number
by less than 8 just meant that nothing changed in the picture, but I
wasn't using DVI or exact timings, so I don't know what effect that
would have.  Considering how tiny the changes in yours are, it seems
like you would be best sticking to the standard modeline above.

In that vein, have you tried the built in nvidia modelines, like so:
Modes      "1920x1080_60i"

These are supposed to give correct 1080i output over DVI as well.


Alex
_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



_______________________________________________
mythtv-users mailing list
mythtv-users@...
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users