Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mythtv-0.21 fails to use xvmc
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ri-crash
n00b
n00b


Joined: 26 Mar 2005
Posts: 9
Location: RI

PostPosted: Sun Apr 27, 2008 5:49 pm    Post subject: [SOLVED] mythtv-0.21 fails to use xvmc Reply with quote

I have setup a playback profile to always use xvmc as follows:

Setup -> TV Settings -> Playback -> Playback Profiles (3/9) -> Add New -> [enter playback profile name] -> Add New Entry ->

Match Criteria: > W: 0 H: 0
Decoder: Standard XvMC
Video Renderer: xvmc-blit

When I tune to a High Definition channel, I get stuttering audio, choppy video and the following frontend log messages:

Code:
2008-04-27 18:32:18.443 TV: Changing from None to WatchingLiveTV
2008-04-27 18:32:18.448 The realtime priority setting is not enabled.
2008-04-27 18:32:18.548 Video timing method: USleep with busy wait
_xvmc_create_context() returned incorrect data size!
        Expected 30, got 2
2008-04-27 18:32:19.594 VideoOutputXv Error: Unable to create XvMC Context, status(11): BadAlloc
2008-04-27 18:32:19.595 VideoOutputXv Error: Could not open XvMC port...

                        You may wish to verify that your DISPLAY
                        environment variable does not use an external
                        network connection.

2008-04-27 18:32:19.607 VideoOutputXv: Desired video renderer 'xvmc-blit' not available.
                        codec 'MPEG2' makes 'opengl,xv-blit,xshm,xlib,' available, using 'opengl' instead.
2008-04-27 18:32:20.198 AFD: Opened codec 0x9fda420, id(MPEG2VIDEO) type(Video)
2008-04-27 18:32:20.198 AFD: codec AC3 has 2 channels
2008-04-27 18:32:20.199 AFD: Opened codec 0x9fda7a0, id(AC3) type(Audio)
2008-04-27 18:32:20.211 Opening audio device 'default'. ch 2(2) sr 48000
2008-04-27 18:32:20.212 Opening ALSA audio device 'default'.
2008-04-27 18:32:20.218 NVP: Enabling Audio
2008-04-27 18:32:21.243 WriteAudio: buffer underrun


I think this may be related to the following reported bugs, but I am not sure: http://bugs.gentoo.org/show_bug.cgi?id=201095 and http://bugs.gentoo.org/show_bug.cgi?id=219149 (I have added a comment to bug #201095)

Any help is always appreciated.

Alan Sheridan


Last edited by ri-crash on Thu May 01, 2008 6:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
ri-crash
n00b
n00b


Joined: 26 Mar 2005
Posts: 9
Location: RI

PostPosted: Thu May 01, 2008 6:52 pm    Post subject: Reply with quote

I copied the contents of /usr/portage/media-tv/media-tv/mythtv to /usr/local/portage/media-tv/media-tv/mythtv and added the following line to /etc/make.conf:

Code:
PORTDIR_OVERLAY="/usr/local/portage"

Then I edited /usr/local/portage/media-tv/media-tv/mythtv/mythtv-0.21_p17100.ebuild in a similar manner as this patch for mythtv-0.21_pre15025.ebuild which was published as the fix to bug #201095:

Code:
src_compile() {
        local myconf="--prefix=/usr
                --mandir=/usr/share/man
                --libdir-name=$(get_libdir)"
        use aac && myconf="${myconf} --enable-libfaad"
        use alsa || myconf="${myconf} --disable-audio-alsa"
        use altivec || myconf="${myconf} --disable-altivec"
        use jack || myconf="${myconf} --disable-audio-jack"


        use opengl-video && myconf="${myconf} --enable-opengl-video"
        use xvmc && ! use video_cards_via && ! use opengl-xvmc && \
                myconf="${myconf} --enable-xvmc"
        use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc \
                --enable-xvmc-pro --disable-xvmcw"
        use xvmc && use video_cards_nvidia && use opengl-xvmc && \
                myconf="${myconf} --enable-xvmc --enable-xvmc-opengl --disable-xvmcw"

#  Following two lines added -- ALS - 4/28/4008
        use xvmc && use video_cards_nvidia && \
                myconf="${myconf} --xvmc-lib=XvMCNVIDIA --enable-xvmc --disable-xvmcw"

        # nvidia-drivers-71 don't support GLX 1.4


/usr/local/portage/media-tv/mythtv/Manifest was updated as follows:

Code:
# ebuild /usr/local/portage/media-tv/mythtv/mythtv-0.21_p17100.ebuild digest

For an unkown reason /etc/init.d/mythbackend was deleted the first time I used the modified ebuild. I had to rebuild mythtv from /usr/portage/media-tv/mythtv/ then make a backup copy of /etc/init.d/mythbackend

I rebuilt from /usr/local/portage/media-tv/mythtv/ a second time then restored /etc/init.d/mythbackend from the backup copy.

After a few tweaks to mythtv settings, I now have high definition without the stuttering audio and choppy video.
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 - 5 Hours
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