Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th October 2005, 19:32   #1  |  Link
TheCreamCrackerBoy
Registered User
 
Join Date: Jan 2004
Location: Brazil
Posts: 74
Mencoder - Cannot initialize video driver

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/M..._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.

Last edited by TheCreamCrackerBoy; 12th October 2005 at 23:42.
TheCreamCrackerBoy is offline   Reply With Quote
Old 12th October 2005, 20:58   #2  |  Link
dancho
Registered User
 
Join Date: Oct 2005
Posts: 106
@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
dancho is offline   Reply With Quote
Old 12th October 2005, 23:34   #3  |  Link
TheCreamCrackerBoy
Registered User
 
Join Date: Jan 2004
Location: Brazil
Posts: 74
Quote:
Originally Posted by dancho
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.
TheCreamCrackerBoy is offline   Reply With Quote
Old 13th October 2005, 06:00   #4  |  Link
dancho
Registered User
 
Join Date: Oct 2005
Posts: 106
@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

Last edited by dancho; 13th October 2005 at 06:05.
dancho is offline   Reply With Quote
Old 13th October 2005, 16:18   #5  |  Link
TheCreamCrackerBoy
Registered User
 
Join Date: Jan 2004
Location: Brazil
Posts: 74
Quote:
Originally Posted by dancho
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
TheCreamCrackerBoy is offline   Reply With Quote
Old 13th October 2005, 18:01   #6  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
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"
Pookie is offline   Reply With Quote
Old 13th October 2005, 18:13   #7  |  Link
dancho
Registered User
 
Join Date: Oct 2005
Posts: 106
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.<--
dancho is offline   Reply With Quote
Old 13th October 2005, 18:19   #8  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
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
Pookie is offline   Reply With Quote
Old 13th October 2005, 18:25   #9  |  Link
dancho
Registered User
 
Join Date: Oct 2005
Posts: 106
Thx.

I would use something like this in my settings:

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

Both fps options are used.
dancho is offline   Reply With Quote
Old 14th October 2005, 01:13   #10  |  Link
TheCreamCrackerBoy
Registered User
 
Join Date: Jan 2004
Location: Brazil
Posts: 74
Quote:
Originally Posted by Pookie
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.

Last edited by TheCreamCrackerBoy; 14th October 2005 at 01:16.
TheCreamCrackerBoy is offline   Reply With Quote
Old 15th October 2005, 11:06   #11  |  Link
Xeno86
Registered User
 
Join Date: Feb 2005
Location: Poland
Posts: 21
@TheCreamCrackerBoy
Try ChangeFPS(24000, 1001)
Xeno86 is offline   Reply With Quote
Old 26th October 2005, 11:17   #12  |  Link
TheCreamCrackerBoy
Registered User
 
Join Date: Jan 2004
Location: Brazil
Posts: 74
Quote:
Originally Posted by Xeno86
@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.
TheCreamCrackerBoy is offline   Reply With Quote
Old 1st April 2007, 23:39   #13  |  Link
mordorspfc
Registered User
 
Join Date: Aug 2006
Posts: 39
Very nice !

I was having this issue, and you guys solved perfectly. Worked like a charm. Thanks .
mordorspfc is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.