
Recherche avancée
Autres articles (99)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (8762)
-
Error after installing ffmpeg in replit for nodeJs discord bot
22 octobre 2023, par NewbieMFI want to host my discord music bot, before hosting the bot it worked perfectly, but when I hosted it on Replit an error occurred FFmpeg/avconv not found !.
I followed what users on the internet said by adding pkgs.ffmpeg.bin to replit.nix
When I tried again to use the music bot, an error appeared like this :


An error encountered: PlayingError: Error: Cannot find module '/home/runner/parrhesbot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node'
Require stack:
/home/runner/parrhesbot/node_modules/@discordjs/opus/lib/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/util/loader.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/Opus.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/index.js
/home/runner/parrhesbot/node_modules/@discordjs/voice/dist/index.js
/home/runner/parrhesbot/node_modules/distube/dist/index.js
/home/runner/parrhesbot/bot.js
/home/runner/parrhesbot/index.js
Error: Cannot find module 'node-opus'
Require stack:
/home/runner/parrhesbot/node_modules/prism-media/src/util/loader.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/Opus.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/index.js
/home/runner/parrhesbot/node_modules/@discordjs/voice/dist/index.js
/home/runner/parrhesbot/node_modules/distube/dist/index.js
/home/runner/parrhesbot/bot.js
/home/runner/parrhesbot/index.js
Error: Cannot find module 'opusscript'
Require stack:
/home/runner/parrhesbot/node_modules/prism-media/src/util/loader.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/Opus.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/index.js
/home/runner/parrhesbot/node_modules/@discordjs/voice/dist/index.js
/home/runner/parrhesbot/node_modules/distube/dist/index.js
/home/runner/parrhesbot/bot.js
/home/runner/parrhesbot/index.js
Id: EfACVChwxnI



How can my Discord music bot run normally like before hosting ?


-
ffmpeg / avconv error while using a discord bot slash cmd
30 novembre 2022, par Ema RCode


const {
 SlashCommandBuilder,
 PermissionFlagsBits,
 PermissionsBitField,
 EmbedBuilder,
 } = require("discord.js");

 const { generateDependencyReport, AudioPlayerStatus, joinVoiceChannel, createAudioPlayer, createAudioResource } = require('@discordjs/voice'); 
 const googleTTS = require("google-tts-api");

module.exports = {
 data: new SlashCommandBuilder()
 .setName(`tts`)
 .setDescription(`Fai ripetere al bot un messaggio in un canale vocale`)
 .addStringOption((option) =>
 option
 .setName("messaggio")
 .setDescription("Scrivi il messaggio da far ripetere dal bot in vocale")
 .setRequired(true)
 )
 .addBooleanOption((option) =>
 option
 .setName("rallentatore")
 .setDescription("Vuoi che il messaggio sia mandato a rallentatore?")
 .setRequired(true)
 ), 
 async execute(interaction, client) {

 const testo = interaction.options.getString("messaggio");
 const slow = interaction.options.getBoolean("rallentatore");



 const url = googleTTS.getAudioUrl(testo, {
 lang: "it",
 slow: slow,
 host: 'https://translate.google.com',
 });

 


 const { generateDependencyReport, AudioPlayerStatus, joinVoiceChannel, createAudioPlayer, createAudioResource } = require('@discordjs/voice');



 const voiceChannelId = interaction.member.voice.channel.id
 const voiceChannel = interaction.member.voice.channel
 const guildId = interaction.guild.id

 
 const player = createAudioPlayer();

 

 const resource = createAudioResource(url);
 player.play(resource);

 
 const connection = joinVoiceChannel({
 channelId: voiceChannelId,
 guildId: guildId,
 adapterCreator: voiceChannel.guild.voiceAdapterCreator,
 }); 



 const subscription = connection.subscribe(player);


 if (subscription) {
 setTimeout(() => subscription.unsubscribe(), 30_000);
 }

 
 
 },
};




Error


Error: FFmpeg/avconv not found!
 at Function.getInfo (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\node_modules\prism-media\src\core\FFmpeg.js:143:11)
 at Function.create (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\node_modules\prism-media\src\core\FFmpeg.js:156:38)
 at new FFmpeg (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\node_modules\prism-media\src\core\FFmpeg.js:45:27)
 at Object.transformer (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\node_modules\@discordjs\voice\dist\index.js:1699:27)
 at C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\node_modules\@discordjs\voice\dist\index.js:1855:58
 at Array.map (<anonymous>)
 at createAudioResource (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\node_modules\@discordjs\voice\dist\index.js:1855:39)
 at Object.execute (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\src\commands\tools\tts.js:56:26)
 at Object.execute (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\src\events\client\interactionCreate.js:13:23)
 at Client.<anonymous> (C:\Users\Casa\OneDrive\Desktop\Discord\eKicks\eKicks Bot v14\src\functions\handlers\handleEvents.js:20:23)
</anonymous></anonymous>


i am making a command to play a message in a voice channel. Once this error was returned from the terminal I installed ffmpeg by creating an environment variable and installed python. I don't understand why it keeps giving this error. below I am attaching a picture of the npm list




maybe I also have to install avconv but I don't know how to do it, could you please attach the link ? do i need to add avconv to the environment variables as well ?


-
Add Codec using fluent ffmpeg without converting it
3 juillet 2023, par Lucas RodrigoIs there a way to add codec to my file without needing to convert it ? My file is already ogg at this point so I just need the opus codec.


That's what I have :


export async function addCodec(input: Readable, output: PassThrough) {
 return new Promise((resolve, reject) => {
 ffmpeg(input)
 .format("ogg")
 .audioCodec("libopus")
 .on("error", (err) => {
 error("An error occurred: " + err.message);
 reject(false);
 })
 .on("progress", (progress) => {})
 .on("end", (res) => {
 log("ON END", res);
 log("Processing finished !");
 resolve(true);
 })
 .writeToStream(output);
 });
}



I've tried other libs like prism-media but it didn't work and also already tried removing the format() but it leads to an error.