You are not logged in.

#1 2010-08-16 22:26:13

markuman
Member
Registered: 2005-02-18
Posts: 49

Vdpau deinterlaced playback with mplayer

Hi,
when i try playing an hd video using

mplayer -vo vdpau -vc ffh264vdpau 00007.MTS

everything is fine but interlaced.
when i try playing with deinterlace option

mplayer -vo vdpau -vc ffh264vdpau:deint=4 00007.MTS

i just got sound. mplayer said:

$ mplayer -vo vdpau -vc ffh264vdpau:deint=4 00007.MTS
MPlayer SVN-r31964-4.5.1 (C) 2000-2010 MPlayer Team
159 audio & 341 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 00007.MTS.
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) SUB Teletext(pid=4608)  PROGRAM N. 1
FPS seems to be: 25.000000
==========================================================================
Forced video codec: ffh264vdpau:deint=4
Cannot find codec matching selected -vo and video format 0x10000005.
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

and here is my vdpauinfo output

display: :0.0   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  256.44  Thu Jul 29 01:59:12 PDT 2010

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 
422     4096  4096  UYVY YUYV 

Decoder capabilities:

name               level macbs width height
-------------------------------------------
MPEG1                 0  8192  2048  2048
MPEG2_SIMPLE          3  8192  2048  2048
MPEG2_MAIN            3  8192  2048  2048
H264_MAIN            41  8190  2032  2048
H264_HIGH            41  8190  2032  2048
VC1_SIMPLE            1  8190  2048  2048
VC1_MAIN              2  8190  2048  2048
VC1_ADVANCED          4  8190  2048  2048

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  Y8U8V8A8 V8U8Y8A8 
R10G10B10A2       8192  8192    y  Y8U8V8A8 V8U8Y8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     y
INVERSE_TELECINE                 y
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y         1     4096
VIDEO_SURFACE_HEIGHT             y         1     4096
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y  

it said deinterlace is available, or am i wrong? someone has an idea?

Offline

#2 2010-08-16 22:34:57

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Vdpau deinterlaced playback with mplayer

I think what you want is

-vo vdpau:deint=4

deint is a option for the video out (vdpau) not for the codec.

Offline

#3 2010-08-16 22:46:04

markuman
Member
Registered: 2005-02-18
Posts: 49

Re: Vdpau deinterlaced playback with mplayer

kazuo wrote:

I think what you want is

-vo vdpau:deint=4

deint is a option for the video out (vdpau) not for the codec.

ah damn, you're right. thank you.

but just

mplayer -vo vdpau:deint=1 -vc ffh264vdpau 00007.MTS

works fast enough. all other deint options >1 makes the picute to slow.

Offline

#4 2010-08-17 01:20:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Vdpau deinterlaced playback with mplayer

mplayer man page wrote:

deint=<0-4>
                      Select the deinterlacer (default: 0).  All modes > 0 respect -field-dominance.
                         0    no deinterlacing
                         1    Show only first field, similar to -vf field.
                         2    Bob deinterlacing, similar to -vf tfields=1.
                         3    motion  adaptive  temporal  deinterlacing May lead to A/V desync with slow video hardware and/or high resolu‐
                              tion.  This is the default if "D" is used to enable deinterlacing.
                         4    motion adaptive temporal deinterlacing with edge-guided spatial interpolation Needs fast video hardware.

It seems that your card may not be fast enough to handle such an option.

Offline

Board footer

Powered by FluxBB