Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ffmpeg seems to have options in the wrong order

See original GitHub issue


Error: ffmpeg exited with code 1: Option to (record or transcode stop time) cannot be applied to input url -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file
Error opening input files: Invalid argument

    at ChildProcess.<anonymous> (/home/hubret/muse/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

Runtime I’m running Muse:

  • Directly from the cloned repository
  • Inside a Docker container
  • Something else (please elaborate)


  • Muse: 1.6.0
  • OS: ubuntu 18

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

hubretcommented, Mar 14, 2022

Multiple different queries had the same outcome. But it turns out its a ffmpeg version issue:

I just tried muse v1.6.0 on a fresh install of Ubuntu 20/Node 16, and it works without a hitch. v1.6.0 on Ubuntu 18/Node 16 doesn’t work.

ffmpeg version is 4.2.4 on Ubuntu 20, 3.4.8 on 18 LTS. I read somewhere that ffmpeg after a certain version allowed an option to be passed before the input file. Not sure exactly which version/what option is required for muse to work, but if anyone can figure that out it would be good to put into the muse prerequisites.

bokheruscommented, Mar 14, 2022

Could be a specific query that have issue with ffmpeg. Can you share more info on how to reproduce the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

My filters seem to be applied in wrong order - Stack Overflow
The filters are indeed applied in the correct order but it seems like "scale" crops my video again so I'm losing the bottom...
Read more >
ffmpeg Documentation
As a general rule, options are applied to the next specified file. Therefore, order is important, and you can have the same option...
Read more >
Errors - FFmpeg Wiki
This message can occur when the -map option is used to reference an input that does not exist. For example, if you have...
Read more >
ffmpeg Documentation
Therefore, order is important, and you can have the same option on the command line multiple times. Each occurrence is then applied to...
Read more >
FFmpeg FAQ
4.9 I'm using FFmpeg from within my C++ application but the linker complains about missing symbols which seem to be available. 4.10 I'm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found