How to enable HTTPS protocol in ffmpeg.wasm?
See original GitHub issueIn 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
Please help me fix that error!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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://…