[FFmpeg-user] shuffleplanes

Paul B Mahol onemda at gmail.com
Mon Oct 11 12:26:27 EEST 2021


On Mon, Oct 11, 2021 at 11:15 AM Michael Koch <astroelectronic at t-online.de>
wrote:

> Hello,
>
> I have a question about the shuffleplanes filter. In this example the
> pixel format is RGB24. So the first plane is red and the second plane is
> green. I want to swap the red and green planes.
>
> ffmpeg -f lavfi -i testsrc2 -lavfi
> format=rgb24,split[a][b];[b]shuffleplanes=1:0:2[b];[a][b]vstack -frames
> 1 -y out.png
>
> But in the output green is swapped with blue. I don't understand why.
> I'm using the latest Windows build, just a few days old.
>

As usual you add additional premise that does not makes sense and is
incorrect.

rgb24 is not planar but packed.

gbrp is used internally and works as expected, as filter does not care
about R/G/B/A order.
It just shuffles planes.


> Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list