
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (46)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (7606)
-
Discord bot python : discord.errors.ClientException : ffmpeg was not found
14 septembre 2021, par S. KloreI'm trying to make a discord bot that plays music in a voice channel. It connects to the voice channel, but doesn't play anything. It also gives an error in the console.



I'm on Windows and I'm using the discord.py rewrite.



My code :



import discord, random, datetime, asyncio, nacl, ffmpeg

TOKEN = 'What token'

client = discord.Client()

@client.event
async def on_message(message):
if message.content.lower() == '$play':
 if message.content.lower() == '$play':
 channel = client.get_channel(547155964328149007)
 vc = await channel.connect()
 vc.play(discord.FFmpegPCMAudio('mp3.mp3'), after=lambda e: print('done', e))
 vc.is_playing()
 vc.pause()
 vc.resume()
 vc.stop()

@client.event
async def on_ready():
 print('Logged in as {0.user}'.format(client))

client.run(TOKEN)




The error :



Traceback (most recent call last):
 File "D:\Python35\lib\site-packages\discord\client.py", line 218, in _run_event
 await coro(*args, **kwargs)
 File "discord_bot.py", line 90, in on_message
 vc.play(discord.FFmpegPCMAudio('mp3.mp3'), after=lambda e: print('done', e))
 File "D:\Python35\lib\site-packages\discord\player.py", line 165, in __init__
 raise ClientException(executable + ' was not found.') from None
discord.errors.ClientException: ffmpeg was not found.




People seem to have a similar-ish issue with
ffmpeg/avconv was not found in your PATH environment variable
but the fix for them is to download ffmpeg from a website and put it in their PATH, but that doesn't work for me.


Further more I can only find fixes for my problem in JavaScript, while I'm coding the bot in Python 3.



Here are some links from my research :



You need to add FFmpeg to your path



A discord.js (JavaScript) fix for the same error



A fix for discord.py, NOT for discord.py REWRITE


-
Copy a file/directory recursively using CollectionFS/MeteorJS
12 janvier 2015, par TheBetterJORTI have recordings that are uncompressed coming from an RJ-44. The recordings are uncompressed wav’s. I’m trying to figure out a way in Meteor to move the WAV’s into a new directory and convert them to mp3 without user interaction. I tried with CollectionFS to no avail. I use meteor because I still want to be able to allow users to edit, convert and mix the audio. A user can upload the proper files and those files can be sent to the correct directories and converted.
Can anybody offer guidance ? Meteor is event driven and I understand the Client side, but the server side escapes me. Would I install simple cron, or exactly how do I move files with JS ?
Thank you.
-
fluent-ffmpeg audio filter not working, but works on CLI
24 avril 2022, par bevanbI'm trying to apply filters to audio using
fluent-ffmpeg
. It's mostly working. But when adding certain filters (such asasubcut
ortreble
) it produces the error below.

It seems like
fluent-ffmpeg
can't find those filters (when I try a bogus filter name, it gives me the exact same error message).

Any idea what's going on ?


const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);

async function test() {
 const command = ffmpeg();
 command.addInput("./tmp/test.mp3");
 command.withAudioFilters(['asubcut=cutoff=35:order=10:level=1']); // Other filters like "equalizer" work just fine.

 const fileOutputPath = "./tmp/mastered.mp3";
 await new Promise((resolve, reject) => {
 command
 .on('end', resolve)
 .save(fileOutputPath)
 });
}
test();



The CLI version works :

ffmpeg -i ./tmp/test.mp3 -af 'asubcut=cutoff=35:order=10:level=1' ./tmp/mastered.mp3


However, the fluent-ffmpeg version produces this error :


node:events:368
 throw er; // Unhandled 'error' event
 ^

 Error: ffmpeg exited with code 1: Error reinitializing filters!
 Failed to inject frame into filter network: Invalid argument
 Error while processing the decoded data for stream #0:0
 Conversion failed!

 at ChildProcess.<anonymous> (/Users/me/project/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
 at ChildProcess.emit (node:events:390:28)
 at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
 Emitted 'error' event on FfmpegCommand instance at:
 at emitEnd (/Users/me/project/node_modules/fluent-ffmpeg/lib/processor.js:424:16)
 at endCB (/Users/me/project/node_modules/fluent-ffmpeg/lib/processor.js:544:13)
 at handleExit (/Users/me/project/node_modules/fluent-ffmpeg/lib/processor.js:170:11)
 at Socket.<anonymous> (/Users/me/project/node_modules/fluent-ffmpeg/lib/processor.js:209:9)
 at Socket.emit (node:events:402:35)
 at Pipe.<anonymous> (node:net:687:12)
</anonymous></anonymous></anonymous>