#10532: Color changes at w => 1280, h >= 578 with libplacebo filter on rgb 
source
------------------------------------+------------------------------------
             Reporter:  nicol       |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Comment (by nicol):

 Adding itrc=srgb and fast=1 in the colorspace filter first gave the same
 look as resized with the scale filter.

 % ffmpeg -f lavfi -i colorchart=d=2 -vf
 scale=w=1280:h=576:flags=lanczos,setsar=1 -crf 18 -pix_fmt yuv420p
 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -bsf:v
 
h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1
 -color_range tv colorchart_scale_w1280.mp4

 % ffmpeg -hwaccel_output_format vulkan -init_hw_device vulkan=vk
 -filter_hw_device vk -f lavfi -i colorchart=d=2 -vf
 
hwupload,libplacebo=inputs=1:w=1280:h=576:upscaler=lanczos:format=yuv420p:range=tv,hwdownload,format=yuv420p
 -crf 18 -pix_fmt yuv420p -color_primaries bt709 -color_trc bt709
 -colorspace bt709 -bsf:v
 
h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1
 -color_range tv colorchart_libplacebo_w1280.mp4

 % ffmpeg -hwaccel_output_format vulkan -init_hw_device vulkan=vk
 -filter_hw_device vk -f lavfi -i colorchart=d=2 -vf
 
colorspace=all=bt709:iprimaries=bt709:itrc=srgb:ispace=bt709:fast=1,hwupload,libplacebo=inputs=1:w=1280:h=576:upscaler=lanczos:format=yuv420p:range=tv,hwdownload,format=yuv420p
 -crf 18 -pix_fmt yuv420p -color_primaries bt709 -color_trc bt709
 -colorspace bt709 -bsf:v
 
h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1
 -color_range tv colorchart_colorspace_libplacebo_w1280.mp4

 Looks same chrome, edge and firefox.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10532#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to