
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (24)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (4936)
-
When using MoviePy to resize a video how do I know what bitrate to use to maintain quality when writing the new video to disk
4 juillet 2016, par MichaelExpanding on this question How To Resize a Video Clip Python about using MoviePy to resize a video.
When it comes time to write the resized video to disk
How do I select a bitrate value so there is as little loss of quality as possible ?The original video is 4.8M on disk and is
.mp4
Bit rate set when writing to disk
clip_resized.write_videofile(ResizedClip,bitrate="5000k")
Gives a file of 8.3MB in size
No bit rate set
clip_resized.write_videofile(ResizedClip)
Gives a file of 3.3MB
-
lavc/videotoolboxenc : Speed/Quality prioriry setting
1er mai 2022, par Simone Karin Lehmann -
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)```