question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to enable HTTPS protocol in ffmpeg.wasm?

See original GitHub issue

In my code await ffmpeg.run("-i", "https://videoabcxyz.com", "output.mp4"), I got https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled error. I also tried to run await ffmpeg.run("-protocols"), it only shows HTTP protocol, not HTTPS protocol. But when I ran ffmpeg -protocols manually on the command line, it shows both HTTP and HTTPS. How to enable HTTPS protocol in ffmpeg.wasm?

I tried to recompile ffmpeg.wasm-core to enable HTTPS protocol based on these links (https://stackoverflow.com/questions/31514949/ffmpeg-over-https-fails and https://github.com/ffmpegwasm/ffmpeg.wasm-core) but I got error in this image image

Please help me fix that error!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:8

github_iconTop GitHub Comments

3reactions
periman2commented, Sep 5, 2022

I would love it if this functionality was built into it as well. I’m trying to input an hls stream .m3u8 file and it breaks while trying to fetch the .ts file chunks from the server saying the exact same error. I’ll try downloading the .ts files as a workaround but I’m not certain it’ll work like that.

2reactions
gmluo2commented, Sep 19, 2022

Unfortunately, ffmpeg.wasm does not support https connection. Actually emscripten changes socket connection to websocket connection to connect to server (obviously server side needs to offer SSL websocket API for connection). So, there is no sense to rebuild ffmpeg.wasm with openssl. The walkaround is to change source url protocol with http connection in ffmpeg.run command, and modify ffmpeg-core.js to use secured websocket url, wss://…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable HTTPS protocol in ffmpeg.wasm?
The walkaround is to change source url protocol with http connection in ffmpeg.run command, and modify ffmpeg-core.js to use secured websocket ...
Read more >
Part.5 ffmpeg.wasm v0.3 — pre-js and live streaming ... - ITNEXT
Use ffmpeg.js to transcode the Uint8Array data. Step.1 access webcam using getUserMedia (https protocol is required) <video id=" ...
Read more >
FFMPEG.WASM
ffmpeg.wasm is a pure WebAssembly / JavaScript port of FFmpeg. It enables video & audio record, convert and stream right inside browsers.
Read more >
FFmpeg + WebAssembly - DEV Community ‍ ‍
Compiling FFmpeg to Web Assembly. In our Dockerfile, we will use the base emscripten emsdk to build FFmpeg from source, along with the...
Read more >
ffmpegjs - Bountysource
My requirement: compile ffmpeg.wasm-core with --enable-openssl for https protocol. Output I got. ERRO[0661] error waiting for container: invalid character ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found