Log in

View Full Version : Rawyuv input requires a resolution


mdw
7th February 2010, 10:55
My encoding setup with x264/AviSynth/DGAVCDecode at al. works just fine. Today I wanted to encode a DVD, so I create DGIndex project and an AVS script:


LoadPlugin("c:\program files (x86)\avisynth 2.5\plugins\DGDecode.dll")

d2vfile = "dvd.d2v"
video = MPEG2Source(d2vfile)
return video


This loads just fine in VirtualDub and "File Information" shows the proper resolution and colorspace are right (720x576, YV12).

But when I try to encode this with x264 (x264 0.68.1183M) I get this:


D:\Video\Movies\dvd\VIDEO_TS>"C:\Program File
s (x86)\megui\tools\x264\x264.exe" --preset slow --profile high --level 4.1 --cr
f 18 --thread-input --deblock 0:0 --bframes 4 --b-adapt 2 --b-pyramid normal --s
cenecut 40 --ref 6 --aq-mode 1 --aq-strength 1.0 --merange 16 --me umh --subme 9
--trellis 2 --psy-rd 1.0:0 --no-dct-decimate --output dvd.mp4 dvd.avs
x264 [info]: 0x0 @ 25.00 fps
x264 [error]: Rawyuv input requires a resolution.


I have tried adding ConvertToYV12() to my AVS script, I have tried specifying input resolution in x264 cmdline, but nothing helps. My other encodes work properly (mostly videos from my 5DmkII), what is wrong here? I have 64-bit Windows 7, but all the video encoding tools are 32-bit.

Thanks for any hints, I'm out of ideas.

--
mdw

jmartinr
7th February 2010, 11:00
Did you try it like this?

video=ConvertToYV12(video)

mdw
7th February 2010, 11:23
Did you try it like this?

video=ConvertToYV12(video)

Yes -- I mention this in my post.

--
mdw

J_Darnley
7th February 2010, 11:31
x264 (x264 0.68.1183M)
Wow, old!

D:\Video\Movies\dvd\VIDEO_TS>"C:\Program File
s (x86)\megui\tools\x264\x264.exe" --preset slow --profile high --level 4.1 --cr
f 18 --thread-input --deblock 0:0 --bframes 4 --b-adapt 2 --b-pyramid normal --s
cenecut 40 --ref 6 --aq-mode 1 --aq-strength 1.0 --merange 16 --me umh --subme 9
--trellis 2 --psy-rd 1.0:0 --no-dct-decimate --output dvd.mp4 dvd.avs
x264 [info]: 0x0 @ 25.00 fps
x264 [error]: Rawyuv input requires a resolution.

That error implies there is some mistake in the command line you pasted but I cannot see it. In fact, when I copy that, and remove the linebreaks, it works just fine.

mdw
7th February 2010, 12:00
OK, the problem is in --b-pyramid normal setting. When I remove it, it works fine. I would get newer build, but x264.nl is down at the moment.

--
mdw

J_Darnley
7th February 2010, 12:09
Ah yes, b-pyramid didn't have an argument back then.

Mirror mirror on the wall...
http://mirror01.x264.nl/
http://mirror02.x264.nl/
http://mirror03.x264.nl/
http://mirror04.x264.nl/
http://mirror05.x264.nl/

mdw
7th February 2010, 12:39
Thanks for pointers to the mirrors, J_Darnley.

--
mdw