Skip to content

youtube-dl#

The original youtube-dl project is dead. A fork called yt-dlp fork is alive.

Automatic naming and numbering episodes#

youtube-dl -o Title.S01E%(autonumber)02d.%(ext)s -f best url_1 url_2 url_n

Will output the following files: Title.S01E01.mp4, Title.S01E02.mp4 and Title.S01E03.mp4.

The autonumber start can be tweaked with the parameter --autonumber-start x where x is the starting episode number.

Get audio only#

youtube-dl -f bestaudio[ext=m4a] url

HLS#

--hls-prefer-native --hls-prefer-ffmpeg