Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (67)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (6393)

  • Unable to find a suitable output format for 'ffmpeg' I/flutter (29205) : ffmpeg : Invalid argument

    24 juillet 2020, par Abhijit Rajmane

    I'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

    


  • Why is my discord.py bot not having voice while being hosted on Heroku ?

    24 juillet 2020, par Flying Thunder

    My 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 added cffi==1.14.0 to my requirements.txt - both solutions that are supposed to fix this exact issue.

    


  • Which directory should i put FFmpeg ? [duplicate]

    25 juillet 2020, par Panda Gaming23

    I 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 !