sonysuqin / WasmVideoPlayer

Play file/stream with wasm & webgl & web audio api, using ffmpeg for multi codec support, especially for h265,support http, websocket, http-flv stream.
GNU General Public License v3.0
1.3k stars 375 forks source link

function signature mismatch #62

Open 812781385 opened 4 years ago

812781385 commented 4 years ago

run demo show : libffmpeg.wasm:1 Uncaught RuntimeError: function signature mismatch

guoguicheng commented 3 years ago

有可能你的视频moov box在后面,这种视频用ffmpeg播放的话,只适合从本地播放,从网络播放的话需要提前加载moov,因为元数据都在里面。转一下就可以了 ffmpeg -i input.mp4 -movflags faststart out.mp4

https://www.gitmemory.com/issue/sonysuqin/WasmVideoPlayer/43/574038095