
Recherche avancée
Médias (1)
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (73)
-
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (8468)
-
How to get best audio quality on music bot using discord.py ?
9 mai 2021, par user28606I've built a discord music bot in discord.py but for some reason, it doesn't play music in as high quality as Fredboat or Rythm(so I don't think voice chat's bitrate is the problem). I've tried a couple of things online.


The only thing that improved quality a little bit was downloading the song before playing it. But the quality was still far from anything like Fredboat's. It's also very impractical since downloading a 1h song takes a while and is space consuming.


I'm interested in how to fix this and the explanation for why this is happening.


This is the code we're currently using for the music bot :


from discord import FFmpegPCMAudio
import discord
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from apscheduler.triggers.cron import CronTrigger
from discord.ext import commands, tasks
from youtubesearchpython import VideosSearch

class cmd_music(commands.Cog, name="music_commands"):

 def __init__(self, bot):
 self.bot = bot
 self.music_queue = []
 self.scheduler = AsyncIOScheduler()
 self.scheduler.add_job(self.check_queue, CronTrigger(second="0,5,10,15,20,25,30,35,40,45,50,55"))
 self.scheduler.start()
 
 async def play_raw(self, voice_client):
 if not self.music_queue:
 return

 YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist':'True'}
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 if not voice_client.is_playing():
 with YoutubeDL(YDL_OPTIONS) as ydl:
 info = ydl.extract_info(self.music_queue.pop(0), download=False)
 URL = info['formats'][0]['url']
 voice_client.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))
 voice_client.is_playing()

 async def check_queue(self):
 if not self.bot.voice_clients: return
 
 client = self.bot.voice_clients[0]
 if not client.is_playing():
 if self.music_queue:
 await self.play_raw(client)
 
 
 @commands.command(brief="join")
 async def join(self, ctx):
 await ctx.author.voice.channel.connect()

 @commands.command(brief="leave")
 async def leave(self, ctx):
 await ctx.voice_client.disconnect()
 self.music_queue = []

 @commands.command(brief="play")
 async def play(self, ctx, *name):
 url = VideosSearch(" ".join(name[:]), 1).result().get("result")[0].get("link")
 self.music_queue.append(url)
 await ctx.send("Now playing: " + url)

 @commands.command(brief="skip")
 async def skip(self, ctx):
 await ctx.send("Skipped current song")
 ctx.voice_client.stop()
 if self.music_queue:
 await self.play_raw(ctx.voice_client)``` 



-
How to start music at a specific time
16 mars 2019, par INeed ADollarI want to start a song file at a specific time with ffmpeg in python and I don’t know if this is possible. I make a discord bot and I want to make a command about this. Thank you for any help !
-
avcodec/vaapi : increase av1 decode pool size
12 octobre 2021, par Fei Wangavcodec/vaapi : increase av1 decode pool size
For film grain clip, vaapi_av1 decoder will cache additional 8
surfaces that will be used to store frames which apply film grain.
So increase the pool size by plus 8 to avoid leak of surface.Signed-off-by : Fei Wang <fei.w.wang@intel.com>