Log in

View Full Version : x264 error: Rawyuv input requires a resolution


Bitowzky
26th February 2008, 20:07
When i'm trying to encode something in x264(x264_x86_r736_aq_0.48_new_patches_techouse)(and every other i have tried) i get this x264 [error]: Rawyuv input requires a resolution. Avs file plays without any issues in MPC, so it's good. :\ Any ideas what could cause it?

cogman
26th February 2008, 20:59
What kind of environment are you encoding in, Linux? If that is the case then I had the same problem just a while back see here for problem and solution (http://forum.doom9.org/showthread.php?t=134222). if not, it is at least simular. If you are using windows then I suggest you use a 3rd party Gui like Megui.

J_Darnley
26th February 2008, 21:34
I doubt he's using Linux if he can play the Avisynth script fine in Media Player Classic. Two assumptions here: avs = AviSynth script file extension, MPC = Media Player Classic. I would also expect that he would know that you can only access AviSynth from wine if you are encoding on Linux.

Can you post your command you are using? With a quick guess I might say that your copy of x264 was compiled with AviSynth input but since you have tried many different builds it seems unlikely.

Bitowzky
26th February 2008, 21:36
Naah i want to use command line, it gives you more commands to use. ;P Megui is for n00bs.(no offence) :)

Dark Shikari
26th February 2008, 21:47
Would it happen that you're using 64-bit x264 and 32-bit Avisynth, or vice versa?

talen9
26th February 2008, 21:56
If you're piping the input stream, then your problem is similar to the one cogman's referring to, I think.

From "x264.exe --help":
C:\Programmi\megui\tools\x264>x264.exe --help
x264 core:58 svn-736M
Syntax: x264 [options] -o outfile infile [widthxheight]

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).

So, if you're passing x264 a raw YUV 4:2:0 stream as the input file, then that's right, you need to pass the resolution too.

cogman
27th February 2008, 01:39
Exactly, the reason I posted the problem I had was because yours sounds a heck of a lot like it. It might work to just put the resolution in (just 720:240 or something like that) but you also might see the problem I saw when I did that. Give it a try, but be prepared to have to use a third party program like avs2yuv to convert it into a yuv first and then process the yuv. (as I don't believe windows can do the same sort of fake file thing that linux can do).

Dark Shikari
27th February 2008, 01:41
(as I don't believe windows can do the same sort of fake file thing that linux can do).I think Cygwin has FIFO support.

cogman
27th February 2008, 02:26
I think Cygwin has FIFO support.

Meh, IMHO by the time you get cygwin running well, you might as well just install a Linux Distribution (duel boot). After all, Real console users use linux :P.

Really though, why the aversion towards Megui? It has all the options you will use and is much easier then the console to use (you can load up all your console options into anyways)

cacepi
27th February 2008, 05:13
After all, Real console users use linuxMy OS X box and I beg to differ. :)

@Bitowzky: try:

1) Naming the file something like 'filename_widthXheight.yuv'; x264 can read resolution from a filename, or

2) Simply pass YUV4MPEG data to x264, which will include the needed resolution in the header.