차영민
차영민

Reputation: 21

I have to convert jpg file to YUV422 planar format by using ffmpeg

I have to display the some Images on the video clip like a watermark. It is needed to convert from jpg to YUV422 Planar format. Could you someone explain to convert this problem?

Upvotes: 2

Views: 838

Answers (1)

Alexcei Shmakov
Alexcei Shmakov

Reputation: 2343

Try it

ffmpeg -i a.jpg -s 640x480 -pix_fmt yuv422p a.yuv

To back from yuv422p to jpg

ffmpeg -pix_fmt yuv422p -s 640x480 -i a.yuv b.jpg

Upvotes: 1

Related Questions