[FFmpeg-trac] #3794(swscale:new): SWSCALE: Quantization Errors in Y Studio Range
FFmpeg
trac at avcodec.org
Thu Jul 24 20:25:37 CEST 2014
#3794: SWSCALE: Quantization Errors in Y Studio Range
------------------------------------+-----------------------------------
Reporter: troy_s | Owner:
Type: defect | Status: new
Priority: normal | Component: swscale
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by troy_s):
Sorry if I misunderstand but the idea is of course that you provide the
actual command line that allows to reproduce the issue you see.
Apologies. The following is the fully corrected command to generate the
raw YCbCr file output to test-studio.yuv using REC.709 coefficients:
{{{
./ffmpeg -i ~/Documents/FFMPEG\ Color\ Research/ARIB_STD-B28.png -pix_fmt
yuv444p -vcodec rawvideo -f rawvideo -vf
scale="in_range=full:in_color_matrix=bt709:out_range=mpeg:out_color_matrix=bt709"
test-studio.yuv
ffmpeg version N-64958-gce8e27e Copyright (c) 2000-2014 the FFmpeg
developers
built on Jul 24 2014 10:54:07 with gcc 4.7 (Ubuntu/Linaro
4.7.3-12ubuntu1)
configuration: --enable-gpl --enable-libx264 --enable-shared --disable-
static --enable-pic
WARNING: library configuration mismatch
avutil configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
avcodec configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
avformat configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
avdevice configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
avfilter configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
swscale configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
swresample configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
postproc configuration: --enable-gpl --enable-libx264 --disable-asm
--enable-shared --disable-static --enable-pic
libavutil 52. 92.101 / 52. 92.101
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 49.100 / 55. 49.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.102 / 4. 11.102
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from '/home/aphorism/Documents/FFMPEG Color
Research/ARIB_STD-B28.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 1920x1080 [SAR 2835:2835 DAR 16:9], 25
tbr, 25 tbn, 25 tbc
Output #0, rawvideo, to 'test-studio.yuv':
Metadata:
encoder : Lavf55.49.100
Stream #0:0: Video: rawvideo (444P / 0x50343434), yuv444p, 1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc55.69.100 rawvideo
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> rawvideo (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=0.0 Lsize= 6075kB time=00:00:00.04
bitrate=1244160.0kbits/s
video:6075kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%
aphorism at u64x6:~/Develop/ffmpeg$ convert -depth 8 -size 1920x1080
-interlace plane Gray:./test-studio.yuv -set colorspace RGB test-
studio.png
aphorism at u64x6:~/Develop/ffmpeg$ convert test-studio-* -set colorspace RGB
-combine test-studio-444-out.png
aphorism at u64x6:~/Develop/ffmpeg$ compare ./test-full-444-out.png
~/Documents/FFMPEG\ Color\ Research/ test-studio-diff.png
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3794#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list