
Recherche avancée
Médias (21)
-
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
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (108)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (12429)
-
lavfi/tonemap_opencl : reuse color matrix calculation from colorspace.c
22 janvier 2019, par Ruiling Song -
TypeError : 'FFmpegOpusAudio' object is not subscriptable
12 octobre 2022, par Virat ChauhanI am getting this error whenever I try to get the bot to play a song in vc :


await ctx.send('Now playing ' + '**' + str(queues[ctx.message.guild.id]['title'][0]) + '**')
TypeError: 'FFmpegOpusAudio' object is not subscriptable



Here is the relevant code :


async def playSong(self, ctx, url):
 queues[ctx.message.guild.id]['title'] = []
 with youtube_dl.YoutubeDL(self.YDL_OPTIONS) as ydl:
 info = ydl.extract_info(url, download=False)
 if 'entries' in info: # if no url is input
 url2 = info['entries'][0]['formats'][0]['url']
 queues[ctx.message.guild.id]['title'].append(info['entries'][0]['title'])
 elif 'formats' in info: # if url is passed
 url2 = info['formats'][0]['url']
 queues[ctx.message.guild.id]['title'].append(info['title'])
 #print(queues[ctx.message.guild.id]['title'][0])
 stream = await discord.FFmpegOpusAudio.from_probe(url2, **self.FFMPEG_OPTIONS)
 return stream
 
 @commands.command(name='play', help="Plays any song", aliases=['p'])
 async def play(self, ctx, *, url):
 vc = ctx.guild.voice_client
 if not vc.is_playing():
 guild = ctx.message.guild
 
 queues[guild.id] = {}
 stream = await self.playSong(ctx, url)
 queues[guild.id] = stream
 vc.play(stream, after=lambda e: self.queueCheck(guild.id, vc))
 await ctx.send('Now playing ' + '**' + str(queues[ctx.message.guild.id]['title'][0]) + '**')



I am aware that this can be solved with having two dictionaries but I wish to contain all data inside a single structure.


-
lavu/opencl : replace va_ext.h with standard name
23 novembre 2018, par Ruiling Songlavu/opencl : replace va_ext.h with standard name
Khronos OpenCL header (https://github.com/KhronosGroup/OpenCL-Headers)
uses cl_va_api_media_sharing_intel.h. And Intel's official OpenCL driver
for Intel GPU (https://github.com/intel/compute-runtime) was compiled
against Khronos OpenCL header. So it's better to align with Khronos.Signed-off-by : Ruiling Song <ruiling.song@intel.com>