[FFmpeg-trac] #10989(avfilter:new): "color" video source fails to handle "size=1x1"?
FFmpeg
trac at avcodec.org
Wed May 1 06:40:30 EEST 2024
#10989: "color" video source fails to handle "size=1x1"?
-------------------------------------+-------------------------------------
Reporter: | Type: defect
MasterQuestionable |
Status: new | Priority: normal
Component: avfilter | Version: git-
Keywords: color video | master
source | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
͏ ffmpeg -y -nostdin -nostats -v debug -f lavfi -i
"color=#ff0000:1x1[0]; color=!#0000ff:1x1[1]; [0][1]vstack,split[0][1];
[0]vflip,[1]hstack" -vframes 1 -compression_level 10 -pred none "0.png"
͏ ffmpeg -y -nostdin -nostats -v debug -f lavfi -i
"color=#ff0000:1x1,format=rgb24[0]; color=!#0000ff:1x1,format=rgb24[1];
[0][1]vstack,split[0][1]; [0]vflip,[1]hstack" -vframes 1
-compression_level 10 -pred none "0.png" -vframes 1 -vf "format=yuvj420p"
-sws_flags spline+accurate_rnd+full_chroma_int -lossless 1 -q 100
-compression_level 6 "1.webp"
͏ It appears "color" asserts "yuv420p" pixel format: which might be
problematic (in particular for writing PNG alike).
͏ Semantic-wise, it's using RGB notation representing colors: while
covertly collapsed to subsampled YUV...
͏ See also:
͏ https://ffmpeg.org/ffmpeg-filters.html#color
͏ https://ffmpeg.org/ffmpeg-filters.html#split_002c-asplit
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10989>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list