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-4 ASP

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th January 2014, 21:37   #1  |  Link
super_copy
Registered User
 
Join Date: Sep 2013
Posts: 2
xvid_encraw cannot open AVS; directshowsource.dll compatibility?

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 is offline   Reply With Quote
Old 7th January 2014, 06:18   #2  |  Link
super_copy
Registered User
 
Join Date: Sep 2013
Posts: 2
xvid_encraw cannot open AVS; directshowsource.dll compatibility?

Forgot to state: nothing illegal being done here, these are my own source materials. I'm just trying to learn new tools.
super_copy is offline   Reply With Quote
Old 7th January 2014, 06:54   #3  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Why do you want to make an XVID AVI? Why not re-encode to AVC and put it back into an MKV?
Guest is offline   Reply With Quote
Old 8th January 2014, 23:45   #4  |  Link
mihanja80
Registered User
 
mihanja80's Avatar
 
Join Date: Aug 2009
Location: Ukraine, Kovel
Posts: 7
Try this program:
http://code.google.com/p/xvid4psp/downloads/list
http://www.youtube.com/watch?v=yMQTIn6eww0
http://sendfile.su/919673




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)
__________________
I use translate.google.com
mihanja80 is offline   Reply With Quote
Reply

Tags
h.264, megui, x264, xvid, xvid_encraw

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 23:20.


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