UP | HOME

Download YouTube videos in high quality using youtube-dl

This works with the command youtube-dl. The quality is indicated by 137+140. 137+140 means full HD quality (1080p)

#!/bin/bash

while [ 1 ]; do
	for FILE in $(ls queue); do
		echo $FILE
		UUID=$(cat /proc/sys/kernel/random/uuid)
		mv queue/$FILE processed/$UUID
		for URL in $(cat processed/$UUID); do
			echo $URL
			youtube-dl -f 137+140 "$URL"
		done
	done
	echo "Warte"
	sleep 15
done

To get a list of all possible formats for a video, instead of the parameter -f just write -F (stand-alone, without format specification!)

youtube-dl can also download entire playlists from Youtube! If you want to start from a certain position, the parameter --playlist-start can be used.




Home - Sitemap - Privacy-policy/Impressum

Coypright 2024 by Andreas Wittmann
All rights reserved