Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Baffled by XvMC on nvidia.
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
robinmarlow
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 167

PostPosted: Thu Jul 31, 2008 12:04 am    Post subject: Baffled by XvMC on nvidia. Reply with quote

I've been trying in vain now for several days to get XvMC working on my myth box.

To simplify matters i've been testing with mplayer using:
mplayer -vo xvmc -vc ffmpeg12mc test.mp2

but it always gets stuck playing at the same place:
I get a burst of sound and a black video window requring me to ^c out of it.
mplayer says:
Code:
CPU: AMD Sempron(tm) Processor 3000+ (Family: 15, Model: 44, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Playing /mnt/mythstore/1005_20080724215800.mpg.
TS file format detected.
VIDEO MPEG2(pid=6017) AUDIO MPA(pid=6018) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
==========================================================================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 720 x 576 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xvmc] 720x576 => 1024x576 MPEG1/2 Motion Compensation and IDCT
vo_xvmc: Port 245 grabed
vo_xvmc: Found matching surface with id=54434449 on 245 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
    Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering


The box has an nvidia AGP 5900XT.
I've tried kernels 2.6.24 & 2.6.25 with nvidia drivers 173.14.09, 173.14.05, 173.08, 169.09-r1
on mplayer-1.0_rc2_p26753 & 1.0_rc2_p27120

I've removed all driver options in my Xorg.conf
but have previously tried:
RenderAccel, XvmcUsesTextures & UseEvents with combinations of true & false.
NvAGP doesn't seem to make any difference.

after reading somewhere I also tried disabled the xorg composite extension... but that didn't work either!
Code:
Section "Extensions"
     Option "Composite" "Disabled"
EndSection


eselect-xvmc is set as nvidia
/etc/X11/XvMCConfig is "libXvMCNVIDIA_dynamic.so"

I'm at my wit's end. Ironically on my main box it "just works" with no complaints.
I'm starting to think there could be a bug with the 5900XT. Any ideas anyone?

I tried export XVMC_DEBUG=1 but couldn't see any additional output anywhere.....

will happily post full logs / configs if required.

Fingers crossed,

Robin
Back to top
View user's profile Send private message
jimhend~1
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2003
Posts: 89

PostPosted: Fri Aug 08, 2008 5:17 am    Post subject: Reply with quote

im tring this on my box and getting a very similar result.

MPlayer dev-SVN-r27120-4.3.1 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /opt/tmp/sin_city.vob.
Cache fill: 0.00% (0 bytes)
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
==========================================================================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 720 x 576 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xvmc] 720x576 => 1024x576 MPEG1/2 Motion Compensation and IDCT [fs]
vo_xvmc: Using Xv Adaptor #0 (NV17 Video Texture)
vo_xvmc: Port 355 grabed
vo_xvmc: Found matching surface with id=54434449 on 355 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering
Killed
lspci | grep -i nv
00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management (rev a1)
00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0 Controller (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb AC'97 Audio Controller (rev a1)
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller (v2.5) (rev a2)
00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) (rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)
01:00.0 VGA compatible controller: nVidia Corporation NV40 [GeForce 6800 GT] (rev a1)
02:08.0 Multimedia audio controller: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller (rev 02)


emerge --info
Portage 2.2_rc6 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-zen2.0 x86_64)
=================================================================
System uname: Linux-2.6.26-zen2.0-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Wed, 06 Aug 2008 23:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python: 2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.2.5
sys-apps/sandbox: 1.2.18.1-r3
sys-devel/autoconf: 2.13, 2.62-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.4
virtual/os-headers: 2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zen-overlay /usr/local/portage/layman/secondlife"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext S3TC X a52 aac accessibility acl acpi acpi4linux additions afterimage aim akode alsa amarok amazon amd64 ao aoss applet aqua_theme asf async audacious audiofile automount avahi background bash-completion bcmath berkdb bittorrent bjam blender-game bluetooth bonobo branding browserplugin bzip2 bzlib c++ cairo calendar ccache cdaudio cdda cddb cdio cdparanoia cdr cdrom chroot cli cpudetection cracklib crypt curl cursors custom-cflags dbus de_tvtoday dga dhcp directfb divx dnd dpmod dpms dv dvd dvdr dvdread eds emboss emul-linux-x86 encode epiphany ethereal evo evolution examples expat extrafilters fam fbdev ffmpeg finger firefox fla flac flash fmod fontconfig freetype ftp gaim gd gdbm gdm gif gimp glade glib glibc-omitfp glitz glut gmedia gnome gnutls gphoto2 gpm gstreamer gstreamer010 gtk gzip hal hardcoded-tables hddtemp hfs icons iconv icq id3 id3tag image imagemagick imlib2 ipod irc ivtv jack java javascript jpeg kde kdm kerberos kqemu lame lash ldap libnotify libsamplerate libvisual lights lirc live lm_sensors logitech-mouse logrotate mad matroska mdnsresponder-compat memlimit midi mikmod mixer mjpeg mmap mmx mmxext modplug mods mono moznocompose moznoirc moznomail moznoroaming mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn msql mudflap multilib musepack musicbrainz mysql mythtv nautilus ncurses net network networkmanager newspr nls nntp nocd nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis openal opengl openmp p2p pam pango pcre pdf perl pmu png portaudio posix ppds pppd pulseaudio pvr python qmax qt3 qt3support qt4 quicktime radio rar rdesktop readline realmedia reflection reiserfs rhythmbox rogue rplay rpm rtc samba sblive sdl sdl-image sdl-sound sdlaudio seamonkey session skins smp sndfile sound soundtouch source sox spell spl sqlite src sse sse2 ssl startup-notification stream svg sys-libs sysfs syslog taglib tcl tcltk tcp tcpd textures theora threads threadsafe tiff tk transcode truetype twolame unicode unzip usb v4l v4l2 vcd vfat vga videos visualization vlm vorbis wavpack wma wma123 wmp wordperfect wxwindows x264 xanim xatrix xattr xchat xcomposite xext xft xine xml xorg xosd xpm xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="ice1712 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa vga ivtvdev nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Sat Aug 09, 2008 2:58 am    Post subject: Reply with quote

