On Mon, Oct 11, 2021 at 11:15 AM Michael Koch <astroelectro...@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@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".