I have a list of raw bitmap in rgba format, captured with an openGL frameBuffer. I want to export them in a video, currently i am using the following command:
ffmpeg -f rawvideo -r 30 -pix_fmt rgba -s 1920x1018 -i - -threads 0 -y -c:v libx264 -pix_fmt yuv420p -b:v 8000K -vf vflip,drawbox=10:20:200:60:red@1:t=fill result.mp4
When I open the output video in different viewers (vlc, windows media player), the resulting color are shifted and appears more green.
For example I draw a solid red rectangle (255, 0, 0) got translated to (255, 24, 0)
I have played with pix_fmt and the format filter with no result.