![]() REM download all or part of your selection. REM This script provides an easy way to select specific video and/or audio streams and REM Requires YouTube-DL.exe and FFMPEG.exe (It shows after some time I guess it downloads the relevant segment first.)įor quieter output, you can remove -stats, and change -loglevel warning to -loglevel Off I also added the -stats option to ffmpeg to show the progress bar of the encoding. I also forgot to add the format option to the get-filename command, because it can change the extension.Īs I can't find a documentation for the urls-options order except what you mentioned, I will change the code to put the urls at the end. But I've already used the short option -f. I preferred -get-url over -g mainly to be consistent with -get-filename, and also to be more readable, because it's not an option I use every day. is an array holding all the parameters passed to the function ie, it's equivalent to $1 $2 $3 returns without the first four elements. This is one of the Parameter Expansions listed in man bash. # $1: url or Youtube video id # $2: starting time, in seconds, or in hh:mm:ss form # $3: duration, in seconds, or in hh:mm:ss form # $4: format, as accepted by youtube-dl (default: best) # other args are passed directly to youtube-dl eg, -r 40K local fmt= $ returns the value of $4 if it has a value, otherwise (if it's unset or null) the value after the :- is used, ie, best.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |