Filmdownload mit youtube-dl

So lade ich Filme von der Webseite eines bekannten Privatsenders um sie auf einem Fernseher ohne Smartfunktion sehen zu können

Formate auswählen

$ youtube-dl -F 'https://PRIVATSENDER.URL/pfad/zum/video/name-des-films'
[privatsender] pfad/zum/video/video/name-des-films: Downloading webpage
[privatsender] 4711815: Downloading videos JSON
[privatsender] 4711815: Downloading protocols JSON
[privatsender] 4711815: Downloading urls JSON
[privatsender] 4711815: Downloading MPD manifest
[privatsender] 4711815: Downloading m3u8 information
[info] Available formats for 4711815:
format code         extension  resolution note
hls-audio0-default  mp4        audio only
dash-f1-a1-x3       m4a        audio only DASH audio   64k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-f2-a1-x3       m4a        audio only DASH audio   96k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-f3-a1-x3       m4a        audio only DASH audio  128k , m4a_dash container, mp4a.40.2 (48000Hz)
dash-f4-v1-x3       mp4        640x360    DASH video  350k , mp4_dash container, avc1.4d401e, 25fps, video only
hls-414             mp4        640x360     414k , avc1.4d401e, 25.0fps, video only
dash-f5-v1-x3       mp4        640x360    DASH video  500k , mp4_dash container, avc1.4d401e, 25fps, video only
hls-564             mp4        640x360     564k , avc1.4d401e, 25.0fps, video only
dash-f6-v1-x3       mp4        768x432    DASH video  850k , mp4_dash container, avc1.4d401e, 25fps, video only
hls-914             mp4        768x432     914k , avc1.4d401e, 25.0fps, video only
dash-f7-v1-x3       mp4        768x432    DASH video 1200k , mp4_dash container, avc1.4d401e, 25fps, video only
hls-1264            mp4        768x432    1264k , avc1.4d401e, 25.0fps, video only
progressive         mp4        unknown    (best)

Da ich den Film eh nur einmal schaue und die Qualität auf meinem Fernseher nicht die Beste ist, wähle ich hier meist ein kleines Format wie dash-f6-v1-x3. Für die Audioqualität wähle ich die Beste.

Laden

$ youtube.dl -f dash-f6-v1-x3+bestaudio 'https://PRIVATSENDER.URL/pfad/zum/video/video/name-des-films'
[privatsender] pfad/zum/video/video/name-des-films: Downloading webpage
[privatsender] 4711815: Downloading videos JSON
[privatsender] 4711815: Downloading protocols JSON
[privatsender] 4711815: Downloading urls JSON
[privatsender] 4711815: Downloading MPD manifest
[privatsender] 4711815: Downloading m3u8 information
[dashsegments] Total fragments: 934
[download] Destination: Film - Name des Films-4711815.mp4
[download] 100% of 270.10MiB in 02:03
[dashsegments] Total fragments: 450
[download] Destination: Film - Name des Films-4711815.m4a
[download] 100% of 42.07MiB in 00:48
[ffmpeg] Merging formats into "Film - Name des Films-4711815.mp4"
Deleting original file Film - Name des Films-4711815.mp4 (pass -k to keep)
Deleting original file Film - Name des Films-4711815.m4a (pass -k to keep)
[download] 100% of 566.89MiB in 03:43

Danach kopiere ich die Datei auf einen USB Stick oder auf mein NAS.

Kommentare