I am converting video to ProRes format with options:
I see that ffmpeg wants to do this too:Code:-c:v prores_ks -profile:v 1 -colorspace bt470bg
But the output file does not have the appropriate flag:Code:Stream #0:0: Video: prores (LT) (apcs / 0x73637061), yuv422p10le(tv, bt470bg/unknown/unknown, progressive), 720x576 [SAR 16:15 DAR 4:3]
So how to do it properly?Code:Video ID : 1 Format: ProRes Format version: Version 0 Profile format: 422 LT Codec ID: apcs Duration: 15 min 37 sec Bit rate mode: Variable Bit rate: 56.7 Mbps Width: 720 pixels Height: 576 pixels Display aspect ratio: 4:3 Frame rate mode: Constant Frame rate: 50,000 FPS Color space : YUV Chroma subsampling: 4:2:2 Scan type: Progressive Bits/(Pixel*Frame) : 2,732 Stream size: 6.18 GiB (100%) Writing library: Lavc
+ Reply to Thread
Results 1 to 8 of 8
-
-
Do you want to convert the colorspace by using the corresponding matrix, or just flag it?
Maybe this helps:
https://medium.com/invideo-io/talking-about-colorspaces-and-ffmpeg-f6d0b037cc2f
https://www.canva.dev/blog/engineering/a-journey-through-colour-space-with-ffmpeg/
https://stackoverflow.com/questions/61834623/how-to-use-ffmpeg-colorspace-optionsLast edited by Sharc; 28th Apr 2024 at 04:46. Reason: Link added
-
Thanks.
This is the only combination that worked for me. Missing one causes all flags to be missing.
Code:-colorspace bt470bg -color_primaries bt470bg -color_trc gamma28 -color_range tv
Last edited by rgr; 28th Apr 2024 at 05:56.
-
Just flag it (source: miniDV)
However, I have a question by the way.
AViSynth script, the source is let's say BT709 YUV420.
I use the command: ConvertTo422() (no parameters)
The output will be BT709/YUV422 or BT601/YUV420. I haven't tested it, but according to the instructions, ConvertToYUVxxx gives BT601 by default.Last edited by rgr; 28th Apr 2024 at 05:55.
-
The matrix is only required for conversions between YUV and RGB. As far as I know the convert functions can't change the matrix when converting from one flavor of YUV to another, so if you want to convert a YUV BT709 source to BT601, you need to convert it to RGB with matrix="Rec709", and then back to YUV with matrix="Rec601".
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
AFAIK the colormatrix(mode=xxxx) filter can do the conversion staying within YUV in one step:
http://avisynth.nl/index.php/ColorMatrix -
Similar Threads
-
Difference between Switch and Flag in ffmpeg.
By Secoast in forum Newbie / General discussionsReplies: 0Last Post: 10th Aug 2023, 10:15 -
ffmpeg prores: Packet too small
By Gwar in forum Video ConversionReplies: 8Last Post: 2nd Feb 2023, 12:58 -
editing in NLE after encoding Prores 422 HQ with ffmpeg in the Window 10.
By jsj2251 in forum EditingReplies: 2Last Post: 4th May 2022, 15:16 -
is ffmpeg prores the same as the prores you get with fc pro
By oduodui in forum Newbie / General discussionsReplies: 5Last Post: 17th Nov 2021, 07:51 -
FFMPEG Prores mov to 4K HDR Mp4 or Mkv
By ceppu36 in forum Newbie / General discussionsReplies: 1Last Post: 24th Sep 2019, 15:58