Log in

View Full Version : Issues about colorspace


Bleck
20th December 2012, 13:13
Im encoding a yuv .avi using the main x264 encoder. The problem is, the lavf demuxer crash without reason, so Im forced to use the avs one.
This is the log:

avs [info]: trying AVISource... failed
avs [info]: trying FFmpegSource2... not found
avs [info]: trying DSS2... not found
avs [info]: trying DirectShowSource... succeeded
avs [info]: 1280x720p 0:0 @ 25/1 fps (cfr)
resize [warning]: converting from bgra to yuv420p
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 5.0

I dont understand why it detect the file as 32 bits rgb, when its packed yuv.
This is the command line im using:

x264_8.exe --demuxer avs --output-csp i420 --threads 0 --crf 25 --profile high --preset veryslow -o video.264 input.avi

Do you have any idea about this weird behavior?

sneaker_ger
20th December 2012, 14:44
I'd say your DirectShow filter outputs BGRA.

Maybe you could upload a sample for others to reproduce the crash?

Bleck
20th December 2012, 15:07
http://7054977.netau.net/files/input.zip

Crash on 8-bit x64 encoder from x264.nl on ffms and lavf.

About the avs problem, how can I set ffdshow to flow the file as original format? Cant see the option.

sneaker_ger
20th December 2012, 15:25
I can reproduce the crash.

Use ffmpeg to pipe as a workaround:
ffmpeg -i input.avi -an -f yuv4mpegpipe -pix_fmt yuv420p - | x264 - --demuxer y4m --preset veryslow --crf 25 -o video.264

Bleck
20th December 2012, 15:29
It works. Thanks.