SiliconBear
29th March 2011, 02:41
Dear Experts,
Does x264 support 16-bit yuv?
I have a set of 9-bit images, and I create an input.yuv file using ImageMagick:
convert -size 640x480 -depth 16 image16_*.ppm -colorspace YUV -size 640x480 -depth 16 -sampling-factor 4:2:0 input.yuv
Then, I encode the input.yuv using a 9-bit x264 binary:
x264_9 -v --psnr --ssim --input-depth 16 --preset fast --tune zerolatency --vbv-bufsize 2000 --vbv-maxrate 500 --bitrate 500 --pass 1 --rc-lookahead 0 --sync-lookahead 0 --threads 1 --keyint 4 --min-keyint 4 --scenecut 1000000000 --bframes 0 --no-scenecut -o output_res9.mp4 --input-res 640x480 --qp 0 --dump-yuv output_9.yuv input.yuv
(yes, there are some redundant arguments, because I added --qp 0 at the last minute for troubleshooting).
I would expect output_9.yuv is identical to input.yuv; but it is not. Did I screw out something in the arguments?
Thanks much for your time.
Best regards,
Cheng
Does x264 support 16-bit yuv?
I have a set of 9-bit images, and I create an input.yuv file using ImageMagick:
convert -size 640x480 -depth 16 image16_*.ppm -colorspace YUV -size 640x480 -depth 16 -sampling-factor 4:2:0 input.yuv
Then, I encode the input.yuv using a 9-bit x264 binary:
x264_9 -v --psnr --ssim --input-depth 16 --preset fast --tune zerolatency --vbv-bufsize 2000 --vbv-maxrate 500 --bitrate 500 --pass 1 --rc-lookahead 0 --sync-lookahead 0 --threads 1 --keyint 4 --min-keyint 4 --scenecut 1000000000 --bframes 0 --no-scenecut -o output_res9.mp4 --input-res 640x480 --qp 0 --dump-yuv output_9.yuv input.yuv
(yes, there are some redundant arguments, because I added --qp 0 at the last minute for troubleshooting).
I would expect output_9.yuv is identical to input.yuv; but it is not. Did I screw out something in the arguments?
Thanks much for your time.
Best regards,
Cheng