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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-15-08, 10:54 AM   #49
bexbier
Registered User
 
Join Date: Oct 2008
Posts: 19
Default Re: mplayer vdpau

@tx2rx

thx a lot .... now it runs

but i have the same problems playing video like you

only the samples runs correctly ;(

mkv does not run and give that error :
Code:
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang ger
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x528  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1280 x 528 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 2.42:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x528 => 1280x528 H.264 HIGH VDPAU acceleration  [fs]
Error at libvo/vo_vdpau.c:826 ct: -0.000   0/  0 ??% ??% ??,?% 5 0


but its a great start for hardware decoding on linux .... thx for it ..... and i hope it would be stable and provides all formats of video in future

regards

bex
bexbier is offline   Reply With Quote
Old 11-15-08, 10:57 AM   #50
SilentLexx
Registered User
 
SilentLexx's Avatar
 
Join Date: Dec 2007
Location: Ukraine / Sumy
Posts: 112
Default Re: mplayer vdpau

Problem with mkv (h.264). MPEG1/2 works fine.

Log:
Code:
mplayer -vo vdpau -vc ffh264vdpau HDScape.StarGaze.HD.Universal.Beauty.2008.mkv
MPlayer dev-SVN-r27408-4.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (Family: 15, Model: 107, 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 HDScape.StarGaze.HD.Universal.Beauty.2008.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1920x1080  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
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: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[h264_vdpau @ 0x88f2690]brainfart cropping not supported, this could look slightly wrong ...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1920 x 1080 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 H.264 HIGH VDPAU acceleration
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
VDPAU capture: Enabled
vdp_imp_device_create_x11()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_get_proc_address()
vdp_presentation_queue_target_create_x11()
vdp_presentation_queue_create()
vdp_decoder_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_surface_create()
vdp_video_mixer_create()
vdp_output_surface_create()
vdp_output_surface_create()
[h264_vdpau @ 0x88f2690]brainfart cropping not supported, this could look slightly wrong ...
vdp_decoder_render()
vdp_decoder_render()
vdp_decoder_render()
Error at libvo/vo_vdpau.c:826
Card:
Code:
cat /proc/driver/nvidia/cards/0
Model:           GeForce 9800 GT
IRQ:             16
Video BIOS:      62.92.49.00.11
Card Type:       PCI-E
DMA Size:        40 bits
DMA Mask:        0xffffffffff
Bus Location:    02.00.0
__________________
PS: I'm sorry, but my english is very bad
openSUSE 11.1, Gigabyte GA-M57SLI-S4, AMD Athlon64 X2 +4800@2500MHz, 2 GB RAM, GeForce 9800GT.
openSUSE 11.0, MSI M670X, AMD Sempron +3600@2000MHz, 2 GB RAM, GeForce 6100 Go.
Ubuntu 8.10, Albatron KM266Pro, AMD AthlonXP +1800@1600MHz, 1 GB RAM, GeForce 4 MX440.
SilentLexx is offline   Reply With Quote
Old 11-15-08, 11:18 AM   #51
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by lintweaker View Post
... It looked very good, although there where some problems with de-interlacing.
The MPlayer patches don't currently enable any form of de-interlacing at all.
Stephen Warren is offline   Reply With Quote
Old 11-15-08, 11:22 AM   #52
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by bexbier View Post
Code:
coder.o loader/dmo/buffer.o loader/dmo/dmo.o loader/dmo/dmo_guids.o libmpcodecs/vd_xanim.o stream/ai_oss.o libmpeg2/idct_mmx.o libmpeg2/motion_comp_mmx.o mp3lib/decode_i586.o mp3lib/decode_mmx.o mp3lib/dct64_sse.o mp3lib/dct64_mmx.o libswscale/libswscale.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a  -Wl,-z,noexecstack    -lz -lpthread -ldl -rdynamic  -lm   
libavcodec/libavcodec.a(allcodecs.o): In function `avcodec_register_all':
allcodecs.c:(.text+0x25d): undefined reference to `h264_vdpau_decoder'
allcodecs.c:(.text+0x64d): undefined reference to `vc1_vdpau_decoder'
allcodecs.c:(.text+0x701): undefined reference to `wmv3_vdpau_decoder'
collect2: ld returned 1 exit status
make: *** [mplayer] Fehler 1
how can i fix it ?
You don't have all the required development packages installed (i.e. header files, lib .so symlinks).

I'm not familiar with Ubuntu, but on Fedora you can fix this by doing this:

yum groupinstall "X Software Development"

Presumably, there's something roughly equivalent for Ubuntu.
Stephen Warren is offline   Reply With Quote
Old 11-15-08, 11:32 AM   #53
bexbier
Registered User
 
Join Date: Oct 2008
Posts: 19
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
You don't have all the required development packages installed (i.e. header files, lib .so symlinks).

I'm not familiar with Ubuntu, but on Fedora you can fix this by doing this:

yum groupinstall "X Software Development"

Presumably, there's something roughly equivalent for Ubuntu.
hy Stephen Warren

i put --enable-vdpau behind "./configure" on the script ( like tx2rx said) and after this i had no more problem



Code:
#!/usr/bin/env sh

set -e
set -x

co_dir=mplayer-vdpau

svn co --ignore-externals -r 27408 svn://svn.mplayerhq.hu/mplayer/trunk ${co_dir}
cd ${co_dir}
svn co -r 14529 svn://svn.mplayerhq.hu/ffmpeg/trunk/libpostproc
svn co -r 14529 svn://svn.mplayerhq.hu/ffmpeg/trunk/libavformat
svn co -r 14529 svn://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec
svn co -r 14529 svn://svn.mplayerhq.hu/ffmpeg/trunk/libavutil

patch -p0 < ../mplayer-vdpau-mplayer.patch 
patch -p0 < ../mplayer-vdpau-libavutil.patch 
patch -p0 < ../mplayer-vdpau-libavcodec.patch 

./configure --enable-vdpau
make
bexbier is offline   Reply With Quote
Old 11-15-08, 11:33 AM   #54
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by r0mik View Post
vdp_device_create_x11 returns an error VDP_STATUS_NO_IMPLEMENTATION (No backend implementation could be loaded).

Running an GF8400M-GS.
This error covers a number of fatal initialization problems, such as not finding the driver library, not finding valid hardware, or an unsupported configuration, etc..

Do OpenGL applications run correctly for you?

Given your HW configuration, I'd guess the most likely issue is that you're running Xinerama?
Stephen Warren is offline   Reply With Quote
Old 11-15-08, 11:42 AM   #55
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by bexbier View Post
i put --enable-vdpau behind "./configure" on the script ( like tx2rx said) and after this i had no more problem
Yes, this bypasses the VDPAU auto-detection in the configure script. I'm not sure why the auto-detection is failing, but the actual build of MPlayer is succeeding. I'd like to get a bit more information about this.

Can you search configure.log for the following line:

Code:
============ Checking for VDPAU ============
Following this, you'll see a short C file:

Code:
#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }
Can you copy this code into autodetect.c. After this, you'll find a compiler command-line. For example, mine looks like this:

Code:
cc -W -Wall -O2 -march=native -mtune=native -pipe -ggdb -lncurses   -lXext -lX11 -lpthread -lXss -lXv  -o /tmp/mplayer-conf-16260-337 /tmp/mplayer-conf-27757-337.c -lvdpau
Can you then run this command, replacing the source filename with autodetect.c, for example, I'd run this:

Code:
cc -W -Wall -O2 -march=native -mtune=native -pipe -ggdb -lncurses   -lXext -lX11 -lpthread -lXss -lXv  -o autodetect autodetect.c -lvdpau
and post whatever that command prints. Thanks.
Stephen Warren is offline   Reply With Quote
Old 11-15-08, 11:59 AM   #56
r0mik
Registered User
 
Join Date: Nov 2008
Location: Ukraine / Kiev
Posts: 2
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
This error covers a number of fatal initialization problems, such as not finding the driver library, not finding valid hardware, or an unsupported configuration, etc..

Do OpenGL applications run correctly for you?

Given your HW configuration, I'd guess the most likely issue is that you're running Xinerama?

OpenGL applications run correctly...
Xinerama not running...
all library installing correctly...

glxinfo:
OpenGL renderer string: GeForce 8400M GS/PCI/SSE2
OpenGL version string: 2.1.2 NVIDIA 180.06

r0mik is offline   Reply With Quote

Old 11-15-08, 12:12 PM   #57
NvFuchs
Registered Fox
 
NvFuchs's Avatar
 
Join Date: Oct 2007
Location: Confoederatio Helvetica
Posts: 530
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
You don't have all the required development packages installed (i.e. header files, lib .so symlinks).
Are you sure? I had this error in fact when the nvidia vdpau libraries and header files where not in place, which happens, as an example, when using wrong packages / ebuilds.

Fuchs
NvFuchs is offline   Reply With Quote
Old 11-15-08, 12:20 PM   #58
bexbier
Registered User
 
Join Date: Oct 2008
Posts: 19
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
Yes, this bypasses the VDPAU auto-detection in the configure script. I'm not sure why the auto-detection is failing, but the actual build of MPlayer is succeeding. I'd like to get a bit more information about this.

Can you search configure.log for the following line:

Code:
============ Checking for VDPAU ============
Following this, you'll see a short C file:

Code:
#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }
Can you copy this code into autodetect.c. After this, you'll find a compiler command-line. For example, mine looks like this:

Code:
cc -W -Wall -O2 -march=native -mtune=native -pipe -ggdb -lncurses   -lXext -lX11 -lpthread -lXss -lXv  -o /tmp/mplayer-conf-16260-337 /tmp/mplayer-conf-27757-337.c -lvdpau
Can you then run this command, replacing the source filename with autodetect.c, for example, I'd run this:

Code:
cc -W -Wall -O2 -march=native -mtune=native -pipe -ggdb -lncurses   -lXext -lX11 -lpthread -lXss -lXv  -o autodetect autodetect.c -lvdpau
and post whatever that command prints. Thanks.
ok i hope i understand u correctly .....

logfile says ( without --enable-vdpau):
Code:
============ Checking for VDPAU ============

#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }

cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer  -I/usr/include/directfb     -lncurses  -ldirectfb  -lXext -lX11 -lpthread  -o /tmp/mplayer-conf--6012 /tmp/mplayer-conf--6012.c -lvdpau
ok .... now i made an file which called "autodetect.c" into this i put this code:
Code:
#include <vdpau/vdpau_x11.h>
int main(void) {
  (void)vdp_device_create_x11(0, 0, 0, 0);
  return 0; }
then i run :

Code:
sudo cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer  -I/usr/include/directfb     -lncurses  -ldirectfb  -lXext -lX11 -lpthread  -o autodetect autodetect.c -lvdpau
compiles, no error output on terminal.

i hope that was that what i should do ....

regards

bex
bexbier is offline   Reply With Quote
Old 11-15-08, 12:28 PM   #59
bexbier
Registered User
 
Join Date: Oct 2008
Posts: 19
Default Re: mplayer vdpau

*edit*
bexbier is offline   Reply With Quote
Old 11-15-08, 01:35 PM   #60
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by NvFuchs View Post
Are you sure? I had this error in fact when the nvidia vdpau libraries and header files where not in place, which happens, as an example, when using wrong packages / ebuilds.
Yes, that will cause the problem too; anything that causes the VDPAU auto-detection to fail.
Stephen Warren 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
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
NVIDIA VDPAU Reference Benchmarks News Archived News Items 0 06-11-12 05:30 AM
VDPAU and KDE 4.8 compositing = slow Pie-rate NVIDIA Linux 30 05-23-12 07:07 AM
VDPAU testing tool crisalide NVIDIA Linux 392 04-29-12 06:01 PM
mplayer & xmms problems! replys2me NVIDIA Linux 5 09-06-02 02:34 PM

All times are GMT -5. The time now is 09:45 AM.


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