Author Topic: Converting rgb to yuv using ffmpeg  (Read 680 times)

Offline karthick

  • Member
  • Posts: 10
    • View Profile
Converting rgb to yuv using ffmpeg
« on: April 24, 2012, 04:04:38 AM »
Hello Everyone,
I need to convert a raw file which is in bgra format with 1280x720 resolution to a yuv 4:2:0 format. Pls help me to do this conversion using ffmpeg.

Offline J_Darnley

  • Global Moderator
  • Member
  • *****
  • Posts: 397
    • View Profile
Re: Converting rgb to yuv using ffmpeg
« Reply #1 on: April 24, 2012, 04:48:41 AM »
ffmpeg -s 1280x720 -pix_fmt bgra -i INPUT -pix_fmt yuv420p OUTPUT

Also, what does this have to do with h264?  I'm going to move it.
Knowledgeable about: cmd.exe, ffmpeg, x264