Log in

View Full Version : xvid_encraw cannot open AVS; directshowsource.dll compatibility?


super_copy
5th January 2014, 21:37
Hi.

I am trying to re-encode a video file that has
MKV={H.264 720p, DTS, subtitles}
into a
AVI={Xvid 480p, AC3}

Problem is, xvid_encraw can't seem to understand the AVS input file. I'll walk through the steps from the beginning, hopefully somebody can spot something I'm doing wrong.

First, I created the AVS file using MeGUI's "AVS script creator". I just set it to resize the video frames from 1200*500 down to 640*272. The directshow source preview shows the resulting video perfectly. Here's my AVS file:

----Begin AVS file----
LoadPlugin("C:\MeGUI\tools\avs\directshowsource.dll")
DirectShowSource("c:\MyVideo.mkv", fps=23.976, audio=false, convertfps=true).AssumeFPS(24000,1001)
#deinterlace
#crop
LanczosResize(640,272) # Lanczos (Sharp)
#denoise
----End AVS file----

Actually I did try using the "One click encoder" that came with MeGUI and it always:
- completed generating a DQA file
- completed auto-deinterlacing
- failed at the first pass of Xvid encoding.
which is what led me to examine xvid_encraw's behavior.

Second, I tried running the command:
xvid_encraw.exe -i MyVideo.avs -type 2 -w 640 -h 272 -avi MyVideo.avi -pass1 MyVideo.pass1 -turbo -threads 4

And it always fails with message:
xvid [error]: Can't open avi/avs file MyVideo.avs

And yes, I quintuple-checked, the AVS file is there, readable, writable, etc. Same for the DLL file referenced inside the AVS.

I then tried several variations of the command, such as:

xvid_encraw.exe -type 2 -i MyVideo.avs -w 640 -h 272 -avi MyVideo.avi -pass1 MyVideo.pass1 -turbo -threads 4

xvid_encraw.exe -type 2 -w 640 -h 272 -avi MyVideo.avi -pass1 MyVideo.pass1 -turbo -threads 4 < MyVideo.avs

None of the above worked; I guess it must be something about my AVS file.

Could there be an incompatibility between the "directshowsource.dll" that came with MeGUI, and the frame-serving API expected by xvid_encraw?

super_copy
7th January 2014, 06:18
Forgot to state: nothing illegal being done here, these are my own source materials. I'm just trying to learn new tools.

Guest
7th January 2014, 06:54
Why do you want to make an XVID AVI? Why not re-encode to AVC and put it back into an MKV?

mihanja80
8th January 2014, 23:45
Try this program:
http://code.google.com/p/xvid4psp/downloads/list
http://www.youtube.com/watch?v=yMQTIn6eww0
http://sendfile.su/919673

http://img577.imageshack.us/img577/3923/i1jl.jpg


C:\Program Files (x86)\XviD4PSP 5\apps\xvid_encraw\ xvid_encraw.exe & xvidcore.dll
(Can put any version of 1.3 - 1.4 "xvid_encraw.exe+xvidcore.dll";
Do not change anything in the folder 1.2.2)