
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (75)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (8254)
-
Discord.js "Error : FFMPEG not found" but I'm pretty sure I have it
21 février 2020, par Cole PerryI’m learning Discord.js and following this tutorial : https://discord.js.org/#/docs/main/stable/topics/voice . From the start, when I try to run- npm install ffmpeg-binaries I get a huge error message but it tells me to just use install ffmpeg so I did.
Here is my Index.js page(I’ve replaced my token with * here) :
const Discord = require('discord.js');
const Colesbot = new Discord.Client();
const token = '**********************************';
Colesbot.on('ready', () =>{
console.log('Slamsbot is online.');
})
Colesbot.on('message', msg=>{
if(msg.content == "What up bot?"){
msg.reply("Whats good pimp?")
}
});
Colesbot.on('message', message=>{
if (message.content === '/join') {
// Only try to join the sender's voice channel if they are in one themselves
if (message.member.voiceChannel) {
message.member.voiceChannel.join().then(connection => {
message.reply('I have successfully connected to the channel!');
}).catch(console.log);
} else {
message.reply('You need to join a voice channel first!');
}
}
});
//Event listener for new guild members
Colesbot.on('guildMemberAdd', member =>{
// Send the message to a designated channel on a server:
const channel = member.guild.channels.find(ch => ch.name === 'general');
// Do nothing if the channel wasn't found on this server
if (!channel) return;
// Send the message, mentioning the member
channel.send(`Welcome to the server, ${member}. Please use the bot-commands channel to assign yourself a role.`);
})
Colesbot.login(token);
exports.run = (client, message, args) => {
let user = message.mentions.users.first || message.author;
}If I type "/join" while not connected to a voice channel I get the proper message. However, if I try while I am I get this error message :
Error: FFMPEG not found
task_queues.js:94
message:"FFMPEG not found"
stack:"Error: FFMPEG not found\n at Function.selectFfmpegCommand (c:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:46:13)\n at new FfmpegTranscoder (c:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:7:37)\n at new MediaTranscoder (c:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\node_modules\prism-media\src\transcoders\MediaTranscoder.js:10:19)\n at new Prism (c:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\node_modules\prism-media\src\Prism.js:5:23)\n at new VoiceConnection (c:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\node_modules\discord.js\src\client\voice\VoiceConnection.js:46:18)\n at c:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:63:22\n at new Promise (<anonymous>)\n at ClientVoiceManager.joinChannel (c:\Users\bobal\Documents\GitHub\Spotif...
</anonymous>So I went to that folder and the file Ffmpeg.js is there and here is its contents :
const ChildProcess = require('child_process');
const FfmpegProcess = require('./FfmpegProcess');
class FfmpegTranscoder {
constructor(mediaTranscoder) {
this.mediaTranscoder = mediaTranscoder;
this.command = FfmpegTranscoder.selectFfmpegCommand();
this.processes = [];
}
static verifyOptions(options) {
if (!options) throw new Error('Options not provided!');
if (!options.media) throw new Error('Media must be provided');
if (!options.ffmpegArguments || !(options.ffmpegArguments instanceof Array)) {
throw new Error('FFMPEG Arguments must be an array');
}
if (options.ffmpegArguments.includes('-i')) return options;
if (typeof options.media === 'string') {
options.ffmpegArguments = ['-i', `${options.media}`].concat(options.ffmpegArguments).concat(['pipe:1']);
} else {
options.ffmpegArguments = ['-i', '-'].concat(options.ffmpegArguments).concat(['pipe:1']);
}
return options;
}
/**
* Transcodes an input using FFMPEG
* @param {FfmpegTranscoderOptions} options the options to use
* @returns {FfmpegProcess} the created FFMPEG process
* @throws {FFMPEGOptionsError}
*/
transcode(options) {
if (!this.command) this.command = FfmpegTranscoder.selectFfmpegCommand();
const proc = new FfmpegProcess(this, FfmpegTranscoder.verifyOptions(options));
this.processes.push(proc);
return proc;
}
static selectFfmpegCommand() {
try {
return require('ffmpeg-binaries');
} catch (err) {
for (const command of ['ffmpeg', 'avconv', './ffmpeg', './avconv']) {
if (!ChildProcess.spawnSync(command, ['-h']).error) return command;
}
throw new Error('FFMPEG not found');
}
}
}
module.exports = FfmpegTranscoder;I also added ffmpeg to system path and it didn’t help :
C:\ffmpeg
C:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\ffmpegI’m not quite sure what to do from here. If you need any other info I’d be glad to give it.
-
Visual Studio LNK2001 Error, despite using extern "C" for ffmpeg libraries in C++ [duplicate]
1er février 2020, par Faizan CassimThis is what it looks like :
’’’
extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavutil/avutil.h"
};’’’
But I still get these errors when using the FFmpeg libraries in Visual Studio 2019
1>AudioFile.obj : error LNK2001: unresolved external symbol avformat_open_input
1>AudioFile.obj : error LNK2001: unresolved external symbol av_read_frame
1>AudioFile.obj : error LNK2001: unresolved external symbol av_free
1>AudioFile.obj : error LNK2001: unresolved external symbol av_get_sample_fmt_name
1>AudioFile.obj : error LNK2001: unresolved external symbol avformat_close_input
1>AudioFile.obj : error LNK2001: unresolved external symbol av_init_packet
1>AudioFile.obj : error LNK2001: unresolved external symbol avcodec_receive_frame
1>AudioFile.obj : error LNK2001: unresolved external symbol avcodec_open2
1>AudioFile.obj : error LNK2001: unresolved external symbol av_sample_fmt_is_planar
1>AudioFile.obj : error LNK2001: unresolved external symbol avcodec_close
1>AudioFile.obj : error LNK2001: unresolved external symbol av_get_bytes_per_sample
1>AudioFile.obj : error LNK2001: unresolved external symbol av_packet_unref
1>AudioFile.obj : error LNK2001: unresolved external symbol avformat_find_stream_info
1>AudioFile.obj : error LNK2001: unresolved external symbol av_find_best_stream
1>AudioFile.obj : error LNK2001: unresolved external symbol av_frame_allocI would be greatfull to anyone who could help me resolve this. I am using C++ for Windows.
-
"Cannot find ffmpeg" error when using 'audioconcat'
2 janvier 2020, par MosukoshideI would like to concatenate three ’.oga’ sound files using audioconcat, however whenever I try to do so, I am met with this error :
Error: Error: Cannot find ffmpeg
at /root/user/node_modules/fluent-ffmpeg/lib/processor.js:136:22
at /root/user/node_modules/fluent-ffmpeg/lib/capabilities.js:123:9
at /root/user/node_modules/fluent-ffmpeg/lib/capabilities.js:116:11
at /root/user/node_modules/fluent-ffmpeg/lib/utils.js:223:16
at F (/root/user/node_modules/which/which.js:68:16)
at E (/root/user/node_modules/which/which.js:80:29)
at /root/user/node_modules/which/which.js:89:16
at /root/user/node_modules/isexe/index.js:42:5
at /root/user/node_modules/isexe/mode.js:8:5
at FSReqWrap.oncomplete (fs.js:152:21)
ffmpeg stderr: undefinedI have already installed ffmpeg with the flags that were listed on the audioconcat npm page like this :
npm i ffmpeg --enable-libass --enable-libmp3lame
And the code I am trying to run looks like this :
audioconcat(audioFiles)
.concat(`main.oga`)
.on('start', function (command) {
console.log('ffmpeg process started:', command)
})
.on('error', function (err, stdout, stderr) {
console.error('Error:', err)
console.error('ffmpeg stderr:', stderr)
})
.on('end', function (output) {
console.error('Audio created in:', output)
})I’m not sure how to fix this problem...