I have one video with ‘ yuv422p ’ pixel format and I want to change the pixel format of the video ‘ yuv420p ’ with transcoding, is there any parameter in FFmpeg that can help me to specify the pixel format.
Hey! Try this one if it works.
-i DJI_0090.MOV -pix_format yuv420p
It doesn’t work for me
Getting the same issue again
$ ffmpeg -i DJI_0090.MOV -pixel_format yuv420p test.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe2d0002600] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080): unspecified pixel format Consider increasing the value for the ‘analyzeduration’ and ‘probesize’ options
Hey!
According to me, FFmpeg provides a “ -pix_fmt “ option for specifying pixel format if you add “ -pix_fmt “ before the input file or “ -i “ parameter then the frame will be read in the specified pixel format input file.
Agree with
But you can also try:
ffmpeg -pix fmts
if you want to see the list of pixel formats.
Thanks
Got it! Thank you all for your help. It really works.