Hello,
I am using webcodecs and mp4box.js to create mp4 video files.
The issue I am facing is that there is a color difference in the video while playing in the browser versus vlc/ffplay. In vlc/ffplay it is showing true color while in the browser the color is a little dull.
I think the issue can be that the mp4 header does not contain colr properties and I also checked with ffprobe that the color properties are unknown.
If I update the color properties using ffmpeg it plays fine in the browser.
Hello, I am using webcodecs and mp4box.js to create mp4 video files.
The issue I am facing is that there is a color difference in the video while playing in the browser versus vlc/ffplay. In vlc/ffplay it is showing true color while in the browser the color is a little dull.
I think the issue can be that the mp4 header does not contain
colr
properties and I also checked with ffprobe that the color properties areunknown
.If I update the color properties using ffmpeg it plays fine in the browser.
I tried to add
colr
properties in the mp4box file but it did not work.What should be the correct approach to add the
colr
properties using mp4box.js?I am attaching a sample video.
https://user-images.githubusercontent.com/42185607/191789012-64491cbe-fbd7-4d49-9b05-eec38537a735.mp4
This is how it looks using ffplay,