Log in

View Full Version : Mencoder - Cannot initialize video driver


TheCreamCrackerBoy
12th October 2005, 19:32
Hello to all,

I've downloaded mencoder from http://oss.netfarm.it/mplayer-win32.php .

When I try to encode an avs script, it returns me the following information:

[mpeg2video @ 00A2F938]MPEG1/2 does not support 2997/125 fps
Could not open codec.
FATAL: Cannot initialize video driver.
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x32315659.

At that url above, I've downloaded [Needed libs - Common] files and [Needed libs - Mencoder] files and I extracted them to Mencoder's folder, at Mencoder folder I got:

- mencoder.exe, mplayer.exe, script.avs
- bin, codecs, include, lib, man, mplayer, pkgconfig & share sub-folders.

I also tried to encode with MCBatch, downloaded at http://rapidshare.de/files/6181192/MCbatch_0.0.2.7z.html, with the same results.

I also downloaded Windows essential codecs at http://www4.mplayerhq.hu/homepage/design7/codecs.html and tried all folders structures according to readme.txt but the results were the same.

I am using AviSynth 2.5.6 RC2 under W2k. The original file from the script.avs - AviSource("C:\Captured.Avi") - was captured under XviD codec 1.1.0 beta2 version. I've tried with 23.976 and 29.970 fps avi files.

I am sure I am missing something, I just don't know WHAT... I couldn't find these one at the forums... please someone help me...

Thank you very much,

TheCreamCrackerBoy.

dancho
12th October 2005, 20:58
@TheCreamCrackerBoy

try to open your avs file with some media player like
bsplayer or media player classic,

-->VDecoder init failed :(

this suggest some video decoder issue

TheCreamCrackerBoy
12th October 2005, 23:34
try to open your avs file with some media player like
bsplayer or media player classic,

MPC and VirtualDubMod opens the AVS script fine.

Doesn't seem to be an AVS problem.

Tks,

TheCreamCrackerBoy.

dancho
13th October 2005, 06:00
@TheCreamCrackerBoy
Download mplayer from this addres , it's mencoder compiles by Celtic Druid and
I used mencoder.exe from there for testing with MCbatch
without any problems...
Addres:
http://www.aziendeassociate.it/cd.asp?dir=/mplayer

TheCreamCrackerBoy
13th October 2005, 16:18
Download mplayer from this addres , it's mencoder compiles by Celtic Druid and I used mencoder.exe from there for testing with MCbatch
without any problems...
Addres:
http://www.aziendeassociate.it/cd.asp?dir=/mplayer
I've downloaded it and I got the same problem... :-\

Got any other suggestions?

Thanks!

TheCreamCrackerBoy

Pookie
13th October 2005, 18:01
Apologies for putting this in the Mpeg section, but I don't have time to modify the output for mpeg2. Still, this batch file works with Mencoder from Celtic_Druid - you can try it on your script just to determine if your syntax is correct.

mencoder.exe -vf pp=dr -force-avi-aspect 1.8 -ovc xvid -xvidencopts vhq=1:bitrate=2200:nopacked:nogmc:noqpel:nocartoon:bvhq=0:max_bframes=2:quant_type=mpeg -nosound -o "D:\4-S1-Xvid.avi" "D:\4.avs"

dancho
13th October 2005, 18:13
Maybe I'm wrong but I think that mencoder recognize this framerates:

< 24000/1001 | 24 | 25 | 30000/1001 | 30 | 50 | 60000/1001 | 60 >

and I think there is the problem because he got this message

-->[mpeg2video @ 00A2F938]MPEG1/2 does not support 2997/125 fps
Could not open codec.
FATAL: Cannot initialize video driver.
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x32315659.<--

Pookie
13th October 2005, 18:19
Nice catch, dancho. If that's the case, then put -ofps 24000/1001 on the line for 23.976 or -ofps 30000/1001 for 29.97

dancho
13th October 2005, 18:25
Thx.

I would use something like this in my settings:

mencoder.exe ******** -fps 30000/1001 -ofps 30000/1001 **********

Both fps options are used.

TheCreamCrackerBoy
14th October 2005, 01:13
put -ofps 24000/1001 on the line for 23.976 or -ofps 30000/1001 for 29.97

That command (-ofps) solved the problem! :-) :-) :-) Thank you very much!!

I've tried adding this command line in my AVS script:

ChangeFPS(23.976)

But it doesn't work. Could it be an Mencoder bug...? The same script opens ok at VirtualDub, VirtualDubMod and Media Player Classic.

Anyway, I'll add -ofps to all my Batches...

Thank you, Dancho and Pookie, again.

[]s

TheCreamCrackerBoy.

Xeno86
15th October 2005, 11:06
@TheCreamCrackerBoy
Try ChangeFPS(24000, 1001)

TheCreamCrackerBoy
26th October 2005, 11:17
@TheCreamCrackerBoy
Try ChangeFPS(24000, 1001)

This command does the trick, Xeno86. Thank you very much. The command ChangeFPS(30000,1001) for 29.970 sources also works.

[]s

TheCreamCrackerBoy.

mordorspfc
1st April 2007, 23:39
Very nice !

I was having this issue, and you guys solved perfectly. Worked like a charm. Thanks .