Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8503109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:40:07+00:00 2026-06-11T01:40:07+00:00

I need to be able to execute FFMPEG from my Node.js application. I believe

  • 0

I need to be able to execute FFMPEG from my Node.js application. I believe this problem likely has to do with properly specifying command line arguments, and not specific to FFMPEG, but as I have been unable to narrow down the issue, I present my entire problem.

I can execute the following command from the command prompt successfully:

C:\Brad\ffmpeg.exe -f dshow -i audio="Microphone (SoundMAX Integrated" testaaa.mp3

FFMPEG starts as expected, records audio from my audio device, and writes an MP3 file. Now, I try to do the same thing within my Node.js application:

childProcess = child_process.spawn('C:\\Brad\\ffmpeg.exe', ['-f', 'dshow', '-i', 'audio="Microphone (SoundMAX Integrated"', 'testaaa.mp3']);
childProcess.stderr.on('data', function (data) {
    console.log('StdioSource received data from STDERR: ' + data);
});

From within Node.js, FFMPEG fails! The error is simply:

[dshow @ 0000000001eded80] Could not find audio device.
audio="Microphone (SoundMAX Integrated": Input/output error

Thinking that maybe for some reason this was a weird permissions error, I decided to run FFMPEG with -list_devices true from within my Node application, and sure enough, the device in question is listed:

[dshow @ 000000000228ecc0] DirectShow video devices
[dshow @ 000000000228ecc0] Could not enumerate video devices.
[dshow @ 000000000228ecc0] DirectShow audio devices
[dshow @ 000000000228ecc0]  "Microphone (SoundMAX Integrated"

Any thoughts as to why I cannot properly specify the audio input device in the arguments for FFMPEG, or why FFMPEG does not recognize my audio input device when running as a child process to Node.js?

Any hints would be most appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:40:09+00:00Added an answer on June 11, 2026 at 1:40 am

    Brandon’s on the right track. When you use double quotes around arguments on the Windows command line, the shell strips them off and the program sees them unquoted. When you use child_process.spawn() you’re bypassing the shell, and as a result the program sees literal quotes as part of the argument and isn’t prepared to deal with them.

    For example, I created a tiny node script, pargs.js, consisting only of console.log(process.argv); Running it with the same arguments you gave to FFMPEG, I get:

    C:\Documents and Settings\Eric Bohlman>node pargs -f dshow -i audio="Microphone(SoundMAX Integrated" testaaa.mp3
    [ 'node',
      'C:\\Documents and Settings\\Eric Bohlman\\pargs',
      '-f',
      'dshow',
      '-i',
      'audio=Microphone (SoundMAX Integrated',
      'testaaa.mp3' ]
    
    C:\Documents and Settings\Eric Bohlman>
    

    As you can see, the shell stripped off the quotes after using them to avoid breaking the audio=... argument at the spaces.

    Note that the Windows shell (at least as of XP SP3) doesn’t strip off single quotes or use them for grouping, unlike, say, bash as commonly used on Linux systems. Thus if you’re looking at someone’s example bash command line and it uses single quotes, you’ll generally have to replace them with double quotes for it to work under Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to execute ssh from windows command line by providing password in a
Has anyone been able to successfully execute a Trace.Warn statement from a function in
I need to be able to execute a PS1 script that resides on a
I am building a chrome extension and I need to be able to execute
I need to be able to execute either a php or jquery function to
I'm working on an online PHP application that has a need for delayed PHP
I need to be able to execute (via JDBC) a straightforward SQL select query
I use the great tablesorter plugin. I need to be able to execute something
I need to be able to execute a task for all sub-directories with a
I'm failing to find answer to my problem. I need to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.