[mythtv] [PATCH] Reinitialize deinterlace filter on video change

Jarod Wilson jcw at wilsonet.com
Sat Sep 25 14:02:16 EDT 2004


On Friday 24 September 2004 12:17, Jarod Wilson wrote:
> On Friday 24 September 2004 11:11, Doug Larrick wrote:
> > Jarod Wilson wrote:
> > > The first thing that jumps out is you're using OpenGL sync, while my
> > > system is one of those that gets badly hosed when I try to use OpenGL
> > > sync.
> >
> > It shouldn't make a huge difference, unless of course there's a bug in
> > whatever video sync method you're using.  Which one is it?
>
> At present, RTC. I got similar playback with USleep busy wait though.

And now, I've got OpenGL sync working just fine, same problem still exists.

> > > And it just dawned on me that I've rebuilt Myth a few times now, and
> > > never chmod +s'd the frontend again. Maybe the one time I swear it
> > > played back I had the suid bit set... chmod'ing now.
> >
> > Also shouldn't cause the magnitude of problems you're seeing.
>
> I didn't think it should, but I'll give it a go.

Didn't make a lick of difference.

> I also need to 
> double-check what line I have that matches up with your:
>
> 2004-09-24 08:08:34 Interlaced: Progressive Scan  video_height: 720 fps:
> 59.9401
>
> I know that before applying the patch at the beginning of this thread, I
> was seeing video_height: 720 fps: 29.97, not sure if that is still the
> case, but the video does look like its playing at half-speed. Definitely
> something to investigate when I get home...

The framerate is iniitally detected properly when I go straight to ABC in live 
TV, but if I change to ABC from another channel, the framerate is always 
detected as 29.97. However, the video looks the same in both cases.

Now that I've got the frontend suid root and OpenGL sync working, the only big 
differences are that I'm using xrandr, and just before the resolution switch, 
I'm seeing a second detectInterlace call that isn't present in your output, 
which returns a fps: -1. Output below:

2004-09-25 01:09:57 mythfrontend version: 0.16.20040906-1 www.mythtv.org
2004-09-25 01:09:57 Enabled verbose msgs : important general playback
2004-09-25 01:09:57 switchToGUI: Switched to 880 x 480
2004-09-25 01:09:58 Registering Internal as a media playback plugin.
2004-09-25 01:10:08 Connecting to backend server: 10.9.8.7:6543 (try 1 of 5)
2004-09-25 01:10:08 Using protocol version 13
2004-09-25 01:10:12 detectInterlace(Detect Scan, Detect Scan, 59.9401, 720) 
->Progressive Scan
2004-09-25 01:10:12 Interlaced: Progressive Scan  video_height: 720  fps: 
59.9401
2004-09-25 01:10:12 Estimated bitrate = 384000
2004-09-25 01:10:12 Filling position map from 0 to 206
2004-09-25 01:10:12 Position map filled from Encoder to: 188
2004-09-25 01:10:12 SyncPositionMap liveTV, from Encoder: 7 entries
2004-09-25 01:10:12 detectInterlace(Ignore Scan, Progressive Scan, 59.9401, 
720) ->Progressive Scan
2004-09-25 01:10:12 Interlaced: Progressive Scan  video_height: 720  fps: -1
2004-09-25 01:10:12 Partial position map found
2004-09-25 01:10:12 Opening ALSA audio device 'spdif'.
2004-09-25 01:10:12 Audio: fragment_size=4096, bytes_per_sample=4
2004-09-25 01:10:12 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
2004-09-25 01:10:13 switchToVid: Video size 1280 x 720: Switched to resolution 
1760 x 960 650mm x 366mm
2004-09-25 01:10:13 Using XV port 146
2004-09-25 01:10:13 Image size. dispxoff 0, dispyoff: 0, dispwoff: 1760, 
disphoff: 959
2004-09-25 01:10:13 Image size. imgx 0, imgy: 0, imgw: 1280, imgh: 720
2004-09-25 01:10:14 Not in the running state, state=2
2004-09-25 01:10:14 Not in the running state, state=2
2004-09-25 01:10:14 Not in the running state, state=2
2004-09-25 01:10:14 Not in the running state, state=2
2004-09-25 01:10:14 Changing from None to WatchingLiveTV
2004-09-25 01:10:14 nVidiaVideoSync: VBlank ioctl did not work, unimplemented 
in this driver?
2004-09-25 01:10:14 DRMVideoSync: Could not open device /dev/dri/card0, 
Permission denied
2004-09-25 01:10:14 Using audio as timebase
2004-09-25 01:10:14 Video timing method: SGI OpenGL
2004-09-25 01:10:14 Refresh rate: 33392, frame interval: 16683


Next up on my list of things to try is disabling xrandr.

-- 
Jarod C. Wilson, RHCE
jcw at wilsonet.com

Got a question? Read this first...
     http://catb.org/~esr/faqs/smart-questions.html
MythTV, Fedora Core & ATrpms documentation:
     http://wilsonet.com/mythtv/
MythTV Searchable Mailing List Archive
     http://www.gossamer-threads.com/lists/mythtv/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040925/08068599/attachment.pgp


More information about the mythtv-dev mailing list