Open super-ienien opened 7 years ago
Yep, that's a known issue. fluent-ffmpeg incorrectly interprets such inputs as files. I've started working on it a while ago but I didn't have time to finish yet.
Great !!!!!!!!!!!!! I will look if i can do something to help you.
Hey,
Did the ability to pick up devices ever get added?
I see the link njoyard put to a fix that scans the device output of ffmpeg but it doesn't look like it has been tested or merged.
Is this simply a syntax in the command string? ffplay will happily accept -i 'device name' -f 'dshow'. However, ffmpeg doesn't seem to accept it unless it is -f 'dshow' -i 'device name'
@njoyard was DirectShow device support ever added to the input()
command? Would a PR be welcomed for this feature if I am able to create one?
Apologies, I found the problem when I tried to do it manually with child_process.spawn
. My original attempt looked like this:
ffmpeg()
.input('video="Virtual Camera"')
However, the double quotes were actually what was causing the error (this forum post tipped me off). Removing the quotes fixed it, both for child_process
and for fluent-ffmpeg
:
ffmpeg()
.input('video=Virtual Camera')
So I can now confirm that fluent-ffmpeg
does indeed work with directshow device input in 2021! š
@super-ienien this likely also solves your original issue from way back in 2017! š
And for anyone that came further, looking for the syntaxis to add video and audio device with Directshow ...
ffmpeg()
.input('video=Virtual Camera:audio=Virtual Mic')
Many thanks to @nathanbabcock šš»
thank you, this works for me
Hi,
On windows I'm having trouble with ffmpeg-fluent. When with ffmpef-fluent I try to use dshow capture device as input, ffmpeg tell me that it doesn't find this device. But when i run exactly the same command directly via command line it works...
dump of ffmpeg-fluent :
Dump of cmd :
If anybody has an idea of what's happening. It could be great !
Thanks