Hi,
I need a help with mencoder+vdpau video encoding?
Yesterday I spent some time to figure it out but without much success. A
search in Google did not produce anything usable to get any result.
OS: Debian 6.0 Squeeze
Kernel: Linux vega 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64 GNU/Linux
CPU: Pentium 4 630
Memory: DDR PC3200 3GB
Video Card: 01:00.0 VGA compatible controller: nVidia Corporation G73
[GeForce 7300 GT] (rev a1)
Software:
ii mencoder 2:1.0~rc3++svn20100804-0.2squeeze1 MPlayer's
Movie Encoder
ii mplayer 2:1.0~rc3++svn20100804-0.2squeeze1 The
Ultimate Movie Player For Linux
Drivers:
ii libgl1-nvidia-alternatives 195.36.31-6squeeze2
simplifies replacing MESA libGL
with GPU vendor libraries
ii libgl1-nvidia-glx 195.36.31-6squeeze2 NVIDIA binary
OpenGL libraries
ii libglx-nvidia-alternatives 195.36.31-6squeeze2
simplifies replacing Xorg module
libglx.so with GPU vendor library
ii nvidia-glx 195.36.31-6squeeze2 NVIDIA binary Xorg driver
ii nvidia-kernel-2.6.32-5-amd64
195.36.31+4+6squeeze2+2.6.32-45 NVIDIA binary kernel
module for Linux 2.6.32-5-amd64
ii nvidia-kernel-common 20100522+1 NVIDIA
binary kernel module
support files
ii nvidia-settings 195.36.24-1 Tool for
configuring the NVIDIA
graphics driver
ii nvidia-vdpau-driver 195.36.31-6squeeze2 NVIDIA vdpau
driver
ii nvidia-xconfig 195.36.31-1 X configuration
tool for non-free
NVIDIA drivers
$lsmod | grep nvidia
nvidia 10670538 28
i2c_core 15803 2 i2c_nforce2,nvidia
I can run without any problem "glxgear" and "tux racer" what indicates
that driver works properly.
When I run "mplayer" with "-vc vdpau" I can see that "mplayer" attempts
to decode but I do not get a video in a window and I get an error
$ mplayer -vc vdpau movie.mp4
MPlayer SVN-r31918 (C) 2000-2010 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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 movie.mp4.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 450x360 24bpp 25.000 fps 493.8 kbps (60.3 kbyte/s)
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
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] Can't open /dev/fb0: No such file or directory.
s3fb: can't open /dev/fb0: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Forced video codec: vdpau
Cannot find codec matching selected -vo and video format 0x34363248.
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 72.0 kbit/5.10% (ratio: 9000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
Similar situation with an attempt to reencode video
$mencoder movie.mp4 -vf crop=448:352:2:4 -vc ffh264vdpau -ovc x264
-x264encopts tune=animation:trellis=1:threads=auto:pass=2 -oac mp3lame
-lameopts vbr=3 -o movie.avi
MPlayer SVN-r31918 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0xa4696d6
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 450x360 24bpp 25.000 fps 493.8 kbps (60.3 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:450x360 fps:25.000 ftime:=0.0400
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 72.0 kbit/5.10% (ratio: 9000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=448 h=352 x=2 y=4]
Crop: 448 x 352, 2 ; 4
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
MP3 audio selected.
[VD_FFMPEG] Trying pixfmt=0.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[h264_vdpau @ 0xd164c0]decoding to PIX_FMT_NONE is not supported.
[h264_vdpau @ 0xd164c0]decode_slice_header error
[h264_vdpau @ 0xd164c0]no frame!
Error while decoding frame!
Exiting...
I can play a movie in "mplayer" and encode video with "mencoder" without
"vdpau".
What am I missing? Where should I look for a solution?
Thanks,
Andy
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53f40c2...@gmail.com