Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (53)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6388)

  • Running ffmpeg in PHP exec() encounter "libstdc++ not found" error

    5 octobre 2019, par mitra razmara

    When I run ffmpeg (3.4.6) in "terminal" (ubuntu 18.4), it works fine ; But when I run it through "PHP exec()" (PHP 7.3)

    exec('ffmpeg 2>&1', $output);
    foreach ($output as $key => $value) {
     echo $value.'<br />';
    }

    it gives me below output.

    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libjack.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libjack.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/x86_64-linux-gnu/libzmq.so.5)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libzmq.so.5)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libzmq.so.5)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/librubberband.so.2)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/librubberband.so.2)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/librubberband.so.2)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/x86_64-linux-gnu/libopenmpt.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libopenmpt.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libopenmpt.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libgme.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libchromaprint.so.1)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libsnappy.so.1)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libsnappy.so.1)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libnorm.so.1)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libnorm.so.1)

    If I run this

    exec('which ffmpeg 2>&amp;1', $output);

    I get below output

    /usr/bin/ffmpeg
  • Visual Studio LNK2001 Error, despite using extern "C" for ffmpeg libraries in C++ [duplicate]

    1er février 2020, par Faizan Cassim

    This 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_alloc

    I would be greatfull to anyone who could help me resolve this. I am using C++ for Windows.

  • Discord.js "Error : FFMPEG not found" but I'm pretty sure I have it

    21 février 2020, par Cole Perry

    I’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\ffmpeg

    I’m not quite sure what to do from here. If you need any other info I’d be glad to give it.