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 can I use multi functions in one page without change the URL using Django?

I'm trying to use Django to build my yt-dlp app, I want to create one page with had toggle list or multi buttons, when I use the first action on the toggle list or button the yt-dlp will download the video file or best quality the video, and when I…
0
votes
0 answers

How can I get m3u8 url by using a python code

I'm using a yt-dlp but sometimes the video couldn't download by the url of the video page, it needs the m3u8 url, I know that I can find the m3u8 in the browser inspect but I want to get it by using a Python code or library, to get more than m3u8…
0
votes
0 answers

How do I download section of video from same URL using yt-dlp (different start and end times) bash script

I am trying to download short portions from same youtube video URL but some how many videos are getting skipped from downloading as it was already downloaded. #!/bin/bash missing=false while IFS=, read -r url start_time_z end_time_z do if […
Yashodhan K
  • 83
  • 1
  • 5
0
votes
0 answers

How to convert webm to mp3 using external command youtube-dl?

Today i've got some issue when find all format in Json's files like this : { "title": "ホットハウス 宮本大路 和泉宏隆 HOT HOUSE JAZZ LIVE 2011/07/23", "formats": [ { "extension": "webm", "format_name": "249-0 - audio only (tiny)", "url":…
warstha
  • 13
  • 5
0
votes
0 answers

Is it possible running well in my Hosting use Youtube-DL (Python)?

i've some python code to convert audio/video like this : import os import json def extract_format_data(format_data:) extension = format_data["ext"] format_name = format_data["format"] url = format_data["url"] return { "extension": extension,…
warstha
  • 13
  • 5
0
votes
0 answers

yt-dlp : How can I have separate file format for playlists and single videos

I have an urls file where I store all links I want to download. I download from it using yt-dlp -a urls. For playlists I'd like to put videos into a folder, like it's shown in documentation examples, while for single videos I'd like to keep the…
Eir Nym
  • 1,515
  • 19
  • 30
0
votes
0 answers

How to download video from facebook comment using yt-dlp using python?

I am trying to download a public video posted in comment replying to another video post using yt-dlp. I opened the commented video by right clicking on date and opening it in new fb tab. Here is my code but it downloads the posted video not the…
0
votes
1 answer

"Invalid argument" While executing a command from python using subprocess

I want to execute a command from python. This is the original command: yt-dlp -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --downloader ffmpeg --downloader-args "ffmpeg_i:-ss 00:19:10.00 -to 00:19:40.00" --no-check-certificate…
Mehdi Souregi
  • 3,153
  • 5
  • 36
  • 53
0
votes
0 answers

PHP shell_exec not working with youtube-dl but the same command working fine on terminal

When I run the same command "youtube-dl -J https://youtu.be/xbYw_WhrlRc" in the windows terminal it works fine but in PHP it doesn't work. I am using laravel & I am not getting any errors while running the codes. But it doesn't return…
Debarshi Das
  • 49
  • 1
  • 9
0
votes
1 answer

Searching for multiple Youtube videos using yt-dlp in python

I'm trying to make a Discord bot in Python that plays Youtube videos as audios in a voice channel. Right now, my bot uses a combination using yt_dlp and youtube_search. It firstly uses youtube_search to get the URL of the video searched by keyword.…
Aza
  • 17
  • 1
  • 6
0
votes
2 answers

how do I skip a private video, with this python code

the Package how do I skip a private video with this code I tried the optons (rejecttitle ignore-errors) I looked at YoutubeDL.py at github for option and i have no access to the video is of a Playlist from __future__ import unicode_literals from…
0
votes
0 answers

How to prevent "yt-dlp" file from being overwritten while playing VRChat?

Windows 7 64bit on desktop (no headset) and with VIVE Pro 1 (headset) Context Everytime I enter a world in the game VRChat, videoplayers cause the "A youtube-dl fork with additional features and patches has stopped working" error. I've tried…
yarow12
  • 1
  • 1
0
votes
1 answer

How easy is it to create a YouTube to MP3 application using yt-dlp and ffmpeg?

I was thinking I could automate the process of downloading a video and converting it to mp3 (or other formats). Instead of doing the process myself (which doesn't take that long and isn't too much hassle), which looks something like this: • yt-dlp…
fowlis
  • 13
  • 2
0
votes
0 answers

Can't run help(yt_dlp.YoutubeDL) in python

I am trying to use yt_dlp on python, and wanting to check out all the function for yt_dlp.YoutubeDL. help(yt_dlp.YoutubeDL) just didn't work. Below is the error message: File "c:\Users\user\Desktop\youtube playlist…
work
  • 33
  • 1
  • 9
0
votes
1 answer

Problem in setting video thumbnail with ffmpeg

I'm trying to add thumbnail to a mkv video with the following command: ffmpeg -y -i video.mkv -i image.jpg -map 1 -map 0 -c copy -disposition:0 attached_pic out.mkv. However this command replaces all frames in the video with that image and no sound.…
Simran Marok
  • 707
  • 1
  • 5
  • 9