RT, I want to change the pix_fmt and colorspace of a video, from yuv420p, bt709 -> yuv420p10le, bt2020;
But it looks like a little weird, orange -> red.
I'm not a new ffmpeger, here is my command:
Can somebody tell me why?Code:ffmpeg -hide_banner -y -i INPUT -map 0:v -c:v copy -pix_fmt yuv420p10le -colorspace bt2020nc -color_trc smpte2084 -color_primaries bt2020 OUTPUT
thank you so much!
orange.mp4
https://files.videohelp.com/u/302682/orange.mp4Code:test video 0 Format/String : MPEG-4 Format_Profile : Base Media CodecID/String : isom (isom/av01/iso2/mp41) FileSize/String : 3.73 KiB Duration/String : 5s 0ms OverallBitRate/String : 6107 bps Encoded_Application/String : Lavf59.17.100 Video ID/String : 1 Format/String : AV1 Format/Info : AOMedia Video 1 Format_Profile : Main@L3.1 CodecID : av01 Duration/String : 5s 0ms BitRate/String : 3928 bps Width/String : 1280 pixel Height/String : 720 pixel DisplayAspectRatio/String : 16:9 FrameRate_Mode/String : CFR FrameRate/String : 25.000 fps ColorSpace : YUV ChromaSubsampling/String : 4:2:0 BitDepth/String : 8 bit ScanType/String : Progressive Bits-(Pixel*Frame) : 0.000 StreamSize/String : 2.40 KiB (64%) colour_range : Limited colour_primaries : BT.709 transfer_characteristics : BT.709 matrix_coefficients : BT.709 CodecConfigurationBox : av1C
red.mp4
https://files.videohelp.com/u/302682/red.mp4Code:General CompleteName : E:\local_workspace\go_test_slice\video\test_sapce\ts_3\red.mp4 Format/String : MPEG-4 Format_Profile : Base Media CodecID/String : isom (isom/av01/iso2/mp41) FileSize/String : 3.73 KiB Duration/String : 5s 0ms OverallBitRate/String : 6106 bps Encoded_Application/String : Lavf59.17.100 Video ID/String : 1 Format/String : AV1 Format/Info : AOMedia Video 1 Format_Profile : Main@L3.1 CodecID : av01 Duration/String : 5s 0ms BitRate/String : 3926 bps Width/String : 1280 pixel Height/String : 720 pixel DisplayAspectRatio/String : 16:9 FrameRate_Mode/String : CFR FrameRate/String : 25.000 fps ColorSpace : YUV ChromaSubsampling/String : 4:2:0 BitDepth/String : 10 bit ScanType/String : Progressive Bits-(Pixel*Frame) : 0.000 StreamSize/String : 2.40 KiB (64%) colour_range : Limited colour_primaries : BT.2020 transfer_characteristics : PQ matrix_coefficients : BT.2020 non-constant CodecConfigurationBox : av1C
+ Reply to Thread
Results 1 to 6 of 6
-
-
You are just changing the flags on the video you are not doing any conversion there.Can somebody tell me why?
You would need to reencode and use additionally something like colormatrix https://www.ffmpeg.org/ffmpeg-all.html#colormatrix to convert something.
Side note: What reall buffels me is that the bit depth changed, '-c:v copy' should have prevented that,..users currently on my ignore list: deadrats, Stears555, marcorocchini -
[QUOTE=Selur;2658207]
-pix_fmt yuv420p10leSide note: What reall buffels me is that the bit depth changed, '-c:v copy' should have prevented that,.. -
@ProWo: I know, but unless it only changed some flag it should not change the color space,...
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Or use zscale, to change matrix, transfer and primaries; with -c:v something other than copy
Code:-vf zscale=min=709:m=2020_ncl:tin=709:t=smpte2084:pin=709:p=2020,format=yuv420p10le -c:v something
-
Similar Threads
-
Could you make a display with 4 subpixels and 4-primary color space?
By Qbcd in forum Off topicReplies: 0Last Post: 30th Jan 2022, 02:02 -
[HELP] Correct color space
By darkslayer00 in forum DVD RippingReplies: 1Last Post: 29th Nov 2021, 03:59 -
Color Space in x264 Via FFMPEG in CLI
By koberulz in forum Newbie / General discussionsReplies: 15Last Post: 11th May 2020, 13:48 -
AviSynth - Color Space Frame Timing
By lomaidala in forum EditingReplies: 31Last Post: 7th Mar 2018, 05:53 -
Modify Color Space Flag
By chris319 in forum Newbie / General discussionsReplies: 74Last Post: 1st Aug 2017, 23:30



Quote