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?
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?