Questions tagged [yt-dlp]

yt-dlp is a command-line program, written in Python, that lets you easily download videos and audio from more than a thousand websites. It is a youtube-dl fork based on the now inactive youtube-dlc.

100 questions
2
votes
2 answers

Set metadata based on the output filename in yt-dlp

I can extract audio from video: yt-dlp -x --audio-format vorbis --audio-quality 256k --embed-thumbnail -P ~/Music -o "John Doe - Cool song.%(ext)s" tubelink.kom Now, I would like to embed metadata based on the filename format output, possible? In…
Joel
  • 1,805
  • 1
  • 22
  • 22
1
vote
1 answer

Download YouTube video using Python, youtube-dlp and video/audio formats

I am writing a backend server in Flask that on demand uses youtube-dlp to provide users with the direct download link to audio and video formats (including audio). The code I wrote succeeds in generating and displaying all the links on screen, the…
jfranz
  • 13
  • 3
1
vote
0 answers

Discord bot not playing music and has a weird behavior (yt-dlp with python)

Here's the entire code: import discord from discord.ext import commands import yt_dlp class musicTest(commands.Cog): def __init__(self, client): self.client = client @commands.command() async def play(self, ctx, *url): …
Yen
  • 59
  • 5
1
vote
1 answer

Using yt-dlp to download Twitch clips and trying to retrieve informations regarding which game was played

I was able to download Twitch clips and entire VODs using this library as an embed code in my program written in Python. The download_clip function takes input from the link, which extracts the slug from the clip, rearranging the link used for the…
1
vote
1 answer

How to extract only audio from downloading video? Python yt-dlp

I need to download only audio from youtube video. For this I use the yt-dlp tool. In the console, I enter the following command, which downloads the audio as a .webm. I change the extension to .mp3 and everything works fine, it's a regular .mp3…
404
  • 13
  • 1
  • 4
1
vote
3 answers

Error: Unable to extract uploader id (yt-dlp Library)

I'm running yt-dlp in an iOS App, and 2 days ago they just fixed it because of a YouTube code change: https://github.com/yt-dlp/yt-dlp/issues/6247 The problem is that I already updated from the yt-dlp library file from the new…
Dani G.
  • 577
  • 8
  • 21
1
vote
1 answer

How to colorize output from bash command?

I've seen many similar questions, but none really works for me. I have a simple script that downloads latest 2 video episodes from one channel, so I can watch them later on mobile in offline mode. It uses yt-dlp command with -w switch not to…
DenisZ
  • 171
  • 1
  • 11
1
vote
0 answers

Unable to download private videos in yt-dlp

I have created .netrc then supplied the credentials as as advised in the format machine youtube login myawesomelogin password verycomplicatepass Is there something I need to do again? In downloading I typed: yt-dlp --netrc url
Moses
  • 1,391
  • 10
  • 25
1
vote
0 answers

How to process audio from Youtube live stream video using Python?

I have tried several methods to extract audio from live youtube stream video, but they didn't work. I have tried the following snippets. import youtube_dl import wave def process_audio(chunk): # Process the audio data in the chunk …
KHIZER
  • 21
  • 4
1
vote
1 answer

How to make a excel or a file containing title & thumbnail if possible of videos of a YouTube playlist?

Is it possible to make a list of title and thumbnail of videos of playlist? Then we can try to run macros or cronjob to automate it in regular basis. So I'm a newbie here. I've found out today that more than 25 of my fav videos are gone from YouTube…
1
vote
0 answers

yt-dl command to download audio files - in a python script

I want to convert this command into a python call: yt-dlp --continue --no-overwrites --extract-audio --audio-format mp3 -o "ST_%(upload_date)s_%(title).50s.%(ext)s" https://www.youtube.com/channel/UCYt3jqP4rRP2rr5Ye8fs0LQ/videos --playlist-reverse…
vishvAs vAsuki
  • 2,421
  • 2
  • 18
  • 19
1
vote
1 answer

How to download multiple formats using youtube-dl

$ youtube-dl -F --no-playlist https://youtu.be/LsdxvjLWkIY?list=PLeo1K3hjS3uu7CxAacxVndI4bE_o3BDtO [youtube:tab] Downloading just video LsdxvjLWkIY because of --no-playlist [youtube] LsdxvjLWkIY: Downloading webpage [youtube] Downloading just video…
Udesh
  • 2,415
  • 2
  • 22
  • 32
1
vote
1 answer

yt-dlp get audio only link -> ffmpeg piped audio -> ffplay

Ok, i have a perl script that i am trying to figure out why it is throwing an io error. First i use yt-dlg to get the link of only the audio - this works as expected and i can navigate to the link in a browser just fine. then i open a ffmpeg pipe in…
james28909
  • 554
  • 2
  • 9
  • 20
1
vote
0 answers

Process started by Process.Start does not terminate when stdout/stderr redirection is enabled

I'm starting a process with Process.Start: var psi = new ProcessStartInfo("yt-dlp.exe"){ ErrorDialog = false, CreateNoWindow = true, RedirectStandardError = true, RedirectStandardOutput = true, ArgumentList = { …
1
vote
0 answers

Is there any command in specific to record a part of a livestream that still is in transmission?

The livestream doesn't end (for now, and if ended, I think will be erased of YouTube, that's my reason to download), actually, the video is still in transmission, you know, like the streams of the NASA or streams of channels news. The detail is that…
sort35ofn
  • 11
  • 2