Live data from Hacker News

FFmpeg-online: ffpmeg running on the browser

ffmpeg-online.vercel.app

1–10 of 31 posts

Re: FFmpeg-online: ffpmeg running on the browser

#3
post #2

As their github page says, based on https://ffmpegwasm.netlify.app ... I'm guessing no one did GPU-optimizations? I saw a web app (not an ffmpeg transpilation) that went clever and used WebGL so it can access the GPU and use its parallel processing capabilities...

It’s nice if you have a modern computer, but I wonder what happens when the client has a very old computer or a “Chromebook”.

Will the experience for those low end computers be degraded?

It’s been awhile since I actually used ffmeg directly but I do recall trying to transcode some video to a different format and it took some time on a 2015 MacBook (not a MBP, like a thinner version of the MBA, lol)

Re: FFmpeg-online: ffpmeg running on the browser

#5
I 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.

Re: FFmpeg-online: ffpmeg running on the browser

#7
post #5

I 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

#8
post #5

I 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

#9
post #5

I 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 scenarios where that doesn't matter and it's fine to trust the client, but just something to be aware of.

Re: FFmpeg-online: ffpmeg running on the browser

#10
post #4

Anyone can explain to me why order of input file flag has such an impact on the accuracy of copy ? (Ffmpeg adds/removes randomly few sec)

Are you using it with seeking? Order of the input flag while using seeking determines whether you're using input seeking or output seeking.

https://trac.ffmpeg.org/wiki/Seeking

Post reply on HN