nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   vdpau problem - can't play 1080 (http://www.nvnews.net/vbulletin/showthread.php?t=129789)

keyser7777 03-09-09 06:56 PM

vdpau problem - can't play 1080
 
2 Attachment(s)
Hi,

This happens only for 1080 movies, for 720p films it works just fine

Code:

./mplayer -vo vdpau -vc ffh264vdpau -fs /home/keyser/Samsung.Demo.Oceanic.Life.x264.1080p.40Mbps.mkvMPlayer dev-SVN-r28348-4.3.2 (C) 2000-2009 MPlayer Team         
CPU: Intel(R) Core(TM)2 CPU          4400  @ 2.00GHz (Family: 6, Model: 15, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1                           
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2                               

Playing /home/keyser/Samsung.Demo.Oceanic.Life.x264.1080p.40Mbps.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Video x264 1080p @ 40 Mbps", -vid 0
[mkv] Track ID 2: audio (A_AC3) "Audio ingles AC3 2.0 @ 448 Kbps", -aid 0, -alang eng
[mkv] Will play video track 1.                                                     
Matroska file format detected.                                                     
VIDEO:  [avc1]  1920x1080  24bpp  29.970 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] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
ao_nas: init(): Can't open nas audio server -> nosound
DVB card number must be between 1 and 4
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
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  [fs]
[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!
Error 2 at libvo/vo_vdpau.c:1099

My display doesn't support this resolution anyway, but I guess this is no reason for vpdau to crash, it should just scale.

Anybody else had this problem?

cehoyos 03-10-09 03:55 AM

Re: vdpau problem - can't play 1080
 
Quote:

Originally Posted by keyser7777 (Post 1953358)
This happens only for 1080 movies, for 720p films it works just fine

Please try latest MPlayer svn.

Carl Eugen

keyser7777 03-10-09 06:48 AM

Re: vdpau problem - can't play 1080
 
Hi,

Thanks for your advice.

I've updated to the latest svn version and it worked for some 1080 video files. However, for a one particular file, still doesn't works it works really slow, slower that without vdpau.

Samsung.Demo.Oceanic.Life.x264.1080p.40Mbps.mkv

Code:

[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]no frame!                                                               
Error while decoding frame!                                                                     
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder                                 
[h264_vdpau @ 0x88b7b00]Missing reference picture                                               
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.                   
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]no frame!                                                               
Error while decoding frame!                                                                     
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder                                 
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder                                 
[h264_vdpau @ 0x88b7b00]Missing reference picture                                               
[h264_vdpau @ 0x88b7b00]Missing reference picture                                               
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.                   
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]no frame!                                                               
Error while decoding frame!                                                                     
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]Missing reference picture                                               
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.                   
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.         
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]no frame!                                                               
Error while decoding frame!                                                                     
[h264_vdpau @ 0x88b7b00]number of reference frames exceeds max (probably corrupt input), discarding one                                                                                           
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.                   
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.         
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.                                                   
[vdpau] no surfaces available in get_image                                                       
vf_get_image: Tried to allocate a format that can not be allocated!                             
[h264_vdpau @ 0x88b7b00]get_buffer() failed (-1 0 0 (nil))                                       
[h264_vdpau @ 0x88b7b00]decode_slice_header error                                               
[h264_vdpau @ 0x88b7b00]no frame!                                                               
Error while decoding frame!                                                                     
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.                   
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder 0
[h264_vdpau @ 0x88b7b00]Missing reference picture                 
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder 0
[h264_vdpau @ 0x88b7b00]Missing reference picture                 
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder 0
[h264_vdpau @ 0x88b7b00]Missing reference picture                 
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[h264_vdpau @ 0x88b7b00]reference picture missing during reorder 0
[h264_vdpau @ 0x88b7b00]Missing reference picture


cehoyos 03-10-09 07:57 AM

Re: vdpau problem - can't play 1080
 
Quote:

Originally Posted by keyser7777 (Post 1953781)
I've updated to the latest svn version and it worked for some 1080 video files. However, for a one particular file, still doesn't works it works really slow, slower that without vdpau.

