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

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-09-09, 10:03 PM   #733
philipl
Registered User
 
Join Date: May 2003
Location: Sunnyvale, CA
Posts: 116
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
FYI, the ASS/SSA patch has been merged into the NVIDIA patches. A new version will be released soon.
Maybe I'm jumping the gun, but I saw that there is a 3482714 update of the mplayer patch on the ftp site and I tried it out. ASS/SSA works as you described and its no longer necessary to fudge the number of ref frames (w00t!). However, the other hack to bump NUM_VIDEO_SURFACES_H264 from 17 to 18 is still required to play the infamous "flock of birds" scene. I'm not sure what combination of options induces this requirement.
__________________
--phil
philipl is offline   Reply With Quote
Old 02-10-09, 02:04 AM   #734
zoomdoom
Registered User
 
Join Date: Jan 2009
Posts: 11
Default Re: mplayer vdpau

I'm wondering if surfaces/max_references could default to maximum (so all files are playable) and get a command line switch to be lowered for people running out of memory?
zoomdoom is offline   Reply With Quote
Old 02-10-09, 02:28 AM   #735
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: mplayer vdpau

Quote:
Originally Posted by zoomdoom View Post
I'm wondering if surfaces/max_references could default to maximum (so all files are playable) and get a command line switch to be lowered for people running out of memory?
That's a hack, the a real fix would be to detect the stream and adjust this dynamicly instead of hardcoding it.

Stephen already said that this has not been done because the initial ffmpeg version used to create the patch did not export this information, but now it should be possible to do.
Dragoran is offline   Reply With Quote
Old 02-10-09, 02:45 AM   #736
assem046
Registered User
 
Join Date: Dec 2008
Posts: 13
Default Re: mplayer vdpau

With NVidia 180.29 and mplayer-vdpau-3482714 i've got the same error as sl1pkn07:

mplayer -vc ffh264vdpau Courage\ Under\ Fire.mkv

Code:
VO: [vdpau] 1280x696 => 1280x696 H.264 HIGH VDPAU acceleration  [fs]
vo_vdpau: get_image failed011 ct: -0.025   0/  0  1% 12%  1.0% 0 0
[VD_FFMPEG] Only buffers allocated by vo_vdpau allowed.
mplayer: libmpcodecs/vd_ffmpeg.c:1198: vdpau_get_buffer: Assertion `0' failed.


MPlayer interrupted by signal 6 in module: decode video
The movie starts fine but after 4 seconds it gives the error. Even when I Fast Forward to the middle of the movie, it plays then for 4 seconds and then it crashed.

I've got an XFX 8500 GT - 512 MB
assem046 is offline   Reply With Quote
Old 02-10-09, 02:52 AM   #737
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
FYI, the ASS/SSA patch has been merged into the NVIDIA patches. A new version will be released soon.
Sorry in advance for my ignorance, but what is ASS/SSA ?

Jean-Yves
jyavenard is offline   Reply With Quote
Old 02-10-09, 03:53 AM   #738
zoomdoom
Registered User
 
Join Date: Jan 2009
Posts: 11
Default Re: mplayer vdpau

assem046: I got these errors when I did not bump max_surfaces and max_references, could that be the in your case reason?
zoomdoom is offline   Reply With Quote
Old 02-10-09, 06:37 AM   #739
clarious
Registered User
 
Join Date: Jan 2009
Posts: 39
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
Sorry in advance for my ignorance, but what is ASS/SSA ?

Jean-Yves
It is a subtitle file format.

Also, can anyone answer this question: Currently VDPAU can't decode all type of h264, will this change in the future?
clarious is offline   Reply With Quote
Old 02-10-09, 07:41 AM   #740
assem046
Registered User
 
Join Date: Dec 2008
Posts: 13
Default Re: mplayer vdpau

Quote:
Originally Posted by zoomdoom View Post
assem046: I got these errors when I did not bump max_surfaces and max_references, could that be the in your case reason?
What did you change where? libvo/vo_vdpau.c ?

This one:
#define NUM_VIDEO_SURFACES_H264 17

What number can it be? Is there a range between 0 and xxx?
assem046 is offline   Reply With Quote

Old 02-10-09, 07:55 AM   #741
sl1pkn07
Registered User
 
Join Date: Nov 2006
Location: Spanishtan
Posts: 103
Default Re: mplayer vdpau

Quote:
Originally Posted by assem046 View Post
With NVidia 180.29 and mplayer-vdpau-3482714 i've got the same error as sl1pkn07:

mplayer -vc ffh264vdpau Courage\ Under\ Fire.mkv

Code:
VO: [vdpau] 1280x696 => 1280x696 H.264 HIGH VDPAU acceleration  [fs]
vo_vdpau: get_image failed011 ct: -0.025   0/  0  1% 12%  1.0% 0 0
[VD_FFMPEG] Only buffers allocated by vo_vdpau allowed.
mplayer: libmpcodecs/vd_ffmpeg.c:1198: vdpau_get_buffer: Assertion `0' failed.


