[mythtv-users] XVMC and HD Playback

Brian L. Walter blwalter at gmail.com
Sat Jun 2 12:19:54 UTC 2007


Greetings,

I'm trying to clean up HD playback, and thought I'd try XvMC.  I'm 
getting some corruption in playback, above and beyond what's in the file 
(thats a whole other issue I'm tracking down).

One question regarding the two flavors of XvMC - one is standard, which 
I've tried.  The other is labeled 'Via XvMC' - is this one related 
specifically to VIA chipsets?  VIA XvMC will use the VIA VLD XvMC 
extension - what is VIA VLD extensions?  when I try it, I get 'unkown 
decoding error'...

I've got an AMD Athalon X2 64 3800 w/ onboard video - NVIDIA 6250 with 
the following rpms:
nvidia-graphics9755-1.0_9755-86.fc6
nvidia-graphics-devices-1.0-5.fc6.at
nvidia-graphics9755-kmdl-2.6.20-1.2948.fc6-1.0_9755-86.fc6
nvidia-graphics-helpers-0.0.18-19.fc6.at
nvidia-graphics9755-libs-1.0_9755-86.fc6
nvidia-graphics9755-libs-1.0_9755-86.fc6

Mythfrontend is compile with XvMC support (20-fixes 13457)
Options compiled in:
 linux release using_xvmcw using_v4l using_oss using_alsa using_ivtv 
using_hdhr using_ip_rec using_freebox using_live using_lirc 
using_joystick_menu using_dvb using_x11 using_xv using_xrandr using_xvmc 
using_xvmc_vld using_opengl_vsync using_opengl using_frontend using_backend

Have XvMC Libraries:
lrwxrwxrwx 1 root root     16 Apr 18 06:24 /usr/lib64/libXvMC.so -> 
libXvMC.so.1.0.0
lrwxrwxrwx 1 root root     17 Apr 18 06:24 /usr/lib64/libXvMCW.so -> 
libXvMCW.so.1.0.0
-r--r--r-- 1 root root 257798 Apr 11 11:05 /usr/lib64/libXvMCNVIDIA.a
lrwxrwxrwx 1 root root     25 Apr 11 11:05 
/usr/lib64/libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.1.0.9755
-rwxr-xr-x 1 root root 200144 Apr 11 11:05 
/usr/lib64/libXvMCNVIDIA.so.1.0.9755
lrwxrwxrwx 1 root root     16 Apr  9 21:40 /usr/lib64/libXvMC.so.1 -> 
libXvMC.so.1.0.0
lrwxrwxrwx 1 root root     17 Apr  9 21:40 /usr/lib64/libXvMCW.so.1 -> 
libXvMCW.so.1.0.0
-rwxr-xr-x 1 root root  14824 Jul 13  2006 /usr/lib64/libXvMC.so.1.0.0
-rwxr-xr-x 1 root root  19232 Jul 13  2006 /usr/lib64/libXvMCW.so.1.0.0

Have this in XvMCconfig:
libXvMCNVIDIA_dynamic.so.1

When I try to use standard XvMC, playback aborts with 'Unable to 
initialize video)'  I can then select a standard def recording and open 
it - however, it appears lirc becomes broken after that (I can't exit 
out of the video though this appears to be the case even without 
touching a HD recording).

 From the frontend log:
