
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (111)
-
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 (...) -
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 -
Les thèmes de MediaSpip
4 juin 20133 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
Thèmes MediaSPIP
3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)
Sur d’autres sites (11891)
-
Which directory should i put FFmpeg ? [duplicate]
25 juillet 2020, par Panda Gaming23I am making a discord bot and I get the following error


node:4) UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!

2020-07-25T01:00:13.991518+00:00 app[worker.1]: at Function.getInfo (/app/node_modules/prism-media/src/core/FFmpeg.js:130:11)

2020-07-25T01:00:13.991519+00:00 app[worker.1]: at Function.create (/app/node_modules/prism-media/src/core/FFmpeg.js:143:38)

2020-07-25T01:00:13.991519+00:00 app[worker.1]: at new FFmpeg (/app/node_modules/prism-media/src/core/FFmpeg.js:44:27)

2020-07-25T01:00:13.991520+00:00 app[worker.1]: at AudioPlayer.playUnknown (/app/node_modules/discord.js/src/client/voice/player/BasePlayer.js:47:20)

2020-07-25T01:00:13.991520+00:00 app[worker.1]: at VoiceConnection.play (/app/node_modules/discord.js/src/client/voice/util/PlayInterface.js:71:28)

2020-07-25T01:00:13.991522+00:00 app[worker.1]: at play (/app/commands/play.js:14:34)

2020-07-25T01:00:13.991522+00:00 app[worker.1]: at /app/commands/play.js:42:5

2020-07-25T01:00:13.991522+00:00 app[worker.1]: at processTicksAndRejections (internal/process/task_queues.js:97:5)

2020-07-25T01:00:13.991629+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)




Here is the code


const ytdl = require("ytdl-core");
const Discord = require("discord.js");

var servers = {};

module.exports = {
 name: "play",
 description: "this is a music play command!",
 execute(message, args) {
 
 function play(connection, message) {
 var server = servers[message.guild.id];
 
 server.dispatcher = connection.play(ytdl(server.queue[0], {filter: "audioonly"}));
 
 server.queue.shift();
 
 server.dispatcher.on("end", function () {
 if(server.queue[0]){
 play(connection, message);
 }
 else {connection.disconnect();}
 })
 }
 if (!args[0]) {
 message.channel.send("you need to provide a link!");
 return;
 }

 if (!message.member.voice.channel) {
 message.channel.send("you must be in ||a|| voice channel to play the bot!");
 return;
 }

 if (!servers[message.guild.id]) servers[message.guild.id] = { queue: [] };
 
 var server = servers[message.guild.id];
 
 server.queue.push(args[0]);
 
 if (!message.member.voice.connection) message.member.voice.channel.join().then(function(connection) {
 play(connection, message);
 })
 },
};



I would like to know which directory I should put FFmpeg.


I would also like to know if the FFmpeg executable has to be in a folder or compressed or if i can just place the executable in a certain directory


I am hosting my bot using Heroku on a Mac using Discord.js V12


Please help.


Thanks !


-
Why is my discord.py bot not having voice while being hosted on Heroku ?
24 juillet 2020, par Flying ThunderMy bot is all set up and running, everything works, EXCEPT for voice : He joins the channel, but doesnt play audio. I have heard many different claims for what the reason is (no permission to use ffmpeg.exe, missing buildpack, missing dependency, Heroku blocking UDP on free users...) - but i hope that someone here ACTUALLY knows what the problem is, because i couldnt find any definitive reason online.


This is the code of the bot : https://github.com/FlyingThunder/DiscordBot/blob/master/main.py
Everything is working fine on my machine.
This is the only error that Heroku logs gave me :

2020-07-24T06:28:30.329937+00:00 app[worker.1]: PermissionError: [Errno 13] Permission denied: 'res/ffmpeg.exe'


I already tried adding
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
to my buildpacks, and i addedcffi==1.14.0
to my requirements.txt - both solutions that are supposed to fix this exact issue.

-
Unable to find a suitable output format for 'ffmpeg' I/flutter (29205) : ffmpeg : Invalid argument
24 juillet 2020, par Abhijit RajmaneI'm trying to mix two audio files using flutter_ffmpeg : 0.2.10 but I get


[NULL @ 0xd77d4400] Unable to find a suitable output format for 'ffmpeg'
I/flutter (29205): ffmpeg: Invalid argument

code : 
String file1= _localPath+"/file1.m4a";
String file2= _localPath+"/file2.mp3";
String output= _localPath+"/abhijit.wav";

String finalPath= "ffmpeg -i "+ file1 +" -i "+file2+" -filter_complex amix=inputs=2:duration=first:dropout_transition=0 "+output;

console ffmpeg's message...
I/flutter (29205): libavutil 56. 38.100 / 56. 38.100
I/flutter (29205): libavcodec 58. 65.102 / 58. 65.102
I/flutter (29205): libavformat 58. 35.101 / 58. 35.101
I/flutter (29205): libavdevice 58. 9.103 / 58. 9.103
I/flutter (29205): libavfilter 7. 70.101 / 7. 70.101
I/flutter (29205): libswscale 5. 6.100 / 5. 6.100
I/flutter (29205): libswresample 3. 6.100 / 3. 6.100
I/flutter (29205): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.arthenica.flutter.ffmpeg.FlutterFFmpegExample/files/Download/file1.m4a':
I/flutter (29205): Metadata:
I/flutter (29205): major_brand : mp42
I/flutter (29205): minor_version : 1
I/flutter (29205): compatible_brands: isommp41mp42
I/flutter (29205): creation_time : 2020-07-09T15:42:47.000000Z
I/flutter (29205): Duration: 00:12:12.26, start: 0.000000, bitrate: 61 kb/s
I/flutter (29205): Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 60 kb/s (default)
I/flutter (29205): Metadata:
I/flutter (29205): creation_time : 2020-07-09T15:42:47.000000Z
I/flutter (29205): handler_name : Core Media Audio
I/flutter (29205): Input #1, mp3, from '/storage/emulated/0/Android/data/com.arthenica.flutter.ffmpeg.FlutterFFmpegExample/files/Download/file2.mp3':
I/flutter (29205): Metadata:
I/flutter (29205): artist : SoundHelix
I/flutter (29205): genre : Techno
I/flutter (29205): encoder : Lavf58.20.100
I/flutter (29205): Duration: 00:00:23.12, start: 0.011995, bitrate: 192 kb/s
I/flutter (29205): Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
I/flutter (29205): Metadata:
I/flutter (29205): encoder : Lavf
I/flutter (29205): [NULL @ 0xd77d4400] Unable to find a suitable output format for 'ffmpeg'
I/flutter (29205): ffmpeg: Invalid argument
I/flutter (29205): "
I/flutter (29205): New FFmpeg pipe: /data/user/0/com.arthenica.flutter.ffmpeg.FlutterFFmpegExample/cache/mf_pipe_7
I/flutter (29205): FFmpeg process exited with rc 1



Please check command of FFmpeg and suggest me if any correction occur, Unable to find a suitable output format for 'ffmpeg' I/flutter (29205) : ffmpeg : Invalid argument
I have no idea about this error please help me