3

Suppose I have a video file and I want to swap the red and blue channels of the video file. How can I do this with ffmpeg?

2
  • I'd try the shuffleplanes video filter, but I haven't actually done this myself.
    – dirkt
    Nov 7, 2020 at 15:57
  • Is the video YUV or RGB?
    – Gyan
    Nov 7, 2020 at 17:02

1 Answer 1

6

variant 1: colorchannelmixer

ffmpeg -i input.mkv -filter:v colorchannelmixer=0:0:1:0:0:1:0:0:1:0:0 output.mkv

rgb, group for 4 digits separated with colon 0:0:1:0 - rgba format

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .