FFmpeg-online: ffpmeg running on the browser
21–30 of 31 posts
Re: FFmpeg-online: ffpmeg running on the browser
#22Here's a video showcasing it! https://twitter.com/wasmerio/status/1687238131395768320
I believe we can bring ffmpeg to any programming language quite easily... stay tuned!
Re: FFmpeg-online: ffpmeg running on the browser
#23Re: FFmpeg-online: ffpmeg running on the browser
#24Or better use the WebCodecs API to be able to use your hardware encoding and decoding facilities.
Generally speaking, CPU decoding isn't that slow in the first place (compared to any kind of encoding), and hardware encoding is low-quality and lacking in options. Hardware encoding is great for quickly getting a camera feed to disk at a non-professional quality level, but it's hard to imagine ever using it to do a re-encode of anything -- where you usually want to prioritize quality and a smaller size over encoding…
Re: FFmpeg-online: ffpmeg running on the browser
#25I implemented ffmpeg.wasm in my own web app, and it's working out really well. I didn't have to set up a Lambda to resize video, it happens in the user's browser and the result is uploaded directly to S3. It saves me processing cost, and complexity. It was really easy to implement and works perfectly.
How large is the wasm binary?
Re: FFmpeg-online: ffpmeg running on the browser
#26Anyone know what the browser support is likely to be for this? I’m working on something right now where I’m having to use a web service to merge an mp3 and mp4. Doesn’t even need to re-encode. So this might be perfect if a decent amount of browsers can run it.
Multithreading probably requires https://caniuse.com/sharedarraybuffer
Re: FFmpeg-online: ffpmeg running on the browser
#27Re: FFmpeg-online: ffpmeg running on the browser
#28I implemented ffmpeg.wasm in my own web app, and it's working out really well. I didn't have to set up a Lambda to resize video, it happens in the user's browser and the result is uploaded directly to S3. It saves me processing cost, and complexity. It was really easy to implement and works perfectly.
The only caveat I'd mention here for anyone else looking to do something similar is that if you're planning to use ffmpeg to convert a video into multiple different formats for serving at different bitrates or to different devices, then doing it clientside opens up the door for users to upload completely different videos for different formats; you are trusting the client ultimately to send you the data. Plenty of sce…
Re: FFmpeg-online: ffpmeg running on the browser
#29I implemented ffmpeg.wasm in my own web app, and it's working out really well. I didn't have to set up a Lambda to resize video, it happens in the user's browser and the result is uploaded directly to S3. It saves me processing cost, and complexity. It was really easy to implement and works perfectly.
is this open sourced somewhere?
Re: FFmpeg-online: ffpmeg running on the browser
#30Earlier quoted context omitted.
The only caveat I'd mention here for anyone else looking to do something similar is that if you're planning to use ffmpeg to convert a video into multiple different formats for serving at different bitrates or to different devices, then doing it clientside opens up the door for users to upload completely different videos for different formats; you are trusting the client ultimately to send you the data. Plenty of sce…
What you said is definitely true. But in my system the videos are resized and converted into RAW format which I then extract color information from at different pixel locations, so it wouldn't really matter if it's an exe file or something else - it's only going to extract the binary data as color information to be used in other ways, and the converted files are never served. I doubt there's too much risk involved wi…