<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Steve Smith</b> <<a href="mailto:st3v3.sm1th@gmail.com">st3v3.sm1th@gmail.com</a>><br>Date: 20-Jun-2007 23:51
<br>Subject: Viktor! You were right!!!<br>To: Discussion about mythtv <<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>><br><br></span><div>I've hooked up my PAL TV via a VGA->SCART RGB cable.
<br><br>I use an X modeline with the "interface" flag that results in a mode with 25hz FRAME rate which is 50 hz FIELD rate.<br><br>Playing
some interlaced files without deinterlace (but with OpenGL video sync,
and video as a time base) results in the fields being shown out of
order. (other files work OK) or to a 25FPS playback rather than pseudo
50hz (see my "What don't I get here" posts) <br><br>The recommended work around is to use bob-deinterlace...<br><br>So as recommended I enable bob-deinterlace.....<br><br><br>2007-06-20 23:04:08.802 The realtime priority setting is not enabled.
<br>2007-06-20 23:04:08.815 Using deinterlace method bobdeint<br>2007-06-20 23:04:08.920
nVidiaVideoSync: VBlank ioctl did not work, unimplemented in this driver?<br>2007-06-20 23:04:08.921 DRMVideoSync: Could not open device /dev/dri/card0, No such file or directory<br>2007-06-20
23:04:08.926 OpenGLVideoSync: GLX extensions: GLX_EXT_visual_info
GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer
GLX_SGI_video_sync GLX_SGI_swap_control GLX_EXT_texture_from_pixmap
GLX_ARB_multisample GLX_NV_float_buffer GLX_ARB_get_proc_address
<br>2007-06-20 23:04:08.928 OpenGLVideoSync: x,y -> 360, 288<br>2007-06-20 23:04:09.023 Using OpenGLVideoSync<br>2007-06-20 23:04:09.023 Set video sync frame interval to 40000<br>2007-06-20 23:04:09.024 Video sync method can't support double framerate (refresh rate too low for bob deint)
<br>2007-06-20 23:04:09.024 Set video sync frame interval to 40000<br>2007-06-20 23:04:09.035 Using deinterlace method onefield<br>2007-06-20 23:04:09.045 Using video as timebase<br>2007-06-20 23:04:09.045 Video timing method: SGI OpenGL
<br>2007-06-20 23:04:09.045 Refresh rate: 40013, frame interval: 40000<br>'video_output' mean = '40538.84', std. dev. = '16889.77', fps = '24.67'<br><br><br>Notice the line......<br><br>2007-06-20 23:04:
09.024 Video sync method can't support double framerate (refresh rate too low for bob deint)<br>
<br>To me this looks like Myth has seen that the mpeg is at 25FPS, <br>has looked at the video mode and seen 25FPS also,<br>but bob-deinterlace effectively doubles the rate to 50, oh dear we don't support that....use onefield instead....
<br>WRONG in this case!!<br>We are using an ****INTERLACED**** mode so we can support the full 50hz just at half the vertical resolution!<br><br>So yes it looks like Viktor's patch is correct after all....although he shouldn't need to be. Really myth should have a proper interlaced output mode
i.e. you tell it you are using an interlaced display, it syncs to the refresh and displays the fields in order at the right time. No deinterlace required we leave that to the TV. IS THIS POSSIBLE IN MYTH???<br><br>In the mean time I need to do my first compile of Mythtv....
<br><br>Cheers<br><br>Steve<br><br><br><br><br><div><span class="gmail_quote">On 15/06/07, <b class="gmail_sendername">Viktor Avramov</b> <<a href="mailto:drvik@bigpond.net.au" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
drvik@bigpond.net.au</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I recommend using a VGA -> SCART cable... then you will have very precise<br>control of what goes to the TV.... I had a problem like you using PAL 25FPS
<br>on a 50Hz interlaced TV... I wrote a patch which doubles the framerate for<br>interlaced modes... I now use it wil BOB deinterlacing and the result is<br>silky smooth!<br><br>Here's the patch.... do with it what you will... I submitted it for inclusion
<br>in trunk but it was rejected because it's flawed in it's logic... all I can<br>say is on my setup it's the only way of getting smooth, fluid motion.... the<br>devs told me to use the myth-vid branch instead!!
<br><br>Viktor<br><br><br>Index: libs/libmythtv/videoout_xv.cpp<br>===================================================================<br>--- libs/libmythtv/videoout_xv.cpp (revision 12477)<br>+++ libs/libmythtv/videoout_xv.cpp (working copy)
<br>@@ -308,6 +308,9 @@<br> if (rate == 0)<br> rate = 60;<br><br>+ if (mode_line.flags && 0x010) // #define V_INTERLACE 0x010<br>+ rate = rate * 2; // if modeline is interlaced then double
<br>the effective refresh rate<br>+<br> if (rate < 20 || rate > 200)<br> {<br> VERBOSE(VB_PLAYBACK, LOC + QString("Unreasonable refresh rate %1Hz "<br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>
</div>