Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Choppy Mythtv Video [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
TheWitePony
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 211

PostPosted: Mon Dec 12, 2005 12:21 am    Post subject: Choppy Mythtv Video [solved] Reply with quote

Ok, I've got all the inital setup out of the way and I can now even watch live tv from the frontend. However, I noticed yesterday that the video quality seemed to be a little off and the frame rate a little low. Apparently mythtv isn't using xv for the video driver anymore. Which is strange because I don't remeber getting this lower quality video when I first got live tv working.

Anyway, here is the output from the frontend when I go to watch live tv. As you can see its not using the xv driver for mplayer.
Code:

2005-12-11 19:14:38.015 New DB connection, total: 1
Total desktop width=1280, height=1024, numscreens=1
2005-12-11 19:14:38.033 Using screen 0, 1280x1024 at 0,0
2005-12-11 19:14:38.038 mythfrontend version: 0.18.1.20050510-1 www.mythtv.org
2005-12-11 19:14:38.038 Enabled verbose msgs : important general
2005-12-11 19:14:38.214 Switching to square mode (G.A.N.T.)
mythtv: could not connect to socket
mythtv: No such file or directory
lirc_init failed for mythtv, see preceding messages
2005-12-11 19:14:38.757 Registering Internal as a media playback plugin.
2005-12-11 19:14:44.180 New DB connection, total: 2
2005-12-11 19:14:44.214 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2005-12-11 19:14:44.230 Using protocol version 15
2005-12-11 19:14:44.294 Using protocol version 15
2005-12-11 19:14:46.579 Opening audio device '/dev/dsp'.
2005-12-11 19:14:46.579 Opening OSS audio device '/dev/dsp'.
X Error: XvBadPort 145
  Major opcode:  139
  Minor opcode:  15
  Resource id:  0xffffffff
X Error: XvBadPort 145
  Major opcode:  139
  Minor opcode:  14
  Resource id:  0xffffffff
***
* Couldn't find Xv support, falling back to non-Xv mode.
* MythTV performance will be much slower since color
* conversion and scaling will be done in software.
* Consider upgrading your video card or X server if
* you would like better performance.
2005-12-11 19:14:46.603 Couldn't get the color key color, and we need it.
You likely won't get any video.
2005-12-11 19:14:46.807 Realtime priority would require SUID as root.
2005-12-11 19:14:46.842 Changing from None to WatchingLiveTV
2005-12-11 19:14:47.129 Video timing method: USleep with busy wait
2005-12-11 19:14:48.015 prebuffering pause
2005-12-11 19:14:48.850 prebuffering pause
2005-12-11 19:14:49.565 prebuffering pause
2005-12-11 19:14:50.092 prebuffering pause
2005-12-11 19:14:50.616 prebuffering pause
2005-12-11 19:14:51.333 prebuffering pause
2005-12-11 19:14:51.969 prebuffering pause
X Error: XvBadPort 145
  Major opcode:  139
  Minor opcode:  15
  Resource id:  0xffffffff
X Error: XvBadPort 145
  Major opcode:  139
  Minor opcode:  14
  Resource id:  0xffffffff
***
* Your system is not capable of displaying the
* full framerate at 1280x1024 resolution.  Frames
* will be skipped in order to keep the audio and
* video in sync.
2005-12-11 19:15:03.808 Couldn't get the color key color, and we need it.
You likely won't get any video.
2005-12-11 19:15:04.159 Changing from WatchingLiveTV to None
2005-12-11 19:15:04.175 Changing from None to None


I've tried changing the default mplayer driver used in /etc/mplayer.conf to x11 but there is no change.

Any ideas?


Last edited by TheWitePony on Mon Dec 12, 2005 12:30 am; edited 1 time in total
Back to top
View user's profile Send private message
TheWitePony
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 211

PostPosted: Mon Dec 12, 2005 12:30 am    Post subject: Reply with quote

mmmmmk, I must have done something stupid when I was trying to get my tv-out working.

Code:

# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"


That was set to off, just turned it on and restarted X. I got butta smooth video again.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Jan 05, 2006 5:56 pm    Post subject: Reply with quote

TheWitePony wrote:
mmmmmk, I must have done something stupid when I was trying to get my tv-out working.

Code:

# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"


That was set to off, just turned it on and restarted X. I got butta smooth video again.


I presume that line is in /etc/X11/xorg.conf?

What video card do you have?
I too get the jerky playback on a frontend-only machine.
I have an nVidia, and saw no such option as VideoOverlay. A few days back, I enabled XvMC, or whatever it's called, and had a hard crash. I'm currently running ~x86, but may step back to x86, as others have suggested the newer drivers might be related to problems.

Is display resolution related to CPU usage? My frontend machine runs at 1280*1024, but from what I can tell, the TV is captured at 480*480. Is part of the reason for the high CPU usage that pixels are being expanded? If I defined a second resolution, (ie "1280x1024" "640x480") and switched to the lower resolution before starting mythfrontend, would it be smart enough to use the visible viewport, or would Myth paint into 1280x1024 and just give me a 640x480 window into it?

I have had decent playback on this machine - as long as I don't fast-forward. As soon as I fastforward, I get the skipping every second or so, and it never corrects. I've never had live viewing without the skipping.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
TheWitePony
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 211

PostPosted: Thu Jan 05, 2006 6:50 pm    Post subject: Reply with quote

The problem above was with an ATI card, so the option in the xorg file wont work with nvidia cards.

However I have set up an additional frontend in my room with an nvidia card and was getting some playback issues. So I enabled xvmc and it works fine now. Be sure to go back and recompile mplayer and mythtv with support for xvmc. The resolution of the desktop should not affect the performance of the playback. My desktop res is at 1600x1200 and I have no playback issues.

Your problem sounds like the one I had with my machine with the nvidia card, so your best be is to get xvmc working.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum