I have been trying to read a video from an url inside ffmpeg in my node js application. My code goes like this.
const ffmpeg = require('fluent-ffmpeg');
const fs = require('fs')
var strm = fs.createReadStream('https://myurl.com/videos/fq231f12a')
ffmpeg()
.input(strm)
.run();
When i run this code in my local shell the url is appended to the current dir. Like a relative path. This looks weird to me.
E:\myapp>node video.js
node:events:342
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'E:\myapp\https:\myur...
What's wrong here? How do i make it work properly?