Mencoder can not initialize video driver in batch (Windows 7 ultimate)

0

is my first question on Stackoverflow. I have some AVI in a folder that I wish to convert to MP4. The thing is, when I call mencoder.exe it shows an error. The command line that I am using is the following:

mencoder.exe video.avi  -mc 0 -of rawvideo -ovc x264 -oac pcm -o video.264 -x264encopts deblock=1,1:bframes=5:frameref=5:threads=auto:b_pyramid:nofast_pskip:nopsnr:bitrate=268:pass=2:8x8dct:weight_b:mixed_refs:me=umh:bime:partitions=all:subq=6:brdo:trellis=1  -nosound  -vf harddup

And in error that I receive is the following:

MEncoder Sherpya-SVN-r24537-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 95, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xd7b1000
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  704x528  12bpp  29.970 fps  1157.3 kbps (141.3 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:704x528  fps:29.97  ftime:=0.0334
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 decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
VDec: vo config request - 704 x 528 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
x264 [error]: ratecontrol_init: can't open stats file
x264_encoder_open failed.
FATAL: Cannot initialize video driver.

Exiting...

The idea is to put it in a batch, because there are more than 100 videos that I want to convert. Any ideas?

I am using Windows 7 Ultimate, and the RealAnime6 uses the same command line to encode without problems.

    
asked by Carlos Castillo 16.07.2018 в 00:06
source

1 answer

0

The problem you have is that mencoder does not find the statistics file.

You are looking for it because you have specified the pass=2 option, which is used in 2-pass encodings.

This system first compresses the video by collecting statistics pass=1 . Then the video is discarded since the important thing is this file.

Then, with pass=2 , the statistics file created in the previous step is used to compress the final video (taking the best decisions according to the statistics file)

The basic example of how to code with this system would be this:

REM Primera pasada, pass=1 y -o nul para descartar el video procesado
mencoder "entrada.mkv" -ovc x264 -x264encopts bitrate=3000:pass=1 -oac copy -o nul

REM Segunda pasada, pass=2 y -o nombre del fichero que queremos
mencoder "entrada.mkv" -ovc x264 -x264encopts bitrate=3000:pass=2 -oac copy -o "salida.mkv"

If you do not want to complicate yourself, you can use Handbrake which allows you to do this in an easier way. You can also set a group of videos to encode so you do not have to go one by one.

I hope it serves you.

    
answered by 31.07.2018 в 11:57