
Recherche avancée
Autres articles (65)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
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
Sur d’autres sites (9179)
-
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