question-mark
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

Logs

Error: ffmpeg exited with code 1: Option to (record or transcode stop time) cannot be applied to input url https://rr2---sn-2ipaatpm-2iae.googlevideo.com/videoplayback?expire=1647243112&ei=CJsuYtD4F5yz8wSWkJ-ABw&ip=45.56.98.89&id=o-AEmB3OFVW2X1KLQTGick1YaSe6fExYMhQVEf79LMUNLB&itag=251&source=youtube&requiressl=yes&mh=XZ&mm=31%2C29&mn=sn-2ipaatpm-2iae%2Csn-ab5szn7r&ms=au%2Crdu&mv=m&mvi=2&pl=23&initcwndbps=81250&vprv=1&mime=audio%2Fwebm&ns=WuQQsFVifVOGAJTAw4_ox2sG&gir=yes&clen=4075475&dur=220.321&lmt=1628075317108564&mt=1647221104&fvip=4&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5511222&n=PGa8gUiD4Nwo7w&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhANOfXA4lwu5TOoFtnn_HR4W8yr5zzXzq-Nl9C0PrXmiIAiAm12lh0iV2e3uNckvTMhUH4VmMhVTpR5oUtOwBhNXC3Q%3D%3D&sig=AOq0QJ8wRQIgfQwkrSUgkOXuH8XznI4wU34K3atxnxNesoldXuSdhFsCIQCAGXNl4T_0_NBniM-IGiFl1P_d3yMVC_11M1paKbTlHQ%3D%3D -- 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 https://rr2---sn-2ipaatpm-2iae.googlevideo.com/videoplayback?expire=1647243112&ei=CJsuYtD4F5yz8wSWkJ-ABw&ip=45.56.98.89&id=o-AEmB3OFVW2X1KLQTGick1YaSe6fExYMhQVEf79LMUNLB&itag=251&source=youtube&requiressl=yes&mh=XZ&mm=31%2C29&mn=sn-2ipaatpm-2iae%2Csn-ab5szn7r&ms=au%2Crdu&mv=m&mvi=2&pl=23&initcwndbps=81250&vprv=1&mime=audio%2Fwebm&ns=WuQQsFVifVOGAJTAw4_ox2sG&gir=yes&clen=4075475&dur=220.321&lmt=1628075317108564&mt=1647221104&fvip=4&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5511222&n=PGa8gUiD4Nwo7w&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhANOfXA4lwu5TOoFtnn_HR4W8yr5zzXzq-Nl9C0PrXmiIAiAm12lh0iV2e3uNckvTMhUH4VmMhVTpR5oUtOwBhNXC3Q%3D%3D&sig=AOq0QJ8wRQIgfQwkrSUgkOXuH8XznI4wU34K3atxnxNesoldXuSdhFsCIQCAGXNl4T_0_NBniM-IGiFl1P_d3yMVC_11M1paKbTlHQ%3D%3D.
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)

Versions

  • Muse: 1.6.0
  • OS: ubuntu 18

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
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.

0reactions
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found