remotion icon indicating copy to clipboard operation
remotion copied to clipboard

High 4:2:2@L4 Profile Unsupported (DECODER_ERROR_NOT_SUPPORTED: Unsupported profile)

Open SynchronDEV opened this issue 1 year ago • 0 comments

Bug Report 🐛

"remotion": "4.0.194"

Video Assets (.mp4 & .mov) unsuccessfully load if the video's color profile is High 4:2:2@L4 (Chroma subsampling 4:2:2) even if the video is H.264 - This causes an error in Remotion both when previewing the asset, but also when trying to load the asset to <Video> or <OffthreadVideo>

This behavior is not entirely unexpected as browsers have weak 4:2:2 support. Still, the feedback provided to the user in Remotion is unclear. It's not until I tried viewing the asset in the Remotion UI that I understood the issue isn't with loading the asset, but rather the asset itself.

The solution is to re-encode to 4.2.0 outside of Remotion - I can't find any built-in options that would help with this but I might've missed this in the documentation. The alternative would be to combine staticFile with a middleware re-encoder when it detects that the color profile is 4:2:2

image

SynchronDEV avatar Aug 14 '24 13:08 SynchronDEV