Download videos using youtube-dl and Termux
Posted: 24 Apr 2019 09:34
I got inspired by a recent Tasker project (which was only limited for Youtube only) and created this flow.
This one will work with all sites supported by youtube-dl.
Prerequisites:
Termux
Termux:Task
Termux:API
All of them available from F-Droid freely.
Setup:
Video/audio will be saved to "/storage/emulated/0/youtube-dl"
When you select a format which have only video container then youtube-dl will download best available audio for that video and merge then with ffmpeg.
Flow and youtube-dl.sh
http://automagic4android.com/forum/down ... hp?id=1892
This one will work with all sites supported by youtube-dl.
Prerequisites:
Termux
Termux:Task
Termux:API
All of them available from F-Droid freely.
Setup:
- Install all above mentioned apps.
- Copy youtube-dl.sh to root of your internal storage (/storage/emulated/0)
- Open Termux
- Run following command one by one (else you may run into error)
Code: Select all
termux-setup-storage mkdir -p .termux/tasker cp /storage/emulated/0/youtube-dl.sh ~/.termux/tasker/ chmod 755 ~/.termux/tasker/youtube-dl.sh mkdir /data/data/com.termux/files/home/storage/shared/youtube-dl
- Import flow to Automagic
- Execute "Install/update youtube-dl" flow. It will install python, ffmpeg and youtube-dl in Termux. You can use this flow to update them whenever new builds of youtube-dl releases.
Video/audio will be saved to "/storage/emulated/0/youtube-dl"
When you select a format which have only video container then youtube-dl will download best available audio for that video and merge then with ffmpeg.
Flow and youtube-dl.sh
http://automagic4android.com/forum/down ... hp?id=1892