
Recherche avancée
Médias (3)
-
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
Autres articles (74)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (5489)
-
Converting multiple audio files in different subdirectories using ffmpeg
4 avril 2022, par Amartya Roy ChoudhuryI am trying to convert multiple .mp3 files stored in different folders to .wav file using ffmpeg. The .wav files will be stored in the folder where the .mp3 file is located


import os
folder = r'D:\S2ST_DataCollection-main\public\recordings' ##### root folder


count = 0
for dirname, dirs, files in os.walk(folder):
 for filename in files:
 filename_without_extension, extension = os.path.splitext(filename)
 if extension == '.mp3': ######## get all the mp3 files
 count +=1
 os.system(r"C:\Users\amart\Downloads\Compressed\S2ST_DataCollection-main\public\music.bat") ###### use the mp3 to wav conversion stored as batch file



My music.bat file


for %%a in ("*.mp3") do ffmpeg -i "%%a" -vn -c:a pcm_s16le -ar 44100 "%%~na.wav"



Note : I have used pydub but it is not working


If i use the batch command only in a folder it is working fine but my .mp3 files are located in multiple folder


Any kind of help would be greatly appreciated


-
discord.errors.ClientException : C :/ffmpeg/bin/ffmpeg was not found
31 octobre 2020, par OutStrikeI'm trying to create a music bot for my discord. All I want right now is for my discord bot to play a music clip. I've found no solutions at all.


@commands.command()
async def play(self, ctx, url):
 channel = ctx.author.voice.channel
 channel = await channel.connect()
 guild = ctx.guild
 voice_client: discord.VoiceClient = discord.utils.get(self.bot.voice_clients, guild=guild)
 audio_source = discord.FFmpegPCMAudio(executable="C:/ffmpeg/bin/ffmpeg", source="alex_sus.mp3")
 if not voice_client.is_playing():
 voice_client.play(audio_source, after=None)



This is exactly my code but I get the error :


discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: C:/ffmpeg/bin/ffmpeg was not found.



The file is most definitely in the location I specified and I put ffmpeg into my env path. I've followed every instruction when installing ffmpeg, but nothing I do works. I just want to note that ffmpeg is on my C drive, while the code is on my D drive. Idk if this makes a difference or not.


-
discord.py 0pusError:Invalid Argument M1 Pro Macbook
16 juin 2022, par xuo

Traceback (most recent call last):
 File "/opt/homebrew/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
 ret = await coro(*args, **kwargs)
 File "/Users/xuo/Desktop/coding stuff/musicbot/music.py", line 158, in play
 await self.play_song(ctx, song) #involes player
 File "/Users/xuo/Desktop/coding stuff/musicbot/music.py", line 47, in play_song
 ctx.voice_client.play(discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(url)), after=lambda error: self.bot.loop.create_task(self.check_queue(ctx)))
 File "/opt/homebrew/lib/python3.9/site-packages/discord/voice_client.py", line 564, in play
 self.encoder = opus.Encoder()
 File "/opt/homebrew/lib/python3.9/site-packages/discord/opus.py", line 290, in __init__
 self.set_bitrate(128)
 File "/opt/homebrew/lib/python3.9/site-packages/discord/opus.py", line 308, in set_bitrate
 _lib.opus_encoder_ctl(self._state, CTL_SET_BITRATE, kbps * 1024)
 File "/opt/homebrew/lib/python3.9/site-packages/discord/opus.py", line 92, in _err_lt
 raise OpusError(result)
discord.opus.OpusError: invalid argument

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
 File "/opt/homebrew/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
 await ctx.command.invoke(ctx)
 File "/opt/homebrew/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
 await injected(*ctx.args, **ctx.kwargs)
 File "/opt/homebrew/lib/python3.9/site-packages/discord/ext/commands/core.py", line 94, in wrapped
 raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: OpusError: invalid argument