Questions tagged [ytdl]

ytdl-core is a YouTube downloading module. Written with only Javascript and a node-friendly streaming interface. Use this tag for questions about the usage of ytdl-core

ytdl-core is a YouTube downloading module. Written with only Javascript and a node-friendly streaming interface.

YouTube is an American online video-sharing platform

145 questions
4
votes
2 answers

yt-dlp 'rate-limit' not throttiling speed in Python script

I have implemented yt-dlp as part of my Python script, it works well, but I am unable to get the rate-limit feature to work. If you run the same command from the CLI the rate is limited correctly, is anyone able to tell me the correct syntax? I have…
crawf
  • 75
  • 6
4
votes
1 answer

I am getting 404 error on ytdl-core package

When I try to pull a music from YouTube in ytdl-core, I get a 404 error on the console. This error comes from the miniget package. ytdl-core is using miniget. Code: ytdl("https://www.youtube.com/watch?v=" + stream.id); Console: (node:16438)…
fir4tozden
  • 63
  • 6
4
votes
1 answer

Discord Music Bot joins voice channel, light up green but didnt has any audio. Worked well for 2 weeks before. No errors in console

I coded a bot with node.js. I used the example by Crawl for his music bot. I did everything similar to him. After I finished my build everything worked. Every other command and the play command. But now after 2 weeks the bot joins the voice channel,…
FeX
  • 41
  • 3
3
votes
1 answer

Nextjs 13 api route with ytdl-core

Been playing around trying to get a simple youtube downloader working with ytdl-core & nextjs. I have an onClick handler, making a call to the api. const onClick = async () => { await fetch("/api") .then(async (res: any) => { const…
3
votes
0 answers

discord.py music bot slowing down for longer audio queries

So I'm trying to make a music bot with discord.py. Shown below is a minimum working example of the bot with the problematic functions: import os import discord from discord.ext import commands from discord import player as p import yt_dlp as…
Bobluge
  • 31
  • 1
  • 3
3
votes
1 answer

I get too often the HTTP error 403 Forbidden using discord.py and ytdl

I built a discord bot using ytdl, it works fine but randomly, I get this error and I can't figure out the cause: (I truncated the link with ... because it was too long) [https @ 000001ead63ee980] HTTP error 403…
C-Gian
  • 62
  • 2
  • 19
3
votes
2 answers

Node.js merge audio and video streams and pipe it to the client

I am working with ytdl-core library and it cannot download high quality videos with audio included because youtube has them in sperate files. Therefore, I need to download audio and video seperately then merge them using ffmpeg. An example of this…
nick
  • 367
  • 3
  • 15
2
votes
2 answers

SyntaxError: Missing catch or finally after try with ytdl-core

My code was working a few days ago. I haven't changed anything and now get this error. I have no idea where to even begin or where it's coming…
2
votes
1 answer

How to download entire youtube playlist with embedded chapter information on ytdl / ytdlp?

I use this to download individual files with chapter information. ▶️ yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" -o "%USERPROFILE%\Desktop\%(title)s-%(id)s.%(ext)s" --embed-chapters https://www.youtube.com/watch?v= I tried doing…
Good Boy
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

Discord.js music bot stops playing

My discord.js music bot randomly stops playing music. Here's the error report: Emitted 'error' event on B instance at: at OggDemuxer.t (/Users/myName/Bot/node_modules/@discordjs/voice/dist/index.js:8:288) It says the error type is an "ECONNRESET"…
NewCoder
  • 21
  • 3
2
votes
1 answer

Merge audio with video stream Node.js

I'm creating YouTube video downloader and I'm working with ytdl-core library and it cannot download high quality videos with audio, because youtube has it in another files, but I need to download it all in one file. I already did…
2
votes
0 answers

"MinigetError: Status code: 410" when trying to download a video with ytdl (discord.js v13)

Since today I have a problem with ytdl (all code was working fine a few days ago), I think it's because of the ytdl update, here is the error: MinigetError: Status code: 410 at ClientRequest.
Konixy
  • 41
  • 5
2
votes
0 answers

Why does My Discord bot stop playing music

So My Discord bot will be able to play music for a while then it will stop and i have to restart the bot to fix it. And if it stopped then i use command skip it will crash the bot with the errors below C:\Users\User\Desktop\Discord…
Konglnwza
  • 21
  • 2
2
votes
2 answers

Error: Output stream closed when trying to stream to express server using ffmpeg

I'm getting to stream ytdl audio to my express server using ffmpeg but I'm always getting "Output stream closed" there's my code const express = require('express') const ffmpeg = require('fluent-ffmpeg') const ytdl = require('ytdl-core') const app…
2
votes
0 answers

fluent-ffmpeg typeError when trying to saveFile

I'm trying to save a YouTube video using ytdl and pass it with a stream using .pipe() to save it using a stream. No matter what I do I always get the error below. I have already tried to use .saveToFile() and .save() inside of .pipe(). (node:1)…
1
2 3
9 10