Samsung.Demo.Oceanic.Life.x264.1080p.40Mbps.mkv

Please do not cut mplayer's output, but add -v to the command line and post uncut command line and output.
Please post a link to the file and some information about your hardware and drivers.

Carl Eugen

Stephen Warren 03-10-09 11:54 AM

Re: vdpau problem - can't play 1080
 
In comment #1, the clip you were playing is causing VDPAU some problems, so it's aborting playback. Please upload the clip somewhere so we can download it and debug it. Alternatively, point us at a non-torrent non-warez site where we can download it.

In comment #3, it looks like you're simply running out of video memory for that clip. Googling implies that it's a level 5.1 clip using 16 reference frames, which if true is probably why.

nullack 03-10-09 12:00 PM

Re: vdpau problem - can't play 1080
 
Stephen I downloaded the clip.

I have an 8600 GT with 256mb ram.

Using 180.37 and current svn from an hour ago compile playback is good, very very low cpu utilisation on my old single core amd sempron. No artifacts.

I have compiz turned off.

hl_ 03-10-09 05:26 PM

Re: vdpau problem - can't play 1080
 
Quote:

[vdpau] Error when calling vdp_video_surface_create: The system does not have enough resources to complete the requested operation at this time.
Looks like you're running out of VRAM.
Is there still work going on to improve VDPAU memory management?

keyser7777 03-10-09 05:53 PM

Re: vdpau problem - can't play 1080
 
Hi,

Sorry for my delayed reply.


Quote:

I have an 8600 GT with 256mb ram.

Using 180.37 and current svn from an hour ago compile playback is good, very very low cpu utilisation on my old single core amd sempron. No artifacts.

I have compiz turned off.
Following the last comment, I've disabled kwin desktop effects (kde 4.2.1 compiz equivalent) and the film in cause it's being rendered smoothly, with very low cpu usage. However, with desktop effects turned on, there is a very high cpu usage and the rendering is very slow.
Is this a known issue?

Quote:

In comment #3, it looks like you're simply running out of video memory for that clip. Googling implies that it's a level 5.1 clip using 16 reference frames, which if true is probably why.
So this is a normal behaviour for this kind of file?

Quote:

Please post a link to the file and some information about your hardware and drivers.
nvidia-bug-report.log is attached to my first post
My gpu is a 8600GT with 256M.

Stephen Warren 03-10-09 06:17 PM

Re: vdpau problem - can't play 1080
 
Quote:

Originally Posted by keyser7777 (Post 1954348)
Following the last comment, I've disabled kwin desktop effects (kde 4.2.1 compiz equivalent) and the film in cause it's being rendered smoothly, with very low cpu usage. However, with desktop effects turned on, there is a very high cpu usage and the rendering is very slow.
Is this a known issue?

A number of people have reported this, and it's turned out to be the compositing manager using indirect instead of direct rendering, which has quite some overhead. I'm not sure how to configure this for kwin.

keyser7777 03-10-09 06:34 PM

Re: vdpau problem - can't play 1080
 
1 Attachment(s)
Quote:

Originally Posted by Stephen Warren (Post 1954376)
A number of people have reported this, and it's turned out to be the compositing manager using indirect instead of direct rendering, which has quite some overhead. I'm not sure how to configure this for kwin.

According to kde configuration tool, it uses Direct Rendering. (snapshot attached)

Stephen Warren 03-10-09 06:47 PM

Re: vdpau problem - can't play 1080
 
I think that's just a configuration option to request direct rendering, not an actual status indicating that direct rendering could be set up. I'll have to think about how to determine this. Perhaps kde log files say something?

BTW, when the CPU usage is high, can you run top, and see whether it's MPlayer, kwin, or X that's sucking CPU. Thanks.

keyser7777 03-11-09 02:02 PM

Re: vdpau problem - can't play 1080
 
Hi,

During video play,when kwin desktop effects are enabled and the cpu usage is high, the most cpu consuming process is Xorg (40-70%), then mplayer(20-30%).

Thanks.


All times are GMT -5. The time now is 08:02 PM.

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