View Full Version : BiG Headache with xvid_encraw.exe !
xbox360
20th May 2008, 04:26
My Batch Script is like this:
START /w D:\xvid\AllEncoders\xvid_encraw.exe -i xvid.avs -avi output -nochromame -pass1 -size 614512 -max_bframes 2 -bvhq -bquant_offset 200 -bquant_ratio 100 -hvs_aq " quant lc_lum gl_lum 2 / - theta 255 gl_lum - 3 * 4 / lc_lum - theta + 2 / - " -threads 2 -max_key_interval 250 -progress 10
START /w D:\xvid\AllEncoders\xvid_encraw.exe -i xvid.avs -avi output -nochromame -pass2 -size 614512 -max_bframes 2 -bvhq -bquant_offset 200 -bquant_ratio 100 -hvs_aq " quant lc_lum gl_lum 2 / - theta 255 gl_lum - 3 * 4 / lc_lum - theta + 2 / - " -threads 2 -max_key_interval 250 -progress 10
START /w D:\xvid\AllEncoders\aften.exe -acmod 2 -b 192 aud.wav out.ac3
but nothing happens, the xvid_encraw.exe just exits ! help how to encode to raw avi for use with AVI-MUX GUI ?
I have used search & read thru all the post's but to no avail, I have no clue what I am doing wrong.
kypec
20th May 2008, 12:57
Please capture all error messages you get when trying to run your batch script and post them here.
I guess the problem has something to do with a path. Where is the script file xvid.avs located?
Make sure it is placed in the same directory as xvid_encraw.exe or in the working directory when launching the batch.
Just for your reference and better understanding here come my scripts and batch commands I use for encoding:
My working directory is all the time set to E:\footage\Frasier\S1D1 where is also located this feed.avs scriptLoad_stdcall_Plugin("T:\Plugins\yadif.dll")
LoadPlugin("T:\Plugins\colormatrix.dll")
LoadPlugin("T:\DGMPGDec\DGDecode.dll")
MPEG2Source("VTS_06_PGC_01_1.d2v",info=3)
#Trim(0,31924) #=21:17 total length
Trim(0,32649) #=21:46 total length
#Trim(0,32674) #=21:47 total length
Yadif()
ColorMatrix(mode="Rec.709->Rec.601",hints=true)
Spline36Resize(512,384)
as well as source VOB files.
First pass encode is invoked with this encode1_860kbps_VAQ.cmd commandT:\xvid\xvid_encraw.exe -i feed.avs -avi preliminary.avi -pass1 xvid.stats -bitrate 860 -par 1:1 -max_key_interval 250 -vhqmode 4 -bvhq -qmatrix "T:\xvid\CQM\eqm_v3hr.xcm" -lumimasking -progress 25 -stats >pass1.log
and once it has finished I invoke second pass with encode2_860kbps_VAQ.cmd commandT:\xvid\xvid_encraw.exe -i feed.avs -avi target.avi -pass2 xvid.stats -bitrate 860 -par 1:1 -max_key_interval 250 -vhqmode 4 -bvhq -qmatrix "T:\xvid\CQM\eqm_v3hr.xcm" -lumimasking -progress 25 -stats >pass2.log
xbox360
20th May 2008, 14:37
My xvid.avs script:
Load_stdcall_Plugin("c:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
LoadPlugin("c:\Program Files (x86)\AviSynth 2.5\plugins\ColorMatrix.dll")
LoadPlugin("c:\Program Files (x86)\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("D:\Encoding Stuff\4 munites - madonna feat justin timberlake.d2v",cpu=4)
AssumeTFF()
Yadif()
ColorMatrix(mode="Rec.709->Rec.601")
Letterbox(14,14,0,0,0)
First pass cmd:
D:\xvid\AllEncoders\xvid_encraw.exe -i xvid.avs -avi preliminary.avi -pass1 xvid.stats -bitrate 1500 -par 1:1 -max_key_interval 250 -vhqmode 4 -bvhq -qmatrix "D:\xvid\AllEncoders\eqm_v3hr.xcm" -lumimasking -progress 25 -stats >pass1.log
Second pass cmd:
D:\xvid\AllEncoders\xvid_encraw.exe -i xvid.avs -avi target.avi -pass2 xvid.stats -bitrate 1500 -par 1:1 -max_key_interval 250 -vhqmode 4 -bvhq -qmatrix "D:\xvid\AllEncoders\eqm_v3hr.xcm" -lumimasking -progress 25 -stats >pass2.log
It's still not working ! also there is no error messages, instead it show the same stuff as xvid_encraw.exe -h would.
I hope you all can help me solve this chronic problem ASAP, I need to use it for my upcoming project which is next week.
xbox360
21st May 2008, 00:59
This version of xvid_encraw.exe worked flawlessly:
http://forum.mediacoderhq.com/viewtopic.php?p=6578&sid=ec823340d2ac72a210714de0c57709d7
alfixdvd
21st May 2008, 07:30
Try adding to the command line of xvid_encraw: -type 2, and put full path with quotes to avs, stas and avi files, ie : "d:\directory\target.avi"
xbox360
21st May 2008, 08:19
I got it working, mod you can close this thread.
alfixdvd
21st May 2008, 08:51
Please, can you explain to us as you have done it ?
xbox360
21st May 2008, 10:26
This version of xvid_encraw.exe worked flawlessly:
http://forum.mediacoderhq.com/viewtopic.php?p=6578&sid=ec823340d2ac72a210714de0c57709d7
See my quote.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.