Skip to content

🎥 Make videos programmatically with React

`@remotion/media-utils`: Suggest using parseMedia() when failing to use getVideoMetadata()

Jonny Burger539261aca3fd
diff --git a/packages/media-utils/src/media-tag-error-handling.ts b/packages/media-utils/src/media-tag-error-handling.ts
index b317f2f5f8..70c97795e5 100644
--- a/packages/media-utils/src/media-tag-error-handling.ts
+++ b/packages/media-utils/src/media-tag-error-handling.ts
@@ -81,7 +81,7 @@ export const onMediaError = ({
)
: new Error(
[
- `Failed to execute ${api}, Received a MediaError loading "${src}".`,
+ `Failed to execute ${api}, Received a MediaError loading "${src}". Consider using parseMedia() instead which supports more codecs: https://www.remotion.dev/docs/miscellaneous/parse-media-vs-get-video-metadata`,
status === null
? null
: `HTTP Status code of the file: ${status}.`,