View Full Version : Need help with a script
Devilman1
4th August 2008, 21:54
Where I work we have quad core processor that don't work at night so I tried to use one of them to encode my dvd rip with x264, but nothing happens.
There I could not install avisynth so I use avs2yuv but maybe I did something wrong, can someone check my script?
Thanks
Here is my script:
avs2yuv video_ts.avs -o NUL | x264 --level 3.1 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct -B 1270 -p 1 --me umh --merange 12 --b-pyramid -v --progress --threads 4 -o dvd2.mkv" NUL [720x576]
fbgd
4th August 2008, 22:56
avs2yuv needs avisynth installed in order to work.
Devilman1
5th August 2008, 06:31
it just need that some dll are in the same directory and so I did.
The system just star without error but produced nothing except a 0 byte .mkv file and log file with only the options in it.
squid_80
5th August 2008, 14:14
I think the "-o NUL" option for avs2yuv is telling it to output nothing. Try "-o -" instead to tell it to write to stdout (which will be piped to x264).
Devilman1
6th August 2008, 22:03
I'll give it a try and let you know.
Devilman1
27th September 2008, 00:28
Hi I finally had time to try your suggestion and it works, but now the problem is another one. It starts but stops immediately.
Here is my script
avs2yuv VTS_03_1.avs -o - | x264 --level 3.1 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct -B 1270 -p 1 --me umh --merange 12 --b-pyramid -v --progress -o F:\dvd2.mkv NUL 720x576
and this are the error message
x264 [info]: using cpu capabilities: MMX2 SSE2 Cache64
x264 [info]: final ratefactor: 28.24
VTS_03_1.avs: 720x576, 25 fps, 155995 frames
Output error: wrote only 589675 of 622080 bytes
The system is a dual processor dual core Xeon.
Could be a problem in the script?
Thanks
kemuri-_9
27th September 2008, 03:00
when piping to x264 via avs2yuv, you need the -raw parameter as well to not have it send the y4m headers since it can't be utilized when piping,
forgetting it will cause it to not encode with the error you posted
so it'll be
avs2yuv -raw VTS_03_1.avs -o - | ....
Devilman1
27th September 2008, 21:28
Thanks
Devilman1
28th September 2008, 16:24
Even with the -raw parameter I have the same error message.
J_Darnley
28th September 2008, 16:30
What revision of x264 are you using? This is very similar to an old problem that x264 had in which it would open stdin in ASCII mode and then cause it to stop reading when it reached an EOF char. Since you appear to be running x264 in Windows (or wine) why not use the Avisynth script as x264's input?
kemuri-_9
28th September 2008, 16:35
ah i missed your other error:
-o F:\dvd2.mkv NUL 720x576
since you're using a first pass, this would be
-o NUL - 720x576
the second pass would be
-o F:\dvd2.mkv - 720x576
for this part
the input 'file' of - tells x264 to read from the stdin which avs2yuv is sending to it.
Devilman1
28th September 2008, 20:22
kemuri-_9 you was right with your correction now it works.
Thanks
P.S.
I use the latest multithread patched version, but if I set 4 threads the system hangs with no selection only one core is used.
The system I can use is a dual XEON dual core.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.