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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-16-08, 05:19 AM   #85
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: mplayer vdpau

hi,

this looks really promising, although it seems to be too slow to properly decode the daily opera-broadcasts at astra hd. after a few seconds mplayer reports too many frames in buffer... if it would be of interest I could post a sample clip

anyway, I tried to play around a bit with the options and tried to enable deinterlacing, so I added this to vo_vdpau.c after vdp_video_mixer_create:

Code:
        VdpVideoMixerFeature features[1];
        VdpBool enables[1];

        features[0] = VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL;
        enables[0] = VDP_TRUE;
        vdp_st = vdp_video_mixer_set_feature_enables(
            videoMixer,
            1,
            features,
            enables
        );
        CHECK_ST
running that it gives:
Code:
vdp_video_mixer_create(1, 0, NULL, 3, {0, 1, 2}, {1920, 1080, 0}, -)
    -> 0, 22
vdp_video_mixer_set_feature_enables(22, 1, {1}, {1})
    -> 15
Error at libvo/vo_vdpau.c:699
any hints on that? - is deinterlacing not yet supported?

UPDATE: I recognized that I need to request the feature first. Doing this, the player runs, but no deinterlacing seems to be done. Seems like the feature is not yet implemented?

regards,
julian
jusst is offline   Reply With Quote
Old 11-16-08, 12:24 PM   #86
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by philipl View Post
Code:
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001b0c 0000f010 00000001
philipl, this XID is a known issue we're investigating. I can't say right now if it's related to why the decoder_create is failing. I would say the best thing is to wait until we've fixed that, then try again. Sorry I can't be more help.
Stephen Warren is offline   Reply With Quote
Old 11-16-08, 12:29 PM   #87
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by jusst View Post
UPDATE: I recognized that I need to request the feature first. Doing this, the player runs, but no deinterlacing seems to be done. Seems like the feature is not yet implemented.
De-interlacing is already supported and should work. However, for anything other than bob/weave, you'll need to supply more fields than the current frame to the video_mixer_render function to provide the necessary history that the algorithms require (see vdpau.h for details). This is not implemented in the current MPlayer patches.

However, you should be able to enable bob and see a difference.
Stephen Warren is offline   Reply With Quote
Old 11-16-08, 01:58 PM   #88
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: mplayer vdpau

I see, I think currently no deinterlacing happens because VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME is set in vo_vdpau.c...
Will fiddle around a bit with it.
Actually what I am even more curious about right now is how far performance-improvements are to be expected?
All high bitrate H264-ts streams I have do run out of sync until mplayer spews messages telling me that the video-buffer is full...
You might grab a short sample here: http://www.jusst.de/files/sample.ts

Regards,
Julian
jusst is offline   Reply With Quote
Old 11-16-08, 03:13 PM   #89
jeisom
Registered User
 
Join Date: Dec 2005
Location: My own little world
Posts: 117
Default Re: mplayer vdpau

Quote:
Originally Posted by jusst View Post
I see, I think currently no deinterlacing happens because VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME is set in vo_vdpau.c...
Will fiddle around a bit with it.
Actually what I am even more curious about right now is how far performance-improvements are to be expected?
All high bitrate H264-ts streams I have do run out of sync until mplayer spews messages telling me that the video-buffer is full...
You might grab a short sample here: http://www.jusst.de/files/sample.ts

Regards,
Julian
Does mplayer have the sync issues without vdpau? I've had issues with mplayer
and mpeg2 ts files for some time with respect to sync. you may try "-demuxer lavf"
and see if that helps.
jeisom is offline   Reply With Quote
Old 11-16-08, 03:31 PM   #90
neosmatrix
Registered User
 
Join Date: Sep 2004
Posts: 60
Default Re: mplayer vdpau

