Arguments are not working
See original GitHub issueI 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:
- Created 3 years ago
- Comments:13 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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!