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
0
votes
0 answers

How to use cookie files in YouTubeDLSharp?

As the title, I have checked the readme file of GitHub, and then I wrote the following code: YoutubeDL ytdl = new YoutubeDL(); string ytdlp = fileDirectory + "\\yt-dlp.exe"; string ffmpeg = fileDirectory + "\\ffmpeg.exe"; ytdl.YoutubeDLPath =…
0
votes
0 answers

Play Youtube in VLC with yt-dlp.exe (no ads) -- context menu in Firefox

I want to preface that I have asked many questions already and have consulted developer.mozilla.org and tried even openAI This is my first project and please be patient with me. I have already used a simple bat script to play URLs with the…
0
votes
0 answers

title is duplicated in metadata when using --replace-in-metadata

I am writing a Python script which reads a CSV file containing video URLs + plus certain metadata fields I want to specify manually, and downloads the MP3s from those videos and sets the metadata fields. I want the script to insert the "Title" value…
wolfcat
  • 1
  • 2
0
votes
0 answers

Gstreamer: Seek does not always work with playbin

I have three very similar videos, but seek does not work with one of them. I'm trying to understand why so I can fix it. The problem can be demonstrated using the following short piece of code. #include #include #include…
0
votes
2 answers

discord bot missing 1 required keyword-only argument?

for some reason , the bot does not see the query argument , although in theory it is passed from the list ps:im making a music bot error: File "C:\Users\pc\Desktop\Bot\Mbot\Bot.py", line 77, in play await play_music(last_item) …
0
votes
0 answers

Downloading a sectIon of a video using python

Why would this command run as expected in the command line, downloading only the specified part of the video, but using the python library of yt-dlp it would download the whole video instead?? yt-dlp https://www.youtube.com/watch?v=MtN1YnoL46Q …
JohnnySmith88
  • 162
  • 1
  • 10
0
votes
1 answer

How can i get the download link using yt-dlp

this java code will download the youtube video direct to the selectedDirectory. i am trying to figure out if it is possible to get instead a download link print it out. if i paste this link to a browser it will ask me where to save it then it will…
Majed
  • 1
0
votes
0 answers

How can download the resource whose url contains special characters "#!"?

I want to download the resource whose url contains special characters "#!" ? yt-dlp "https://d.tube/#!/v/mes/jjyzkes4zes" bash: !/v/mes/jjyzkes4zes: event not found Use single quote: yt-dlp 'https://d.tube/#!/v/mes/jjyzkes4zes' [DTube] Extracting…
showkey
  • 482
  • 42
  • 140
  • 295
0
votes
1 answer

yt-dlp error "Output file does not contain any stream"

I made a discord music bot, it was working perfectly fine until something happened with youtube_dl and it fails streaming a video with the error "Unable to extract uploader id". I decided to use yt-dlp instead. But now when i try to play a video it…
0
votes
1 answer

YT-DLP Return Format (m3u8)

I have a website that runs on node.js and express on the back end that in turn calls .py script to download a user-requested audio using yt-dlp. When I run the website on the localhost, everything runs perfectly, and I get a .mp4 downloadable url…
0
votes
0 answers

yt-dlp pass multiple urls in one query

I'm using yt-dlp to parse youtube video info with yt_dlp.extract_info(url). But yt_dlp.extract_info(url) takes only one url per query. I'm tried to implement it like this, but getting TypeError: expected string or bytes-like object with…
Drakosha
  • 1
  • 1
0
votes
2 answers

Manually write a specific artist name to metadata with yt-dlp in Python

I'm trying to download a song from YouTube and write the artist's name to the metadata. embed-metadata takes care of this most of the time, but in some cases, the uploader isn't the same as the artist. import yt_dlp def download(song, url): …
0
votes
0 answers

Python reading current download status from yt-dlp running in subprocess without waiting until process would be completed

I need some help with checking current download progress with yt-dlp being run in separate process (by using subprocess) without halting main program. I have decided to use subprocess, because I would like to run up to 3 (or more) downloads a time.…
CrocoComp
  • 11
  • 3
0
votes
0 answers

How to extract all available formats for a video, select a particular format and download it using yt-dlp in python?

I need to pass the YouTube video url and need to get all the available download format of that video. (I'm achieving this using the ydlp.extract_info(url, download=False) method.) Then from the all available formats, I need to filter and select a…
rangarajan
  • 143
  • 5
  • 17
0
votes
1 answer

yt-dlp - UnicodeEncodeError

I get the error below on my windows 10 when I try to extract audio that has none ASCII characters using yt-dlp. return codecs.charmap_encode(input,self.errors,encoding_table)[0] …