Truth Matters! Index

A Judaizing Christian Anti-Romanizing Protestant Forum

You are not logged in.

Announcement

"I mock only with my feeble mockery, so that those who live now, AND THOSE WHO COME AFTER US, SHALL KNOW WHAT I HAVE THOUGHT ABOUT THE POPE, THE ACCURSED ANTICHRIST, and so that anyone who wishes to be a Christian can be WARNED AGAINST SUCH AN ABOMINATION." - Martin Luther 1545 - Against the Papacy in Rome, founded by the Devil, page 16.

#1 2024-12-28 00:46:24

Darkijah
Admin
From: Danmark
Registered: 2021-10-13
Posts: 43
Website
LinuxOpera 114.0

YT-DLP (Download Youtube Video's)

# # # # YT-DLP # # # # sudo apt-get install yt-dlp
http://github.com/yt-dlp/yt-dlp
http://github.com/yt-dlp/



bv=BestVideo [ext=mp4][height<=720] up to 720p.
ba=BestAudio [ext=m4a] get best audio.
-o "%(upload_date>%Y.%m.%d)s - %(title)s [%(height)sp].%(ext)s"
Read up on "Output Templates" for naming the file:
https://github.com/yt-dlp/yt-dlp?tab=re … t-template
https://github.com/yt-dlp/yt-dlp?tab=re … e-examples

For YouTube:
yt-dlp -f "bv*[ext=mp4][height<=720]+ba[ext=m4a]" -o "%(title)s [%(height)sp].%(ext)s" --sleep-interval 15 "https://www.youtube.com/watch?v=QoDTPeG8Vzc" "https://www.youtube.com/watch?v=8SwTpt6NZ_4"


yt-dlp -f "b" "https://www.bitchute.com/video/5Ho7eHT7V32R/"

yt-dlp -f "b" "https://www.aparat.com/v/n7Rjy"



OK, here's a start:
yt-dlp --no-overwrites --ignore-errors --compat-options filename-sanitization --write-info-json --no-clean-info-json
--no-write-playlist-metafiles --write-description --write-thumbnail --convert-thumbnails 'webp>jpg' --all-subs --abort-on-unavailable-fragment
--sleep-interval 10 -f "bv*[ext=mp4]+ba[ext=m4a]" -o "%(upload_date>%Y.%m.%d)s - %(title)s.%(ext)s" "https://www.youtube.com/playlist?list=P … hvZ31diUh8"

Explanation:
--no-overwrites - Do not overwrite existing files which have the same filename. Just skip them
--ignore-errors - Don't stop downloading a list of videos when one video encounters an error
--compat-options filename-sanitization - Make the filename Windows-friendly (ie no special characters like ?/) and do NOT use substitute characters for special characters
--sleep-interval 10 - Sleep for a bit between file downloads (in order to avoid hammering the Youtube servers, and in so doing incurring an IP ban).
-S res:1080,fps,ext:mp4:m4a,vcodec:h264 - When sorting video formats, order it as follows: first preference to resolution 1080p, highest FPS, MP4 formats for video, M4A formats for audio, h264 Video codec
`-f "bv[ext=mp4]+ba[ext=m4a]" - Download the best available video in MP4 format, and the best audio in M4A format, merge them. If separate formats are not available, download the best MP4 video with audio.
-o "%(upload_date>%Y.%m.%d)s - %(title)s.%(ext)s"` - Name the file using the following convention:
             [Upload date] - [Video Title].[Extension]
       for example:
             2013.05.22 - Belinda Carlisle - Heaven Is A Place On Earth (Official HD Music Video).mp4

Regarding the format selection, what I gave earlier on was:
-f "bv*[ext=mp4]+ba[ext=m4a]"

What I use myself is:
-f "((bv*[protocol*=dash]/bv*[protocol=https])[ext=mp4]/bv*[ext=mp4])+ba[ext=m4a]"
Explanation:
bv*[protocol*=dash]/bv*[protocol=https] - Prioritize dash format over https format. This is because dash format tends to be faster and more readily available in most cases. It reduces the number incomplete downloads.
[ext=mp4] - ONLY download MP4 format for all dash/https formats
bv*[ext=mp4])+ba[ext=m4a] - If the above-mentioned dash or https formats are not available, download the next best pair of video and audio files. bv* means that if separate video/audio streams aren't available, then download the best available video containing both video and audio.

Here is what I use to select formats. It downloads h264-encoded MP4 formats, which work best in general with all media players:
-S "res:1080,fps,ext:mp4:m4a,vcodec:h264" -f "((bv*[protocol*=dash]/bv*[protocol=https])[ext=mp4]/bv*[ext=mp4])+ba[ext=m4a]"
Of course, you can change res:1080 to res:720 since you prefer 720p.




Remove the option string for -f. Just use -f b
Bitchute doesn’t have all sorts of fancy formats. It’s just one video file with the audio merged. Maybe now there are more formats, but they will be simple video files containing audio. Nothing like DASH, HLS and all that.



yt-dlp "https://aspb3.cdn.asset.aparat.com/apar … qVSe47cEWw"



There's no 720p for this. Use this command to get a listing of all available formats:
yt-dlp -F "https://www.youtube.com/watch?v=QoDTPeG8Vzc"


Dearly regards - Brother, Disciple and Child of Jehovah - Darkijah
May Jehovah bless you, Jayshua, be by you a most precious pearl, and their Spirit of Truth in us All, Amayn!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB 1.5.11
Modified by Visman

[ Generated in 0.027 seconds, 11 queries executed - Memory usage: 1.55 MiB (Peak: 1.75 MiB) ]