<div dir="ltr"><div><div><div><div>Interesting, it is an artifact of JM 18.4 decoding the x264 output.<br><br>Decoding with ffmpeg:<br><br>ffmpeg -i X_cr0_1920x1056_QP0.h264 -vcodec rawvideo -pix_fmt yuv420p ff_X_cr0_1920x1056_QP0.yuv<br>
<br></div>is lossless, there is just two interesting lines in the output of ffmpeg:<br><br>ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers<br> built on Aug 10 2013 07:28:36 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)<br>
configuration: --enable-shared --enable-gpl<br> libavutil 52. 38.100 / 52. 38.100<br> libavcodec 55. 18.102 / 55. 18.102<br> libavformat 55. 12.100 / 55. 12.100<br> libavdevice 55. 3.100 / 55. 3.100<br>
libavfilter 3. 79.101 / 3. 79.101<br> libswscale 2. 3.100 / 2. 3.100<br> libswresample 0. 17.102 / 0. 17.102<br> libpostproc 52. 3.100 / 52. 3.100<br>[h264 @ 0x7fc1f901a600] decoding for stream 0 failed<br>
Input #0, h264, from 'X_cr0_1920x1056_QP0.h264':<br> Duration: N/A, bitrate: N/A<br> Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv420p, 1920x1056, 25 tbr, 1200k tbn, 50 tbc <-----------<br>
Output #0, rawvideo, to 'ff_X_cr0_1920x1056_QP0.yuv':<br> Metadata:<br> encoder : Lavf55.12.100<br> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1056, q=2-31, 200 kb/s, 90k tbn, 25 tbc <-------------<br>
Stream mapping:<br> Stream #0:0 -> #0:0 (h264 -> rawvideo)<br>Press [q] to stop, [?] for help<br>frame= 1 fps=0.0 q=0.0 Lsize= 2970kB time=00:00:00.04 bitrate=608256.0kbits/s <br>video:2970kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000%<br>
<br><br></div>why does it say:<br><br> Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv420p, 1920x1056, 25 tbr, 1200k tbn, 50 tbc<br><br>and then<br><br> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1056, q=2-31, 200 kb/s, 90k tbn, 25 tbc<br>
<br></div>Q=2-31? High 4:4:4 Predictive? Is it possible that something is signaled incorrectly in the x264 stream for JM 18.4?<br><br></div>RAUL<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 21, 2013 at 8:04 AM, Raul Lopez <span dir="ltr"><<a href="mailto:raulizahi@gmail.com" target="_blank">raulizahi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>I am trying to use x264 to do Lossless Image and Video Compression, I am using this command line:<br>
<br>x264 --qp 0 --input-res 1920x1056 --output X_cr0_1920x1056_QP0.h264 --dump-yuv X_cr0_1920x1056_QP0.yuv ~/Desktop/Uncompressed/crowd_run_1920x1056p50_GL420_0.yuv<br>
<br></div>The --dump-yuv file : X_cr0_1920x1056_QP0.yuv is lossless (Y, U and V)<br><br></div>but<br><br>when I decode X_cr0_1920x1056_QP0.h264 with JM 18.4, the decoded output's Y component is NOT lossless. <br><br>
The Y PSNR is 29.29dB while for U and V it is Perfect. The picture also looks different as if the contrast changed.<br><br></div>This is the version I am using:<br><br>x264 0.135.x<br>(libswscale 2.3.100)<br>(libavformat 55.12.100)<br>
built on Aug 15 2013, gcc: 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)<br>configuration: --bit-depth=8 --chroma-format=all<br>x264 license: GPL version 2 or later<br>libswscale/libavformat license: GPL version 2 or later<br>
<br></div>Are there any other command line settings that I should use to achieve decoded Y lossless output?<span class="HOEnZb"><font color="#888888"><br><br><div><div>RAUL<br></div></div></font></span></div>
</blockquote></div><br></div>