Register
Handmade Hero»Forums»Code»Downloading youtube videos from win32 command line
Mārtiņš Možeiko
1983 posts / 1 project
Downloading youtube videos from win32 command line
3 years, 11 months ago
If you can get them online, I'll share them using BitTorrent Sync. I could set up sftp server for you, if you need place where to put files. If your upload speed is not great, maybe we can do it differently - I could send you flash card by mail, you write everything to and send it back, and I'll put everything up in BTSync.

Let me know if you want to do this, send me an e-mail to [email protected]

As for those big files - you can easily cut off prestream from latest files. ffmpeg can do that without re-encoding: "ffmpeg -i input.mp4 -c copy -t 00:35:00.0 output.mp4" - that would copy only first 35 minutes. Only you'll need a bit of work here to find the time when prestream ends for each file.
Matt
6 posts
This newly registered member has not yet activated their account.
Downloading youtube videos from win32 command line
2 years, 7 months ago
Does anyone have a script that will download just audio ?
Mārtiņš Možeiko
1983 posts / 1 project
Downloading youtube videos from win32 command line
2 years, 7 months ago
youtube-dl will do that.
For example, to download AAC audio run:
1
youtube-dl -f 140 https://www.youtube.com/watch?v=xxx


Run youtube-dl -F https://... if you want to see other possible formats.
Matt
6 posts
This newly registered member has not yet activated their account.
Downloading youtube videos from win32 command line
2 years, 7 months ago
Thank you for your help. I may have overlooked it in the help file, but is there a parameter I can pass to download the files to a specific directory?
Mārtiņš Možeiko
1983 posts / 1 project
Downloading youtube videos from win32 command line
2 years, 7 months ago
It downloads to current folder. So simply "cd" to folder you want and then run youtube-dl.
Simon Anciaux
681 posts
Downloading youtube videos from win32 command line
2 years, 7 months ago
I don't remember the details but you can use -o FORMAT to output to a specific directory. Something like that:
1
youtube-dl.exe -o C:\some\directory\%%(title)s.%%(ext)s youtube_address
Sonia Ross
1 posts
Downloading youtube videos from win32 command line
2 years, 2 months ago Edited by Sonia Ross on Sept. 17, 2017, 1:21 p.m.
You can also take some online video downloader like convert2mp3, offliberty, keepvid that can download as Audio format(MP3, AC3, etc): http://www.videoconverterfactory.com/tips/sites-like-keepvid.html

Or take browser add-on like savefrom net helper: https://en.savefrom.net/user.php#download
These are easy to use.