Handmade Hero»Forums»Code
Mārtiņš Možeiko
2559 posts / 2 projects
Downloading youtube videos from win32 command line
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
Does anyone have a script that will download just audio ?
Mārtiņš Možeiko
2559 posts / 2 projects
Downloading youtube videos from win32 command line
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
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
2559 posts / 2 projects
Downloading youtube videos from win32 command line
It downloads to current folder. So simply "cd" to folder you want and then run youtube-dl.
Simon Anciaux
1337 posts
Downloading youtube videos from win32 command line
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
Edited by Sonia Ross on
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.