Files from custom build is not playing
First, great tool! The size and speed makes this unique compared to all the other recorders out there 😊
I made a custom build and exported the videos using the demo code with my own generated wasm. The videos play nicely in the browser, but it won't open in QuickTime and After Effects.
When I use the WASM files from the live demo, it works. So I used FFMPEG to look if there were any differences in these files' metadata, but they are identical.
I suspect it might be something missing in the header?
Found it!
It is the video_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; that is commented out on this line: https://github.com/AlexVestin/WasmVideoEncoder/blob/2c625c3a024157f8f6cddff167ffd9fff03936d3/webassembly/C/avio_write.c#L264
I can make a PR later if you want :)
Hey, sorry for commenting late but I didn't get a notification for this.
I can make a PR later if you want :)
Sure! that would be great.