Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

BASH scripting youtube-dl

(http://stream-recorder.com/forum/showthread.php?t=22724)

SonOfErin 03-03-2017 07:33 AM

BASH scripting youtube-dl


 
I'm tired of typing in
Code:

youtube-dl -x --audio-stream (xxx)
and pasting the URL for the video I want to (download the audio from) in. I have typo'd all kinds of things before the paste-in step, and I really want to get past that, too. I want to write a script (or a function to shoehorn into .bash_aliases) that would make it easier and eliminate the chance for typos.

Two things I'd like to include in such a script or function:
* The option to download in .m4a as well as .wav and .mp3 (using the youtube-dl code for that format in video X or Y)
* The option to keep the original video (-k option in youtube-dl)

Does anyone here know youtube-dl and bash scripting enough to help me out? I'd rather not go to an all-Linux forum to post about this.

SOE


All times are GMT -6. The time now is 01:45 AM.