Search code examples
ffmpegrgbyuv

ffmpeg convert TS video file to raw rgb32 video file


I have a transport steam file containing H.264 video and would like to extract the video stream to a file containing raw uncompressed RGB32 video frames. So the H.264 video would need to be decoded and converted to RGB32 frames that would be dumped into a file.

Is there a ffmpeg command that would do this, or any other method?


Solution

  • Using FFmpeg command line,

    ffmpeg -i in.ts -pix_fmt rgba -c:v rawvideo -map 0:v -f rawvideo in-rgba.raw