Tag: YOUTUBE-DL
Entonces, estoy utilizando FFmpeg para descargar un flujo m3u8. Para optimización, intenté ejecutar FFmpeg directamente en lugar de usarlo con youtube-dl. Pero por alguna razón, ffmpeg.exe utiliza 140 MB de memoria, mientras que ffmpeg.exe a través de youtube-dl utiliza solo 14 MB de memoria. Entonces tengo dos preguntas: ¿Existe alguna . . . Read more
He estado tratando de hacer que esta parte de mi código funcione durante aproximadamente 2 días hasta ahora. He intentado buscar problemas similares pero ninguna de las respuestas funcionó. @commands.command() async def play(self, ctx, url): ctx.voice_client.stop() FFMPEG_OPTIONS = {‘before_options’: ‘-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5’, ‘options’: ‘vn’} YDL_OPTIONS = {‘format’: . . . Read more
import youtube_dl client = commands.Bot(command_prefix = ‘!’, intents = discord.Intents.all()) class music(commands.Cog): def __init__(self , client): self.client = client @commands.command() async def play(self, ctx ,url): ctx.voice_client.stop() FFPEG_OPTIONS = {‘before_options’: ‘-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5’, ‘options’: ‘-vn’} YDL_OPTIONS = {‘format’:’bestaudio’, ‘default-search’: “ytdlsearch”} vc = ctx.voice_client with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl: info . . . Read more
Estoy creando un bot de música de Discord en Python y todo funciona bien cuando ejecuto el bot en mi computadora, pero cuando lo ejecuto a través de Replit.com devuelve un error. Traceback (most recent call last): File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py”, line 939, in invoke await ctx.command.invoke(ctx) File “/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py”, line 863, in . . . Read more
Estoy utilizando Python 3.8 en MacOS Big Sur. He instalado el paquete de módulo de Python para youtube-dl con el siguiente comando: pip3 install -upgrade youtube-dl Quería hacer un procesamiento posterior en el contenido descargado, así que instalé los paquetes de Python ffprobe y ffmpeg con los siguientes comandos: pip3 . . . Read more