Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-01-05, 01:51 PM   #1
vespaman
Registered User
 
Join Date: Dec 2004
Posts: 4
Default Can't get xvmc to work ..

Hi,

I have 2 different boxes, which I'm trying to get xvmc working on. I used to have xvmc working on them some months ago, but recently, wanted to watch some nice hdtv movies...

The boxes both run xorg on gentoo, but thats about the only thing in common. One box is 2.6.9 on a P4 with 5700Ultra, the other a 2.6.8, dual AMD with FX5200.
Playing movies with xv is fine on both.

cat /proc/driver/nvidia gives:
NVRM version: NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6629 Wed Nov 3 13:12:51 PST 2004
GCC version: gcc version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

I have tried both mplayer and xine, and my conclusion is that the problem must be xorg or nvidia drivers.

xorg version 6.8.1.901
I have tried both nvagp and apggart.

mplayer says:

$ mplayer -vo xvmc Alien.ts
MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE


Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147

77 audio & 188 video codecs
Playing Alien.ts.
Cache fill: 6.25% (524288 bytes) TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=256)...AUDIO AAC(pid=272) NO SUBS (yet)! PROGRAM N. 103
Opened TS demuxer, audio: 4134504d(pid 272), video: 10000002(pid 256)...POS=49068
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 20000.0 kbps (2500.0 kbyte/s)
================================================== ========================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
================================================== ========================
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0" => local display)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.0
================================================== ========================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
================================================== ========================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
[AO OSS] audio_setup: Can't open audio device /dev/sound/dsp: No such file or directory
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 1920 x 1080 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.

FATAL: Could not initialize video filters (-vf) or video output (-vo).

alsa-uninit: pcm closed

Exiting... (End of file)



xine says:
[..]
video_out_xvmc: using Xv port 145 from adaptor NV17 Video Overlay
for hardware colorspace conversion and scaling
idct and motion compensation acceleration
With Overlay = 1; UnsignedIntra = 0.
audio_oss_out: audio.device.oss_device_name = auto, probing devs
audio_oss_out: Auto probe for audio device failed
load_plugins: failed to load audio output plugin <oss>
main: probing <oss> audio output plugin
audio_oss_out: audio.device.oss_device_name = auto, probing devs
audio_oss_out: Auto probe for audio device failed
load_plugins: failed to load audio output plugin <oss>
main: probing <arts> audio output plugin
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
osd: can't find out current locale character set
gui_xine_open_and_play():
mrl: 'Alien.ts',
sub 'NONE',
start_pos 0, start_time 0, av_offset 0, spu_offset 0.
xine: found input plugin : file input plugin
xine: found demuxer plugin: MPEG Transport Stream demuxer
av_offset=0 pts
spu_offset=0 pts
libmpeg2: output port has XvMC capability
200 frames delivered, 200 frames skipped, 0 frames discarded
200 frames delivered, 200 frames skipped, 0 frames discarded
200 frames delivered, 200 frames skipped, 0 frames discarded
200 frames delivered, 200 frames skipped, 0 frames discarded

---------------------- (ERROR) ----------------------
The amount of dropped frame is too high, your system might be slow, not properly optimized or just too loaded.



Has anyone had success with xvmc with this kind of set-up?

I have enabled the XVMC_DEBUG=2 statement, but it does not reveal anything.
No errors in xorg log files.

Excerpts from xorg.conf;

Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
# Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the Type1 and FreeType font modules
Load "type1"
Load "speedo"
# Load "freetype"
# Load "xtt"

# This loads the GLX module
Load "glx"
# This loads the DRI module
# Load "dri"

EndSection


Any thoughts welcome!


Thanks,
- Micael
vespaman is offline   Reply With Quote
Old 01-03-05, 11:54 AM   #2
scowl
Registered User
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 31
Default Re: Can't get xvmc to work ..

Are you starting mplayer with the -vc ffmpeg12mc option? XvMC only works with the ffmpeg codec.
scowl is offline   Reply With Quote
Old 01-03-05, 08:23 PM   #3
cmumford
Registered User
 
Join Date: Nov 2004
Posts: 4
Default Re: Can't get xvmc to work ..

if you run xdpyinfo does it report the "XVideo-MotionCompensation" extension? Look in xorg.conf and see if the "nvidia" driver is being used, or if it switched back to "nv" somehow.
cmumford is offline   Reply With Quote
Old 01-04-05, 05:22 PM   #4
vespaman
Registered User
 
Join Date: Dec 2004
Posts: 4
Default Re: Can't get xvmc to work ..

Guys,

Thanks for your input!

cmumford,
I have nvidia driver in xorg.conf. and according to xorg log file, everything loads fine (nvagp with dri etc) apart from glx which complains about "Symbol __glXgetActiveScreen from module /usr/lib/modules/extensions/libdri.a is unresolved!"
As I don't care about GL, I have not bothered about this.

scowl;
This is what mplayer with the -vc option says (took away alot of audio stuff);

MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2



77 audio & 188 video codecs
Setting up LIRC support...
Playing Alien.ts.

