Log in

View Full Version : x264 corrupts file


yuri69
2nd March 2011, 19:32
Hi,
I'm new in the x264 world. I tried to encode simple YUV files in AVI. For example converted classic foreman_cif.yuv or bridge-close_cif.yuv.

The problem is that first ~70 frames are corrupted.

The settings were very basic:
x264.exe --crf 24 --fps 25 -o out.mkv foreman_cif.avi

Used x264 version was binary: revision1913 2011-02-19 03:33:57.

Also with build compiled in 2010 I get corrupted (full green) only the 1st frame. When I try to use some 2009 build I get uncorrupted video. It's really strange :)

INPUT in avi (http://www.mediafire.com/?mnwwc7j8lsylise)

OUPUT in mkv (http://www.mediafire.com/?nrau4pdtfkrm6tc)

Thanks for help.

Sharktooth
2nd March 2011, 19:37
x264 binary compiled by who?

LoRd_MuldeR
2nd March 2011, 19:37
First you say you are using 'foreman_cif.yuv' as your source, but in your command-line you suddenly have a 'foreman_cif.avi' file.

How and why did you create an AVI file from the "raw" YUV file? x264 reads "raw" YUV files just fine.

Also: Did you try to feed your source into x264 via Avisynth? This way you could check your AVS script first (e.g. in VirtualDub) in order to make sure that the source is read correctly...

yuri69
2nd March 2011, 19:57
The binary is from x264.nl.

Well, I converted yuv->avi in the VirtualDub via AviSynth RawSource plugin.

When I feeded x264 directly with the raw yuv file it worked flawlessly :)

I missed this direct feeding possibility, I'm sorry.
Thanks a lot for your help!