I encoded a WebM / VP9 file with the RGB colorspace with ffmpeg 4.0. If I play it back on Google Chrome 71, MS Edge 17, Firefox 64 and Google Drive, I get different results:
* Google Chrome displays the colors wrong - the color channels seem to be in the wrong order.
* Microsoft Edge displays the colors wrong - it is hard to say what it is trying to do.
* Firefox claims that the file is corrupt.
* I uploaded the video to Google Drive and it decodes and encodes the video to something else (H.264?) and the resulting colors look correct in its video preview. Google Drive may be using ffmpeg under the hood to do the transcoding and that might be the reason why a video encoded with ffmpeg looks correct.
My problem is that I don't know which one is correct: ffmpeg encoding/decoding, Google Chrome or MS Edge? Which ones should receive bug reports?
Are there any sample WebM RGB files, which I could use to test these different platforms?
This is the command I used to create the WebM file with ffmpeg from 8-bit RGB PNG files:
ffmpeg -framerate 10 -i frames/frame-%05d.png -c:v libvpx-vp9 -colorspace rgb -pix_fmt bgr0 -lossless 1 output.webm
- Kari