
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (41)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (8196)
-
3rd W3C Web and TV Workshop, Hollywood
29 septembre 2011, par silviaCurious about any new requirements that the TV community may have for HTML5 video, I attended the W3C Web and TV Workshop in Hollywood last week. It’s already the third of its kind and was also the largest to date showing an increasing interest of the TV community to converge with the Web (...)
-
C# (discord music bot) Youtube to mp3 api with ffmpeg
4 octobre 2017, par Greg VaradiOk, so i have made a discord music bot before with youtube-dl in C#. But I don’t like it because it’s very slow. It has to download the song and then stream it using ffmpeg to discord. I don’t know but I think there is a quicker way.
So, i decided to use a youtube to mp3 api to get a mp3 as quick as possible, but it won’t work. I mean I found an api that worked, but it’s the worst api I ever seen. This is the api : http://www.convertmp3.io/api/ . Sometimes doesn’t give the mp3, just a link to a download page that doesn’t work.
I’m still searching for an api. Last time I found this :
http://www.yt-mp3.com/fetch?v=VIDEO-ID&apikey=1234567
This is for me the best. But ffmpeg doesn’t recognize the mp3. And I don’t know why because I can’t see any difference beetween them. Of course it’s probably something different but I can’t see what. And I don’t even know that ffmpeg will recognize any of these api’s mp3 files, but it’s working with this convertmp3.io api.So, my question is, is there someone who did something like this or someone who can give me advice ?
By the way, I want something that is as quick as oxyl- or hime bot. And I know that using apis for getting mp3 from youtube videos is not by all means the most legal thing, because the copyright and stuff, but yeah... This is the only way, I think.
-
discord bot music with youtube dl not stuck at webpage downloading
22 septembre 2021, par patricebailey1998So I'm trying to make a music bot which just joins,plays,stops and resume music. However my bot can join and leave a voice channel fine, however when i do my /play command it get stuck on
[youtube] oCveByMXd_0: Downloading webpage
(this is output in vscode) and then does nothing after. I put some print statement (which you can see in the code below and it prints 1 and 2 but NOT 3). Anyone had this issue ?

MUSIC BOT FILE


import discord
from discord.ext import commands
import youtube_dl

class music(commands.Cog):
 def __init__(self, bot):
 self.bot = bot
 
 @commands.command()
 async def join(self, ctx):
 if(ctx.author.voice is None):
 await ctx.reply("*You're not in a voice channel.*")
 voiceChannel = ctx.author.voice.channel
 if(ctx.voice_client is None): # if bot is not in voice channel
 await voiceChannel.connect()
 else: # bot is in voice channel move it to new one
 await ctx.voice_client.move_to(voiceChannel)

 @commands.command()
 async def leave(self, ctx):
 await ctx.voice_client.disconnect()
 
 @commands.command()
 async def play(self,ctx, url:str = None):
 if(url == None):
 await ctx.reply("*Check your arguments!*\n```/play VIDEO_URL```")
 else:
 ctx.voice_client.stop() # stop current song
 
 # FFMPEG handle streaming in discord, and has some standard options we need to include
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 YTDL_OPTIONS = {"format":"bestaudio"}
 vc = ctx.voice_client
 
 # Create stream to play audio and then stream directly into vc
 with youtube_dl.YoutubeDL(YTDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)
 print("1")
 url2 = info["formats"][0]["url"]
 print("2")
 source = await discord.FFmpegOpusAudio.from_probe(url2,FFMPEG_OPTIONS)
 print("3")
 vc.play(source) # play the audio
 await ctx.send(f"*Playing {info['title']} -* ퟎ