MPlayer interrupted by signal 6 in module: decode video
The movie starts fine but after 4 seconds it gives the error. Even when I Fast Forward to the middle of the movie, it plays then for 4 seconds and then it crashed.

I've got an XFX 8500 GT - 512 MB
probe this patch:

edit libvo/vo_vdpau.c and search this parameter (line 96):

#define NUM_VIDEO_SURFACES_H264 17

change the 17 to 18

and search this text (line 751+/-):

switch (format) {
case IMGFMT_VDPAU_H264_MAIN:
case IMGFMT_VDPAU_H264_HIGH:
{
// FIXME: Use "h->sps.ref_frame_count" here instead.

// Level 4.1 limits:
uint32_t round_width = (vid_width + 15) & ~15;
uint32_t round_height = (vid_height + 15) & ~15;
uint32_t surf_size = (round_width * round_height * 3) / 2;
max_references = (12 * 1024 * 1024) / surf_size;
if (max_references > 16) {
max_references = 16;
}
}
break;
default:
max_references = 2;
break;
}

After that and before the if (IMGFMT_IS_VDPAU(image_format)) simply write :

max_references = 16;


save and compile now


this patch works all 1080p/720p/480p videos for me

greetings

Sthepen. in the new release of mplayer-vdpau adds the ASS/SSA patch? -> EDIT: yes. thanks for this

is possible update the mplayer revision base to latest SVN version?

PD: thanks by Miles Teg from animesuki
sl1pkn07 is offline   Reply With Quote
Old 02-10-09, 07:57 AM   #742
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

I've compiled the latest nvidia's mplayer patches, and it plays perfectly all my h264 files, no need to modify the code and bump the number of reference frames anymore..

Published mplayer ubuntu packages to on my repo:
deb http://www.avenard.org/files/ubuntu-repos/ release/

Also built another mplayer with x264 support for mencoder (nvidia version disable x264).
it's in my testing repository:
deb http://www.avenard.org/files/ubuntu-repos/ testing/
jyavenard is offline   Reply With Quote
Old 02-10-09, 08:09 AM   #743
sl1pkn07
Registered User
 
Join Date: Nov 2006
Location: Spanishtan
Posts: 103
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
I've compiled the latest nvidia's mplayer patches, and it plays perfectly all my h264 files, no need to modify the code and bump the number of reference frames anymore..

Published mplayer ubuntu packages to on my repo:
deb http://www.avenard.org/files/ubuntu-repos/ release/

Also built another mplayer with x264 support for mencoder (nvidia version disable x264).
it's in my testing repository:
deb http://www.avenard.org/files/ubuntu-repos/ testing/

sl1pkn07@SpinFlo:~$ mplayer -vc ffh264vdpau -ass /media/WDGP1TB-1/Macross\ Saga/plus/macrossplus1v3.mkv
MPlayer dev-SVN-r28348-4.3.2 (C) 2000-2009 MPlayer Team
CPU: AMD Athlon(tm) 64 FX-60 Dual Core Processor (Family: 15, Model: 35, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not open config files /home/sl1pkn07/.lircrc and /etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing /media/WDGP1TB-1/Macross Saga/plus/macrossplus1v3.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang jpn
[mkv] Track ID 3: audio (A_AAC), -aid 1, -alang spa
[mkv] Track ID 4: subtitles (S_TEXT/ASS), -sid 0, -slang spa
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 640x480 24bpp 23.973 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
Couldn't open video filter 'ass'.
ASS: cannot add video filter
[ass] Init
[ass] Updating font cache.
================================================== ========================
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: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
================================================== ========================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Invalid argument
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 640x480 => 640x480 H.264 HIGH VDPAU acceleration
vo_vdpau: get_image failed002 ct: 0.044 0/ 0 19% 3% 3.5% 5 0
[VD_FFMPEG] Only buffers allocated by vo_vdpau allowed.
mplayer: libmpcodecs/vd_ffmpeg.c:1198: vdpau_get_buffer: Assertion `0' failed.


MPlayer interrupted by signal 6 in module: decode video
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
sl1pkn07@SpinFlo:~/aplicaciones/mplayer-vdpau-3482714/mplayer-vdpau/libvo$

sorry? (im using you mplayer)

sorry Assem046. the animesuki patch not working by the latest mplayer :/ (several code change)
sl1pkn07 is offline   Reply With Quote
Old 02-10-09, 08:12 AM   #744
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

You aren't starting mplayer properly
you need to do:
mplayer -vo vdpau -vc ffh264vdpau video-file ...
jyavenard 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 01:02 AM.


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