ffmpeg(`video="Name of the video device"`)
.setFfmpegPath(ffmpegPath)
.inputOptions([`-f dshow`, '-list_options true'])
.output('dummy')
.on('start', (output: string) => {
console.info('FFmpeg: spawned with command', output);
})
.on('error', (err, stdout, stderr) => {
console.info(stderr);
})
.run();
I ran the below ffmpeg command on command line which was the output from 'start' event:
ffmpeg -f dshow -list_options true -i video="QP0203 PCI, Analog 01 Capture" -y dummy
i get the correct result.
Version information
Code to reproduce
I ran the below ffmpeg command on command line which was the output from 'start' event: ffmpeg -f dshow -list_options true -i video="QP0203 PCI, Analog 01 Capture" -y dummy i get the correct result.
Observed results
ffmpeg version N-67586-g3e1ac10 Copyright (c) 2000-2014 the FFmpeg developers built on Nov 12 2014 22:01:54 with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib libavutil 54. 11.100 / 54. 11.100 libavcodec 56. 12.100 / 56. 12.100 libavformat 56. 12.103 / 56. 12.103 libavdevice 56. 2.100 / 56. 2.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [dshow @ 04be6000] Could not find video device. video="Name of the video device": Immediate exit requested