Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Certain .mov types only supported on Apple, not affected by Chrome or Chromium. #3825

Open
JonnyBurger opened this issue May 2, 2024 · 4 comments

Comments

@JonnyBurger
Copy link
Member

From message posted on Discord by jonnyburger

hmm, I think not, now I just realized it

some types of .mov are only supported on apple 馃槄 it doesn't depend on chrome or chromium

@JonnyBurger
Copy link
Member Author

We should document and handle this better
Maybe have a function which can distinguish this

@rahulbansal16
Copy link

If certain mov are supported on apple. How come my chrome browser running in windows is able to run them?

@rahulbansal16
Copy link

rahulbansal16 commented May 2, 2024

Here is the video

81b96050-8c12-46ff-9e48-da8aa9755a27.mov

@JonnyBurger
Copy link
Member Author

Preliminary analysis:

This is a QuickTime container (.mov) with a HEVC stream inside.

HEVC is only supported in some Chrome configurations, and enabled by default on Mac and Windows, controlled by the enable_platform_hevc flag (Chrome source code: src/media/media_options.gni)

We should investigate if we need to compile Chrome for Linux with this flag.

You can get the the duration of the video, but not the size. This is because the container stores the video duration, but the codec stores the height.

Recommendation:

  • If you only need the duration, copy paste the source for getVideoMetadata() and remove the code for getting the height
  • If you need the size, use getVideoMetadata() from @remotion/renderer. You need a server for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants