[FFmpeg-user] Question for FFmpeg-user list

James Insell james01 at insell.co.uk
Mon Aug 1 01:26:10 EEST 2022


Hi Seth,

You can show the list of pixel formats supported by ffmpeg with the 
command "ffmpeg -pix_fmts".  Unfortunately I don't think CrYCbY (which 
is practically equivalent to VYUY) is among them.

What I would suggest is to treat the format as if it were UYVY 4:2:2 ( 
-pixel_format uyvy422 ) and then use the "swapuv" filter. You will then 
be able to use your captured video within ffmpeg and the colours will be 
correct, and you can save it as UYVY 4:2:2.

If you REALLY want to deal with the captured video without any changes 
whatsoever, you can still read in / save it as VYUY with the UYVY format 
container, but don't try and view it without swaping U and V.

I hope that helps.

Best,

James.


On 31/07/2022 22:26, Seth Ansell wrote:
> Hello,
>
>
>
> I am a newbie to FFmpeg, but in viewing the documentation, I am unable to
> learn the command to do the following.   I have a video board that is
> outputting YCrCb 4:2:2 (the manufacturer says the order is CrYCbY………).
>
>
>
> I wish to write this video output to a in a raw 4:2:2 format exactly as it
> comes off of the board, no header, no padding, no changes at all.
>
>
>
> If someone can please advise me as to the proper command in FFmpeg to
> accomplish this, it would be much appreciated.
>
>
>
> Thank you (in advance.
>
>
>
> --Seth
>


More information about the ffmpeg-user mailing list