I was trying this xvmc stuff out of curiosity a few weeks ago when I was reading a xvmc thread in nvnews forum. It works with compiz running.

I was able to play some sample files with no error, following is one of the output:
Code:
mplayer -vo xvmc -vc ffmpeg12mc creation.mpg
MPlayer dev-SVN-r27120-4.3.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6700  @ 2.66GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing creation.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 1)  29.970 fps  1238.4 kbps (154.8 kbyte/s)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
==========================================================================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 320 x 240 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xvmc] 320x240 => 320x240 MPEG1/2 Motion Compensation and IDCT
vo_xvmc: Using Xv Adaptor #0 (NV17 Video Texture)
vo_xvmc: Port 355 grabed
vo_xvmc: Found matching surface with id=54434449 on 355 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
    Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering
A: 279.9 V: 279.4 A-V:  0.491 ct:  0.042 8382/8382  1%  0%  0.4% 2 0

Exiting... (End of file)


Following is some of the config info:
uname -a
Code:
Linux local80 2.6.26-rc9 #5 SMP Mon Jul 21 15:09:26 EDT 2008 x86_64 Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz GenuineIntel GNU/Linux

6600GT
Code:
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600 GT] (rev a2)

nvidia
Code:
[I] media-gfx/nvidia-cg-toolkit
     Installed versions:  2.0.0015(10:32:36 PM 07/24/2008)

[I] media-video/nvidia-settings
     Installed versions:  173.14.09(10:00:35 PM 07/21/2008)

[I] x11-drivers/nvidia-drivers
     Installed versions:  177.13(10:32:46 PM 07/24/2008)(acpi custom-cflags gtk kernel_linux multilib)

mplayer
Code:
[I] media-video/mplayer
     Installed versions:  1.0_rc2_p27120(05:45:31 PM 08/05/2008)(X a52 aac alsa amrnb amrwb bidi bl cddb cdio cdparanoia cpudetection custom-cflags custom-cpuopts dga directfb dts dv dvb dvd enca encode fbcon ftp ggi gif gtk iconv jpeg kernel_linux live lzo mad md5sum mmx mmxext mp2 mp3 musepack nas nemesi openal opengl png pnm pulseaudio quicktime radio rar real rtc samba sdl speex srt sse sse2 ssse3 teletext tga theora truetype unicode v4l v4l2 vorbis x264 xanim xscreensaver xv xvid xvmc zoran -3dnow -3dnowext -aalib -altivec -arts -bindist -debug -doc -dxr2 -dxr3 -esd -ipv6 -jack -joystick -ladspa -libcaca -lirc -oss -svga -video_cards_mga -video_cards_s3virge -video_cards_tdfx -video_cards_vesa -vidix -win32codecs -xinerama)

mpeg sample sites
Code:
http://www.pangolin.com/Downloads-videos.html
http://www.leadcodecs.com/Download/MPEG-Videos.htm
http://www.snapstream.com/enterprise/samples.asp
Back to top
View user's profile Send private message
robinmarlow
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 167

PostPosted: Sat Aug 09, 2008 2:45 pm    Post subject: Reply with quote

Interesting. I managed to get it working eventually but only with drivers 100.XX 96.XX & 71.XX

gives me a 30% drop in CPU usage vs xv.

169.XX & 173.XX break as described above.

I haven't tried 177.XX but don't hold out much hope!

Interesting that you both have 6600GTs.
Junksui is yours AGP or PCI-X?

Robin
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Sat Aug 09, 2008 10:15 pm    Post subject: Reply with quote

My 6600GT is pci express.
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Sun Aug 10, 2008 10:51 am    Post subject: Reply with quote

I have a 6200 agp and I am right back on 96.43.07 as I thought some patches from:

https://bugs.gentoo.org/show_bug.cgi?id=218178

were needed on 2.6.25+ kernels

XvMC runs fine on the above driver which i think is 96.43.05 with a patch

:)
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