mattdesl / mp4-h264

[project suspended] MP4 + H264 encoding for the browser with WASM
MIT License
223 stars 12 forks source link

Output from webcodecs.html isn't playable #12

Open 19521178 opened 1 year ago

19521178 commented 1 year ago

I've just tried to running webcodecs.html in /test folder. I found that the video element cannot run. After adding some console line, the output of encoder (Uint8Array and URL created from Array) as below:

I really don't understand reason why information of a 300-frame video is so short. Is there anybody show me the way to get a playable video's URL from encoder of webcodecs.html.

I run html file on Edge Browser Version 108.0.1462.54. I've changed some code in webcodecs.html to fix bugs occupied in encoding time such as: