Log in

View Full Version : Strange problem


cogman
28th January 2008, 18:44
So, I've come back again, this time I actually have my computer here at college, so now I can get back to you guys much quicker.

So, I just encoded a bit of mash and I am getting some bizzare problems. here (http://s253.photobucket.com/albums/hh50/cogman10/?action=view&current=test.flv) is an example. What is this? here is the command line I used to encode it. (these are by no means the final settings, but they are very close too them)

wine avs2yuv.exe mash.avs -o - | x264 --progress --aq-sensitivity 0 --aq-strength 1.0 --me umh --merange 16 --partitions all --subme 6 --trellis 1 --b-rdo --mixed-refs --crf 30 -r 6 -b 16 --b-pyramid --weightb --bime --direct auto - -o test.mkv 720x480 --fps 29.97002997 --threads=0

and, of course, the avs script that went along with it.

DGDecode_mpeg2source("VTS_02_PGC_01_1.d2v")
Trim(1000, 1500)

again, im stumpted, up till now everything worked fairly well, now I don't know what has gone wrong. (Im using ubuntu gusty gibbions. x64 and x264 rev735)

talen9
28th January 2008, 18:56
x264 decides on the typology of input file basing on the extension of the input file.

From the inline help:
Infile can be raw YUV 4:2:0 (in which case resolution is required),
or YUV4MPEG 4:2:0 (*.y4m),
or AVI or Avisynth if compiled with AVIS support (yes).

(this is compiled on windows, but the way it works is exactly the same).

To make it realize that the input is in YUV4MPEG (the kind of output that avs2yuv is giving) you have to create a FIFO called "<anything>.y4m" and use it respectively as OUTPUT for avs2yuv and as INPUT for x264, like this:

mkfifo /tmp/stream.y4m
wine avs2yuv.exe mash.avs -o /tmp/stream.y4m


and, in another terminal:
x264 <all options until the input one> /tmp/stream.y4m -o test.mkv -threads=0

Please notice that you won't need to supply any info about resolution or framerate, 'cause they're already provided when the output is in yuv4mpeg.


Hope it works :P

cogman
28th January 2008, 19:12
Worked like a charm, Thanks! (wonder why I never ran into this problem before, must have done it this way and just forgotten)