from Hacker News

FFmpeg-online: ffpmeg running on the browser

by bvaldivielso on 10/15/23, 5:11 PM with 28 comments

  • by netsharc on 10/15/23, 6:23 PM

    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...

  • by syrusakbary on 10/15/23, 8:08 PM

    This might also be interesting to the readers. In Wasmer we recently ported ffmpeg to Wasm/WASIX. It runs fully in both client (browser) and also fully on the server: https://wasmer.io/wasmer/ffmpeg (is multithreaded, all codecs supported)

    Here'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!

  • by leptons on 10/15/23, 6:59 PM

    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.
  • by dang on 10/15/23, 7:54 PM

    Related:

    ffmpeg.wasm – a pure WebAssembly / JavaScript port of FFmpeg - https://news.ycombinator.com/item?id=33794122 - Nov 2022 (23 comments)

    FFmpeg for browser and Node, powered by WebAssembly - https://news.ycombinator.com/item?id=28251801 - Aug 2021 (87 comments)

    A pure WebAssembly / JavaScript port of FFmpeg - https://news.ycombinator.com/item?id=24987861 - Nov 2020 (125 comments)

  • by untitaker_ on 10/15/23, 7:36 PM

    Similar, but nicer UI: https://ffmpeg.app
  • by jonplackett on 10/15/23, 7:30 PM

    Anyone 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.

  • by hokkos on 10/15/23, 7:06 PM

    Or better use the WebCodecs API to be able to use your hardware encoding and decoding facilities.
  • by amelius on 10/15/23, 7:18 PM

    When will it become practical to run Linux inside the browser using WASM?
  • by pojzon on 10/15/23, 6:51 PM

    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)