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

Byte Range Request not working on iOS Safari

I tried to get audio-only youtube video with ytdl-core module and stream it with express node.js, it work for all browser except safari (iOS safari). I did use byte-range response but still got errors. here server-side…
PtruckStar
  • 21
  • 1
2
votes
0 answers

issue with ffmpeg (not loading song?) - ffmpeg stream: write EPIPE

issue: with some songs that i play through the StreamDispatcher from the discord.js module (seems to be ones that have silences at the beginning), the dispatcher will almost immediately finish and throw an error. i use the ffmpeg-static module. from…
super
  • 21
  • 1
2
votes
1 answer

Cannot find module 'http' or its corresponding type declarations while I try include ytdl-core

I download ytdl-core for angular project running npm install ytdl-core --save (https://www.npmjs.com/package/ytdl-core). For use this module I do: import ytdl from 'ytdl-core'; ytdl(url); When I launch angular app it show the next message: ERROR…
2
votes
0 answers

Playing readable stream into microphone - Puppeteer

Is it possible to use a readable stream as a microphone input in puppeteer? (A npm module that allows you to control an instance of Chromium)
user12870226
2
votes
2 answers

Discord bot not joining the voice channel i'm in

I'm trying to code my own music bot but it is not joining the voice channel where I'm in. Everything else is working fine. I think that I should install a specific thing using npm but I don't know if that's right or not, i'm not sure so can…
Kawaki
  • 77
  • 6
1
vote
1 answer

Problem settingup a play command for my discord bot (music) ['Error: FFmpeg/avconv not found!']

Im new to programing a discord bot, im more to the web developing enviroment, im trying to create by myself a play command song (only with one link) to try if the first join is working and actually play the song. (Discord.js v14) Unfortunately i was…
TitanFrex
  • 11
  • 2
1
vote
0 answers

How can I use the generated urls with the client's ip? Is that even possible?

one of 'ytdl.getInfo()' properties is formats which every format has generated url That URL can be used only in the server because it's linked with server IP. YouTube Downloading Websites generate URLs like this but with my IP. Can I generate the…
Patrick
  • 51
  • 5
1
vote
0 answers

FFmpeg video has an excessively long duration

When using ytdl-core and ffmpeg-static to download high quality youtube videos, the output video is supposedly thousands of hours long, which makes it not let me advance the video in a media player. The error only occurs in windows 10 players. In…
daraem
  • 11
  • 1
1
vote
0 answers

How do ffmpeg child processes differ on windows and linux? ytdl

This class method works on linux but does not work on windows. Why is that? ytdl is a node module called ytdl-core. This is almost line for line what they used in their…
eaglehuntt
  • 53
  • 6
1
vote
1 answer

ytdl-core latest version : Uncaught SyntaxError evalmachine.:25

I don't know why I have this error because two days before update the module, it was perfectly working... For exemple here is a function that plays music on discord : async function play(args) { const connection = joinVoiceChannel({ channelId:…
Omegamax
  • 11
  • 1
1
vote
0 answers

How can I download a yt video by opening a file save dialog?

I'm trying to make a yt video downloader as a website, and i want to prompt the user on where to save the video to be downloaded, just like how we download a resource from a website normally. i'm trying to find js libraries to work with. As of now i…
starlight
  • 11
  • 2
1
vote
0 answers

Is there a way to return a readablestream as a response in sveltekit

In my app (downloads user generated sounds from youtube and plays them) I'm using ytdl to download the sounds to the client and play them. i am unable to return the readablestream from ytdl as a response. this is my current code const readstream…
mavdotjs
  • 65
  • 6
1
vote
0 answers

Don't Able To Download Video using ytdl-core, express and nextjs

I am trying to download youtube video using ytdl-core. I made simple express server for backend and made frontend UI with nextjs. From my nextjs app, I made a post request to express server using axios. Axios.post("http://localhost:3030/ytdonwload",…
Ever Loser
  • 69
  • 1
  • 6
1
vote
0 answers

Cannot merge audio and video streams from ytdl-core

I am trying to merge ytdl-core video only and audio only streams and sending the merged stream are response to user (for download in browser). With JavaScript only, its working perfectly fine. But typeScript is saying child process stdio is…
1
vote
0 answers

YTDL-CORE is not downloading and even not getting video's info

I was working with ytdl-core. It was working fine but suddenly it stops working. It is behaving like something is wrong in code but I did not make any change in the code. First it gives me the error as follows download api called…
1
2
3
9 10