Ask Your Question
0

How can ffmpeg be used to change the pixelformat?

asked 2022-01-01 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-01-26 00:00:00 +0000

lakamha gravatar image

To change the pixelformat using FFmpeg, you can use the "-pix_fmt" option followed by the desired pixelformat. For example, to change the pixelformat to "yuv420p", use the following command:

ffmpeg -i input.mp4 -pix_fmt yuv420p output.mp4

This will convert the input video to the yuv420p pixelformat and save it as the output file. You can also use other pixelformats such as "rgb24", "gray", "yuv444p", etc.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-01 11:00:00 +0000

Seen: 8 times

Last updated: Jan 26 '22