Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
* the latest ffmpeg gives garbled video output. SVN r20373 works better.
* I tried building a 32-bit ffplay binary in a chroot, and that uses much less CPU (102% vs. 130%).
* Building a 32-bit mplayer seems to make no difference vs. 64-bit.
Have you ever tried hardware video acceleration version of mplayer (vdpau/vaapi)? It must be less CPU usage.
Hardware-accelerated playback doesn't appear to work on x86-64. -vo xv, gl, gl2 all give similar results.
Further observations:
* CPU utilization with mplayer is about 75-80% with 32-bit build and 70-73% with 64-bit build (video still runs slow and desyncs)
* -vo null does not have any effect on CPU usage or desync
* -nosound or -ao null has no effect, video still runs slightly faster than half speed, no change in CPU usage
Hardware-accelerated playback doesn't appear to work on x86-64. -vo xv, gl, gl2 all give similar results.
Further observations:
* CPU utilization with mplayer is about 75-80% with 32-bit build and 70-73% with 64-bit build (video still runs slow and desyncs)
* -vo null does not have any effect on CPU usage or desync
* -nosound or -ao null has no effect, video still runs slightly faster than half speed, no change in CPU usage
I am running ArchLinux (x86_64) and mplayer-vaapi work just fine. All I need are libav, vdpau-video driver and mplayer-vaapi.
Alright, tried building mplayer-vaapi as mentioned earlier in the thread. Builds OK but I get this when I try to run it:
Code:
Playing test.ts.
TS file format detected.
VIDEO H264(pid=517) AUDIO MPA(pid=751) NO SUBS (yet)! PROGRAM N. 9
FPS seems to be: 29.970030
libva: libva version 0.31.0-sds6
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
vdpau_video: error: Assertion failed in file vdpau_driver.c at line 227
mac.tieu: What versions of mplayer, libva, vdpau_video and Nvidia driver are you using?
...What versions of mplayer, libva, vdpau_video and Nvidia driver are you using?
I am using nVidia driver version 195.36.15-2, latest snapshot of libva, vdpau_video, mplayer-vaapi.
You should check for valid path of nvidia_drv_video.so (your is /usr/lib64/va/drivers/nvidia_drv_video.so). There are a utility named 'vainfo' which use to check whether libva installed properly or not.
Code:
$ ./vainfo
libva: libva version 0.31.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.31
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA API - 0.6.3
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
You should also pay attention at matching two defines of libva and vdpau-video. Mine is:
Code:
File config.h of vdpau-video:
#define VA_DRIVER_INIT_FUNC __vaDriverInit_0_31
Code:
File va.c of libva:
#define DRIVER_INIT_FUNC "__vaDriverInit_0_31"
mac.tieu: I checked the defines you mentioned and they match. I'm using the same versions of everything as you except for the Nvidia driver: 195.36.24
vainfo does the same thing:
Code:
electrode@belphegor:~$ vainfo
libva: libva version 0.31.0-sds6
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
vdpau_video: error: Assertion failed in file vdpau_driver.c at line 227
Aborted
/usr/lib64/va/drivers/nvidia_drv_video.so exists and is a symlink to vdpau_drv_video.so in the same directory.
Shadow_7: User is in video group. All video and 3D apps run correctly and at reasonable speeds. MPEG-1/2/4 HD video plays without difficulty. CPU scaling is disabled in the kernel (I was using it at one point but found that it screwed up virtualbox).
electrode@belphegor:~$ vainfo
libva: libva version 0.31.0-sds6
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
vdpau_video: error: Assertion failed in file vdpau_driver.c at line 227
Aborted
vdp_device_create_x11 had been failed. It may be due to multiple nvidia library existed. I suggest you to search 'vdp_device_create_x11 error', there are several results related.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.