View Full Version : use x264 in command line (without MEGUI or others frontends)
daimroc
12th November 2008, 16:57
Hello:
I would like to make probes with x264 in command line without using MEGUI or other frontend.
But I have a problem, I put at the end of the command "video1.avs", so the input file is an avs script. I though that I can use directly the avs script, but I get two errors:
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'video1.avs'
How can I solve this problem?
Thanks.
Daimroc.
neuron2
12th November 2008, 17:15
Try ConvertToYV12() at the end of your script. If that doesn't work, post your exact script and x264 command line.
daimroc
12th November 2008, 17:26
Well, using ConvertToYV12() in the avs script the problem is solved.
Thank you very much.
Daimroc.
laserfan
12th November 2008, 18:00
If I may ask: is there an easy way to ID the input files colorspace i.e. that it Needs the ConvertToYV(12).
Can one put ConvertToYV(12) in *every* script or does this risk contamination or at least wasted CPU cycles?
Dark Shikari
12th November 2008, 18:03
Can one put ConvertToYV(12) in *every* script or does this risk contamination or at least wasted CPU cycles?No, its a nop if the source is YV12.
squid_80
12th November 2008, 18:03
Just put it at the end anyway, if it's not needed it doesn't chew up any time.
Edit: Damn it.
laserfan
12th November 2008, 21:29
Thanks for clarifying!!! :)
foxyshadis
14th November 2008, 07:07
Are you sure it was solved? Unless you used ImageSource, QTSource,or BlankClip to import the source, "unsupported input format (DIB )" always means an avisynth error. Unless you just fixed the real problem and added ConvertToYV12 at the same time.
Snowknight26
14th November 2008, 07:58
Not always. Say you have a graph of source -> ffdshow, with ffdshow set to output strictly RGB32. If you use DirecShowSource() in conjunction with that graph, you will get that "unsupported input format (DIB )" error until you add ConvertToYV12().
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.