fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.96k stars 881 forks source link

Input Format dshow is not avaiable #1294

Closed xu455255849 closed 3 months ago

xu455255849 commented 3 months ago

Version information

Code to reproduce

   const ffmpegCommand = ffmpeg(`video=${deviceName}`)
      .setFfmpegPath('D:/yunxi/ffmpeg.exe')
      /*.input('0')
      .inputFormat('avfoundation')*/
      .inputOptions([
        '-f dshow',
        '-r 30',              // Frame rate
        '-video_size 1920x1080' // Video size
      ])
      .outputOptions([
        '-pix_fmt yuv420p'    // Pixel format
      ])
      .outputFormat('rawvideo')
    const ffmpegProcess = ffmpegCommand.pipe();

(note: if the problem only happens with some inputs, include a link to such an input file)

Expected results

Observed results

Checklist

nuali commented 3 months ago

@xu455255849 I'm having the same problem. Did you manage to solve it?