First of all: I love this VDPAU .
I played a m2ts file with only 3-4% cpu load on 1 of 4 cores.But how do I enable bob deinterlacing?
Also it seems that the aspect of my movies are not correct, and I can't switch through the aspect ratios using mplayer.
neosmatrix is offline   Reply With Quote
Old 11-16-08, 09:32 PM   #91
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by neosmatrix View Post
First of all: I love this VDPAU .
I played a m2ts file with only 3-4% cpu load on 1 of 4 cores.But how do I enable bob deinterlacing?
Also it seems that the aspect of my movies are not correct, and I can't switch through the aspect ratios using mplayer.
I'm assuming you got the m2ts file from a bluray rip ; those videos aren't interlaced , so why would you want to enable the deinterlacer?
jyavenard is offline   Reply With Quote
Old 11-17-08, 03:26 AM   #92
jusst
Registered User
 
Join Date: Mar 2006
Posts: 99
Default Re: mplayer vdpau

Quote:
Originally Posted by jeisom View Post
Does mplayer have the sync issues without vdpau? I've had issues with mplayer
and mpeg2 ts files for some time with respect to sync. you may try "-demuxer lavf"
and see if that helps.
The sync issues only happen with high bitrate streams - it is the same with lavf demuxer. It seems really to be caused by too slow decoding in the graphics card?
Did you have a look at the sample I linked?
jusst is offline   Reply With Quote

Old 11-17-08, 12:47 PM   #93
crispy_chunks
Registered User
 
Join Date: Nov 2008
Posts: 3
Default Re: mplayer vdpau

I still get the error at line 826 even after extracting a h264 track from a mkv file. I get this:

Code:
MPlayer dev-SVN-r27408-4.2.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 31, Stepping: 0)
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 /media/Disk250/ftp/Movies/DVD-R/Zodiac/video.264.
H264-ES file format detected.
FPS seems to be: 23.976000
==========================================================================
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))
==========================================================================
Audio: no sound
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1280 x 536 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1280x536 => 1280x536 H.264 HIGH VDPAU acceleration 
Error at libvo/vo_vdpau.c:826% 0 0
When running
Code:
./mplayer -vo vdpau -vc ffh264vdpau <file>
crispy_chunks is offline   Reply With Quote
Old 11-17-08, 01:44 PM   #94
neosmatrix
Registered User
 
Join Date: Sep 2004
Posts: 60
Default Re: mplayer vdpau

After upgrading to Xorg 1.5.3-1 I get this error
Code:
$ mplayer -vo vdpau -vc ffh264vdpau  Grey.ts
MPlayer dev-SVN-r27408-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Warning unknown option skin at line 95
Warning unknown option skin at line 95
128 audio & 261 video codecs

Playing Grey.ts.
TS file format detected.
VIDEO H264(pid=255) AUDIO A52(pid=259) NO SUBS (yet)!  PROGRAM N. 1000
FPS seems to be: 25.000000
==========================================================================
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...
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1920 x 1088 (preferred colorspace: H.264 MAIN VDPAU acceleration)
VDec: using H.264 MAIN VDPAU acceleration as output csp (no 1)
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1088 => 1920x1088 H.264 MAIN VDPAU acceleration  [fs]
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
Error at libvo/vo_vdpau.c:700
I tried several files which were working before with no success.

EDIT: I now tried a recording from mythtv with "$ mplayer -vo vdpau -vc ffmpeg12vdpau /home3/Multimedia/TV/13060_20081117201500.mpg"
The video is playing quite well but with less quality then XVideo.
neosmatrix is offline   Reply With Quote
Old 11-17-08, 04:02 PM   #95
dirkson
Registered User
 
Join Date: Nov 2008
Posts: 2
Default Re: mplayer vdpau

Hey all. I'm getting this error:

VO: [vdpau] 1920x1040 => 1920x1040 Planar YV12
Error at libvo/vo_vdpau.c:179

I'm running a 9600GT, with the 180.06 drivers.

What's up? : )
dirkson is offline   Reply With Quote
Old 11-18-08, 05:35 AM   #96
oxyis
Registered User
 
Join Date: May 2008
Posts: 7
Default Re: mplayer vdpau

Quote:
Originally Posted by dirkson View Post
Hey all. I'm getting this error:

VO: [vdpau] 1920x1040 => 1920x1040 Planar YV12
Error at libvo/vo_vdpau.c:179

I'm running a 9600GT, with the 180.06 drivers.

What's up? : )
I have the same problem, with an 8600 GT (180.06 driver). Compiled with gcc 4.3.2 under gentoo.
oxyis 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 03:26 PM.


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