ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
13.45k stars 772 forks source link

Can't absolute paths be used in the ffmpeg.run method #756

Open syjf opened 3 weeks ago

syjf commented 3 weeks ago

Can't it be written like this ffmpeg.run('-i' , 'http://127.0.0.1:5001/upload/202406/11dc85da-4937-473e-9e79-d193bf83902d.mp4'.......) Can we only do this ffmpeg.FS( "writeFile", "video", await fetchFile( "http:xxxx.mp4" ) ) ffmpeg.run('-i' , 'video'.......)

syjf commented 3 weeks ago

If you write the address directly, an error message will appear, prompting WebSocket connection to 'ws://127.0.0.1:5001/' failed: Error during WebSocket handshake: Unexpected response code: 200 Is there anything to configure

syjf commented 3 weeks ago

Why call WebSocket Do you just want to request resources