Cache fill: 0.00% (0 bytes) TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=256)...AUDIO AAC(pid=272) NO SUBS (yet)! PROGRAM N. 103
Opened TS demuxer, audio: 4134504d(pid 272), video: 10000002(pid 256)...POS=49068
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 20000.0 kbps (2500.0 kbyte/s)
================================================== ========================
vo: X11 running at 1920x1080 with depth 24 and 32 bpp (":0.0" => local display)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.0
================================================== ========================
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))
================================================== ========================
Starting playback...
vd_ffmpeg: XVMC accelerated MPEG2
trying pixfmt=0
VDec: vo config request - 1920 x 1080 (preferred csp: 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] 1920x1080 => 1920x1080 MPEG1/2 Motion Compensation and IDCT [fs]
vo_xvmc: Port 146 grabed
vo_xvmc: Found matching surface with id=54434449 on 146 port at 1 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
X11 error: BadMatch (invalid parameter attributes)



.. And xdpyinfo (important part) says;

name of display: :0.0
version number: 11.0
vendor string: Gentoo Linux (The X.Org Foundation 6.8.1.901, revision r0-0.3.3)
vendor release number: 60801901
X.Org version: 6.8.1.901
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0xa0000e, revert to PointerRoot
number of extensions: 29
BIG-REQUESTS
DAMAGE
DOUBLE-BUFFER
DPMS
Extended-Visual-Information
LBX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
NV-CONTROL
NV-GLX
RANDR
RENDER
SECURITY
SHAPE
SYNC
TOG-CUP
X-Resource
XC-APPGROUP
XC-MISC
XFIXES
XFree86-Bigfont
XFree86-Misc
XFree86-VidModeExtension
XInputExtension
XKEYBOARD
XTEST
XVideo
XVideo-MotionCompensation
default screen number: 0
number of screens: 1

screen #0:
print screen: no
dimensions: 1920x1080 pixels (650x366 millimeters)
resolution: 75x75 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0xb6
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xd8001f
KeyPressMask KeyReleaseMask ButtonPressMask
ButtonReleaseMask EnterWindowMask SubstructureNotifyMask
SubstructureRedirectMask PropertyChangeMask ColormapChangeMask
number of visuals: 40


- Micael
vespaman is offline   Reply With Quote
Old 03-04-05, 10:15 PM   #5
dorphell
Registered User
 
Join Date: Feb 2005
Posts: 20
Default Re: Can't get xvmc to work ..

What version of xorg?
dorphell is offline   Reply With Quote
Old 04-15-05, 03:17 AM   #6
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: Can't get xvmc to work ..

Does XvMC works on both vga output and DVI output ?
At my place it works perfectly on VGA but I can't use it on the DVI, no idea on how to change this ???
Gregoire.Favre is offline   Reply With Quote
Old 04-15-05, 04:17 PM   #7
scowl
Registered User
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 31
Default Re: Can't get xvmc to work ..

It works with DVI.. If you're using two monitors you have specify that monitor as the first one in your X config file. It will only work on the first monitor.
scowl is offline   Reply With Quote
Old 04-15-05, 04:55 PM   #8
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: Can't get xvmc to work ..

Without using Twinview I can't find the way to tell X that my first monitor should be the DVI one ???
And if I use twinview, I can't instruct xine/mplayer/fvwm2 to only use first or second screen ???
Thank for your answer
Gregoire.Favre is offline   Reply With Quote

Old 04-17-05, 08:32 AM   #9
va3rcc
The Ancient One
 
Join Date: Aug 2004
Location: London, Ontario, Canada
Posts: 89
Default Re: Can't get xvmc to work ..

In order to use XVMC with MPlayer it must be explicitly compiled into the application. When you configure MPlayer you must add --enable-xvmc and --with-xvmclib=XvMCNVIDIA. Hope this helps.
__________________
Ron Crouch
va3rcc is offline   Reply With Quote
Old 04-17-05, 11:24 AM   #10
klaamane
Registered User
 
Join Date: Feb 2005
Posts: 1
Default Re: Can't get xvmc to work ..

Does anybody know howto make the monitor connected to the DVI connector as the primary display? (Not using Twinview). I tried the "ConnectedMonitor" option, but w/o any luck.
klaamane is offline   Reply With Quote
Old 04-23-05, 05:19 AM   #11
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: Can't get xvmc to work ..

I now use twinview, and XvMC works on both "monitor"s.
With mplayer -xineramascreen 1 (or 2) I can set on which screen it should go.
With xine, hitting f goes to fullscreen on first monitor, F on both, I have to find a way to fullscreen on second...
Gregoire.Favre is offline   Reply With Quote
Old 04-23-05, 06:47 AM   #12
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: Can't get xvmc to work ..

I found it for xine :
in ~/.xine/config just put
gui.xinerama_use_screens:2

that way, with f one get fullscreen in first screen and with F on second one
Gregoire.Favre is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiseat X with two cards: used to work, now segfaulting Artefact2 NVIDIA Linux 10 06-26-12 05:22 PM
Ask Stack: What is the best way to divide work between developers? News Archived News Items 0 06-10-12 02:10 AM
295.40 Does not Work Had to downgrade to 295.33 Archmbc NVIDIA Linux 4 05-03-12 02:38 PM
Need help to get the X to work on my Acer TravelMate 630 knchee NVIDIA Linux 16 09-19-02 10:16 PM

All times are GMT -5. The time now is 06:16 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.