[MEncoder-users] Error "FATAL: Cannot initialize video driver" when trying to encode to h.264

Jan Ott jan.ott at gmx.de
Sat Jan 16 21:44:57 CET 2010


Kubuntu 9.10, KDE 4.3.4, MEncoder SVN-r29643-Ubuntu-RVM

Hi everyone,
I am trying do rip a DVD and encode to h.264/ac3/mkv using a 3-pass
skript named "x264-enc-3p.sh" (see below) I found in a russian forum:

<http://torrents.ru/forum/viewtopic.php?t=1571623#e4III>

I tried to start the script using the command

x264-enc-3p.sh "dvd://1 -dvd-device dvd -oac copy -channels 2" 1600
"crop=720:520:0:30,"

Unfortunately encoding does not start, most likely because of error
"FATAL: Cannot initialize video driver" (Complete command line output
below).

Who can help?

Jan

******************************
Script "x264-enc-3p.sh"
******************************
#!/bin/bash
# x264-enc-3p.sh
# Please note that the command between "e="mencoder"
# and "=$bitrate" has to be in one line.
source="$1"
bitrate="$2"
filters="$3"
name="$(date +%F-%T)".avi
log="$name".log
# 21
e="mencoder "$source" -vf pullup,softskip,"$filters"harddup -ovc x264
-x264encopts
threads=auto:psnr:ssim:b_adapt=2:deblock:cabac:chroma_me:subq=9:partitions=all:8x8dct:me=umh:nofast_pskip:nodct_decimate:me_range=32:trellis=2:frameref=16:bframes=16:b_pyramid:weight_b:mixed_refs:direct_pred=auto:keyint=750:keyint_min=25:direct_8x8=-1:aq_mode=1:aq_strength=1.0:psy_rd=1.0,0.0:bitrate=$bitrate"
(time (\
time $e:pass=1 -o /dev/null && \
time $e:pass=3 -o /dev/null && \
time $e:pass=3 -o "$name" && \
echo "Encoding time:") &> "$log";\
rm -v divx2pass.log*\
) &
tail -f "$log"

******************************
Command line output
******************************
xxx at xxxxxxxx:~$ x264-enc-3p.sh "dvd://1 -dvd-device /home/xxx/dvd -oac
copy -channels 2" 1600 "crop=720:520:0:30,"
MEncoder SVN-r29643-Ubuntu-RVM (C) 2000-2009 MPlayer Team
Option x264encopts: Unknown suboption direct_8x8
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
There are 2 titles on this DVD.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: en aid: 128.
number of audio channels on disk: 1.
number of subtitles on disk: 0
success: format: 2  data: 0x0 - 0xa186000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
==========================================================================
rm: Entfernen von „divx2pass.log*“ nicht möglich: No such file or directory
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [crop w=720 h=520 x=0 y=30]
Crop: 720 x 520, 0 ; 30
Opening video filter: [softskip]
Opening video filter: [pullup]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
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.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=48000
sample-1)
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
FATAL: Cannot initialize video driver.
[mpeg2video @ 0xc2f7c0]ac-tex damaged at 19 2
[mpeg2video @ 0xc2f7c0]Warning MVs not available
[mpeg2video @ 0xc2f7c0]concealing 1530 DC, 1530 AC, 1530 MV errors

Exiting...

real    0m1.132s
user    0m0.010s
sys     0m0.020s

real    0m1.132s
user    0m0.010s
sys     0m0.020s

************************************



More information about the MEncoder-users mailing list