muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.21k stars 62 forks source link

Not able to play large files #978

Closed baseliners closed 1 week ago

baseliners commented 1 week ago

Hi - I've been using media-chrome in a Svelte app and am trying to play a few local mp4 videos (H264 codec). It's been great so far but I just noticed that large files (e.g. a 3hr long movie) do not play - i.e. I see a black box and clicking on play just shows a black screen.

I then used ffmpeg to create clips from this video of varying lengths and found that if I take the first 60 or even 70mins clip, it plays fine. If I take 90mins, I get a black screen but can hear the audio fine. If I take the entire clip, it seems to play (I can see the timecode changing) but no audio or video.

Based on some research, it looks like html5 video may not work well with very large files and may require some sort of chunking solution. Curious if there's any way to get large files to work properly in media-chrome (with or without chunking). Thanks!