2007-06-02 08:03:05.749 AFD: Stream #0, has id 0x2048 codec id 
MPEG2VIDEO, type Video, bitrate 19000000 at 0x0xdbc5600
2007-06-02 08:03:05.750 VideoOutputXv: XvMC version: 1.1
2007-06-02 08:03:05.750 XvMCSurfaceTypes::find(w 1920, h 1080, chroma 1, 
vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 306, 2750 
<=p, port, surfNum)
2007-06-02 08:03:05.750 Trying XvMC port 275
2007-06-02 08:03:05.750 Found a suitable XvMC surface 0
2007-06-02 08:03:05.750 VideoOutputXv: @ j=1 Looking for flag[s]: 
XvInputMask
2007-06-02 08:03:05.750 VideoOutputXv: Adaptor#0: NV17 Video Texture has 
flag[s]: XvInputMask XvImageMask
2007-06-02 08:03:05.750 XvMCSurfaceTypes::find(w 1920, h 1080, chroma 1, 
vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 306, 2750 
<=p, port, surfNum)
2007-06-02 08:03:05.751 Trying XvMC port 275
2007-06-02 08:03:05.751 Found a suitable XvMC surface 0
2007-06-02 08:03:05.751 VideoOutputXv: Grabbed xv port 275
2007-06-02 08:03:05.751 VideoOutputXv: XvMC surface found with IDCT 
support on port 275
2007-06-02 08:03:05.755 VideoOutputXv: Closing XVideo port 275
2007-06-02 08:03:05.755 detectInterlace(Detect Scan, Interlaced Scan, 
29.97, 1088) ->Interlaced Scan
2007-06-02 08:03:05.755 AFD: Looking for decoder for MPEG2VIDEO_XVMC
2007-06-02 08:03:05.755 AFD: Opened codec 0xda5d380, id(MPEG2VIDEO_XVMC) 
type(Video)
2007-06-02 08:03:05.755 AFD: Stream #1, has id 0x2049 codec id AC3, type 
Audio, bitrate 384000 at 0x0xdb16b20
2007-06-02 08:03:05.755 AFD: Looking for decoder for AC3
2007-06-02 08:03:05.756 AFD: Opened codec 0xefd720, id(AC3) type(Audio)
2007-06-02 08:03:05.756 AFD: Audio Track #1 is A/V stream #1 and has 2 
channels in the Unknown language(0).
2007-06-02 08:03:05.756 
RingBuf(myth://192.168.0.10:6543/1041_20070531210000.mpg): 
CalcReadAheadThresh(19384 KB)
             -> threshhold(965 KB) min read(32 KB) blk size(512 KB)
2007-06-02 08:03:05.756 AFD: Selected track 1: Unknown AC3 2ch (A/V 
Stream #1)
2007-06-02 08:03:05.756 AFD: Initializing audio parms from audio track #1
2007-06-02 08:03:05.756 AFD: Audio format changed
            from id(NONE)    -1Hz -1ch   0bps    ; id(NONE)    -1Hz 
-1ch   0bps  
            to   id( AC3) 48000Hz  2ch  16bps    ; id( AC3) 48000Hz  
2ch  16bps  
2007-06-02 08:03:05.759 MSqlQuery: SELECT data FROM settings WHERE value 
= 'MythControlsVolume' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.759 AO: Killing AudioOutputDSP
2007-06-02 08:03:05.759 Opening ALSA audio device 'default'.
2007-06-02 08:03:05.764 in SetParameters(format=2, channels=2, 
rate=48000, buffer_time=500000, period_time=125000)
2007-06-02 08:03:05.765 get_buffer_size returned 16384
2007-06-02 08:03:05.765 set_period_time_near returned 21333
2007-06-02 08:03:05.765 get_period_size returned 1024
2007-06-02 08:03:05.767 MSqlQuery: SELECT data FROM settings WHERE value 
= 'MixerControl' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.769 MSqlQuery: SELECT data FROM settings WHERE value 
= 'MixerDevice' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.769 Opening mixer default
2007-06-02 08:03:05.771 MSqlQuery: SELECT data FROM settings WHERE value 
= 'MasterMixerVolume' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.771 Setting Master volume to 70
2007-06-02 08:03:05.771 Mixer unable to find control Master
2007-06-02 08:03:05.771 Setting Master volume to 70
2007-06-02 08:03:05.772 Mixer unable to find control Master
2007-06-02 08:03:05.774 MSqlQuery: SELECT data FROM settings WHERE value 
= 'PCMMixerVolume' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.774 Setting PCM volume to 73
2007-06-02 08:03:05.774 Volume range is 0 to 31, mult=3.22581
2007-06-02 08:03:05.774 channel 0 vol set to 23
2007-06-02 08:03:05.774 Setting PCM volume to 73
2007-06-02 08:03:05.774 Volume range is 0 to 31, mult=3.22581
2007-06-02 08:03:05.775 channel 1 vol set to 23
2007-06-02 08:03:05.775 Volume range is 0 to 31, mult=3.22581
2007-06-02 08:03:05.775 AO: Audio fragment size: 6144
2007-06-02 08:03:05.777 MSqlQuery: SELECT data FROM settings WHERE value 
= 'AggressiveSoundcardBuffer' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.777 AO: Audio Stretch Factor: 1
2007-06-02 08:03:05.777 AO: Ending reconfigure
2007-06-02 08:03:05.777 Dec: Trying to select track (w/lang)
2007-06-02 08:03:05.777 Dec: Selecting first track
2007-06-02 08:03:05.777 Dec: Selected track #1 in the Unknown language(0)
2007-06-02 08:03:05.777 Resyncing position map. posmapStarted = 0 
livetv(0) watchingRec(0)
2007-06-02 08:03:05.777 AO: kickoffOutputAudioLoop: pid = 3837
2007-06-02 08:03:05.777 AO: OutputAudioLoop: Play Event
2007-06-02 08:03:05.777 AO: Broadcasting free space avail
2007-06-02 08:03:05.780 AO: Broadcasting free space avail
2007-06-02 08:03:05.783 AO: Broadcasting free space avail
2007-06-02 08:03:05.786 AO: Broadcasting free space avail
2007-06-02 08:03:05.789 AO: Broadcasting free space avail
2007-06-02 08:03:05.792 AO: Broadcasting free space avail
2007-06-02 08:03:05.795 AO: Broadcasting free space avail
2007-06-02 08:03:05.798 AO: Broadcasting free space avail
2007-06-02 08:03:05.801 write -> 25 49      QUERY_FILETRANSFER 
24[]:[]REQUEST_BLOCK[]:[]32768
2007-06-02 08:03:05.802 AO: Broadcasting free space avail
2007-06-02 08:03:05.802 read  <- 25 5       32768
2007-06-02 08:03:05.802 Read(): reqd=32768, rcvd=32768, rept=32768, error=0
2007-06-02 08:03:05.802 write -> 25 50      QUERY_FILETRANSFER 
24[]:[]REQUEST_BLOCK[]:[]524288
2007-06-02 08:03:05.805 AO: Broadcasting free space avail
2007-06-02 08:03:05.809 AO: Broadcasting free space avail
2007-06-02 08:03:05.810 read  <- 25 6       524288
2007-06-02 08:03:05.810 Read(): reqd=524288, rcvd=524288, rept=524288, 
error=0
2007-06-02 08:03:05.810 write -> 25 50      QUERY_FILETRANSFER 
24[]:[]REQUEST_BLOCK[]:[]524288
2007-06-02 08:03:05.813 AO: Broadcasting free space avail
2007-06-02 08:03:05.815 read  <- 25 6       524288
2007-06-02 08:03:05.816 Read(): reqd=524288, rcvd=524288, rept=524288, 
error=0
2007-06-02 08:03:05.817 write -> 25 50      QUERY_FILETRANSFER 
24[]:[]REQUEST_BLOCK[]:[]524288
2007-06-02 08:03:05.818 AO: Broadcasting free space avail
2007-06-02 08:03:05.822 AO: Broadcasting free space avail
2007-06-02 08:03:05.823 read  <- 25 6       524288
2007-06-02 08:03:05.823 Read(): reqd=524288, rcvd=524288, rept=524288, 
error=0
2007-06-02 08:03:05.824 write -> 25 50      QUERY_FILETRANSFER 
24[]:[]REQUEST_BLOCK[]:[]524288
2007-06-02 08:03:05.826 AO: Broadcasting free space avail
2007-06-02 08:03:05.829 AO: Broadcasting free space avail
2007-06-02 08:03:05.830 read  <- 25 6       524288
2007-06-02 08:03:05.830 Read(): reqd=524288, rcvd=524288, rept=524288, 
error=0
2007-06-02 08:03:05.832 AO: Broadcasting free space avail
2007-06-02 08:03:05.835 AO: Broadcasting free space avail
2007-06-02 08:03:05.838 AO: Broadcasting free space avail
2007-06-02 08:03:05.841 AO: Broadcasting free space avail
2007-06-02 08:03:05.844 MSqlQuery: SELECT mark, offset FROM recordedseek 
WHERE chanid = '1041' AND starttime = '2007-05-31T21:00:00' AND type = 9 ;
2007-06-02 08:03:05.844 AO: Broadcasting free space avail
2007-06-02 08:03:05.847 AO: Broadcasting free space avail
2007-06-02 08:03:05.850 AO: Broadcasting free space avail
2007-06-02 08:03:05.853 AO: Broadcasting free space avail
2007-06-02 08:03:05.856 AO: Broadcasting free space avail
2007-06-02 08:03:05.859 AO: Broadcasting free space avail
2007-06-02 08:03:05.862 AO: Broadcasting free space avail
2007-06-02 08:03:05.865 AO: Broadcasting free space avail
2007-06-02 08:03:05.868 AO: Broadcasting free space avail
2007-06-02 08:03:05.869 Position map filled from DB to: 104476
2007-06-02 08:03:05.870 SyncPositionMap prerecorded, from DB: 6509 entries
2007-06-02 08:03:05.870 SyncPositionMap, new totframes: 104476, new 
length: 3486, posMap size: 6509
Input #0, mpegts, from 'myth://192.168.0.10:6543/1041_20070531210000.mpg':
  Duration: 00:59:56.7, start: 68138.010900, bitrate: 17139 kb/s
  Stream #0.0[0x800], 1/90000: Video: mpegvideo_xvmc, xvmcidct, 
1920x1080, 1001/30000, 19000 kb/s, 29.97 fps(r)
  Stream #0.1[0x801], 1/90000: Audio: ac3, 48000 Hz, stereo, 384 kb/s
2007-06-02 08:03:05.870 AFD: Position map found
2007-06-02 08:03:05.870 AFD: Successfully opened decoder for file: 
"myth://192.168.0.10:6543/1041_20070531210000.mpg". novideo(0)
2007-06-02 08:03:05.871 AO: Broadcasting free space avail
2007-06-02 08:03:05.873 MSqlQuery: SELECT mark, type FROM recordedmarkup 
WHERE chanid = '1041' AND starttime = '2007-05-31T21:00:00' AND type = 1 
ORDER BY mark;
2007-06-02 08:03:05.874 AO: Broadcasting free space avail
2007-06-02 08:03:05.875 MSqlQuery: SELECT mark, type FROM recordedmarkup 
WHERE chanid = '1041' AND starttime = '2007-05-31T21:00:00' AND type = 0 
ORDER BY mark;
2007-06-02 08:03:05.877 MSqlQuery: SELECT mark, type FROM recordedmarkup 
WHERE chanid = '1041' AND starttime = '2007-05-31T21:00:00' AND type = 2 
ORDER BY mark;
2007-06-02 08:03:05.877 VideoOutputXv: ctor
2007-06-02 08:03:05.877 Over/underscan. V: 0, H: 0.01, XOff: 0, YOff: 0
2007-06-02 08:03:05.877 Display Rect  left: 0, top: 135, width: 1920, 
height: 810, aspect: 1.33333
2007-06-02 08:03:05.877 Video Rect    left: 19, top: 0, width: 1882, 
height: 1080, aspect: 1.77778
2007-06-02 08:03:05.877 VideoOutputXv: Pixel dimensions: Screen 
1920x1080, window 1920x1080
2007-06-02 08:03:05.877 AO: OutputAudioLoop: audio paused
2007-06-02 08:03:05.878 VideoOutputXv: Estimated display dimensions: 
827x465 mm  Aspect: 1.77849
2007-06-02 08:03:05.878 AO: 65536 bytes free on soundcard
2007-06-02 08:03:05.878 VideoOutputXv: Estimated window dimensions: 
827x465 mm  Aspect: 1.77849
2007-06-02 08:03:05.878 WriteAudio: Preparing 6144 bytes (1536 frames)
2007-06-02 08:03:05.878 VideoOutputXv: XvMC version: 1.1
2007-06-02 08:03:05.880 MSqlQuery: SELECT data FROM settings WHERE value 
= 'UseChromaKeyOSD' AND hostname = 'mythfrontend1' ;
2007-06-02 08:03:05.880 VideoOutputXv: XvMCTex: Init failed
2007-06-02 08:03:05.880 VideoOutputXv: @ j=1 Looking for flag[s]: 
XvInputMask
2007-06-02 08:03:05.880 VideoOutputXv: Adaptor#0: NV17 Video Texture has 
flag[s]: XvInputMask XvImageMask
2007-06-02 08:03:05.880 XvMCSurfaceTypes::find(w 1920, h 1088, chroma 1, 
vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 306, 2750 
<=p, port, surfNum)
2007-06-02 08:03:05.880 Trying XvMC port 275
2007-06-02 08:03:05.880 Found a suitable XvMC surface 0
2007-06-02 08:03:05.880 VideoOutputXv: Grabbed xv port 275
2007-06-02 08:03:05.880 VideoOutputXv: XvMC surface found with IDCT 
support on port 275
2007-06-02 08:03:05.880 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video 
Texture'
2007-06-02 08:03:05.881 AO: 59392 bytes free on soundcard
2007-06-02 08:03:05.882 WriteAudio: Preparing 6144 bytes (1536 frames)
2007-06-02 08:03:05.883 VideoOutputXv Error: Unable to create XvMC Surfaces
2007-06-02 08:03:05.883 VideoOutputXv: DiscardFrames(1)
2007-06-02 08:03:05.883 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-06-02 08:03:05.883 VideoBuffers::DiscardFrames(): AAAAAAAA -- done()
2007-06-02 08:03:05.883 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-06-02 08:03:05.883 VideoOutputXv: DiscardFrames() 3: AAAAAAAA -- done()
2007-06-02 08:03:05.883 VideoOutputXv: DiscardFrames(1)
2007-06-02 08:03:05.883 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-06-02 08:03:05.883 VideoBuffers::DiscardFrames(): AAAAAAAA -- done()
2007-06-02 08:03:05.883 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-06-02 08:03:05.884 VideoOutputXv: DiscardFrames() 3: AAAAAAAA -- done()
2007-06-02 08:03:05.884 AO: 53248 bytes free on soundcard
2007-06-02 08:03:05.885 VideoOutputXv: DiscardFrames(1)
2007-06-02 08:03:05.885 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-06-02 08:03:05.885 VideoBuffers::DiscardFrames(): AAAAAAAA -- done()
2007-06-02 08:03:05.885 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-06-02 08:03:05.885 VideoOutputXv: DiscardFrames() 3: AAAAAAAA -- done()
2007-06-02 08:03:05.885 VideoOutputXv: DiscardFrames(1)
2007-06-02 08:03:05.885 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-06-02 08:03:05.885 VideoBuffers::DiscardFrames(): AAAAAAAA -- done()
2007-06-02 08:03:05.885 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-06-02 08:03:05.885 VideoOutputXv: DiscardFrames() 3: AAAAAAAA -- done()
2007-06-02 08:03:05.885 VideoOutputXv Error: Failed to create XvMC Buffers.
2007-06-02 08:03:05.885 VideoOutputXv: Closing XVideo port 275
2007-06-02 08:03:05.886 VideoOutputXv: Falling back to X11 video output 
over a network socket.
                  *** May be very slow ***

Am I missing something  obvious?

TIA
Brian


More information about the mythtv-users mailing list