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.

Arguments are not working

See original GitHub issue

I would like to start by thanking you for making this application. It makes life a lot simpler.

I am trying to use the following commands, but it is failing to download any clips:

#"--merge-output-format mkv,,-f bestvideo[height<=?1440]+bestaudio/best,,--prefer-ffmpeg,,--add-metadata,,--write-srt --sub-lang en --sub-format best,,--convert-subs srt,,--output \"video/%(uploader)s - %(title)s.%(ext)s\""

I think its the -f flag that is causing an error, but some of the others are also not working.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Tzahi12345commented, May 19, 2020

Ah, I feel like an idiot for not noticing this earlier. There are two required custom args (I should just make it so they’re always included):

--print-json and --write-info-json. They’re both essential to getting information on a video after it downloads. Because they were missing, it failed. This should work for the video you provided:

--merge-output-format,,mp4,,--add-metadata,,--write-srt,,--sub-lang,,en,,--sub-format,,best,,--convert-subs,,srt,,--output,,video/%(uploader)s - %(title)s.%(ext)s,,--write-info-json,,--print-json,,-f,,bestvideo[height<=?1440]+bestaudio/best

0reactions
GlassedSilvercommented, Apr 28, 2022

I’m pretty sure this is resolved by now (at least on the nightlies, can’t remember when I last used release-channel 😛). If not, please correct me, and I’ll reopen!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command line argument not working when passing to a ...
Show activity on this post. pass the command line arguments to the function as above. The correct construct is "$@" unless the OP...
Read more >
Command Line Arguments - not working
I am new to the world of Unix and shell scripting and have been trying to get the following simple script to work:...
Read more >
Windows Terminal command line arguments | Microsoft Learn
Learn how to create command line arguments for Windows Terminal.
Read more >
Arguments are not working in my invoked workflow - Studio
I am currently working on the UIPath Academy lesson “Project Organization in Studio”, and I am working on the second exercise.
Read more >
Command Line Arguments Not Being Passed To Executable
A workaround is to close and re-open the .NET Core project just created for the arguments to be passed to the console application....
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