Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (56)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (8766)

  • Play audio files on a guild channel (Not working on Ubuntu Server)

    18 octobre 2018, par danielperales555

    I want to make a "soundboard" on my Discord Bot.

    The bot is currently running on Ubuntu Server 18.04 in a VPS Hosting.

    I installed ffmpeg via aptitude apt-get install ffmpeg, and the respective node modules on my project via npm : npm install ffmpeg-binaries --save and npm install node-opus --save

    I have this provisional code :

    //Command syntax: !play (sound)
    if (!args[0]) return message.channel.send('noCorrectSyntax'); //args is provided by module.run

    let sound = args[0];
    let isReady = true;

    if (isReady) {
       isReady = false;
       let voiceChannel = message.member.voiceChannel;
       if (!voiceChannel) return message.channel.send('noChannel');

       voiceChannel.join().then(connection =>{
           const dispatcher = connection.playFile(`../resources/audios/${sound}.mp3`);
           if (!dispatcher) return message.channel.send('soundNotFound');

           console.log(`Playing ${sound} on ${message.member.voiceChannel.name}`);

           dispatcher.on("end", end => {
               voiceChannel.leave();
               console.log(`Finished`);
           });
       }).catch(err => console.log(err));
       isReady = true;
    } else {
       return message.channel.send('botNotAvailable');
    }

    When my bot joins the voice room, it leaves instantly without playing the sound.

    Am I doing something wrong by installing the ffmpeg codec this way ? Is a problem with the VPS ?

    (I tried with a new bot, installing ffmpeg on windows and setting the environment variable path and it worked fine)

    EDIT :

    I listened for the "error" and "debug" events on the StreamDispatcher (as specified in https://discord.js.org/#/docs/main/stable/class/StreamDispatcher?scrollTo=e-error), but I don’t receive errors or debug info.

    When I listen for the "speaking" event, is showed on my console as false

  • Console Log Stream information using ffmpeg node.js

    5 mars 2019, par Matteo

    I have created a work application that links in room encoders to live stream onto Facebook, Twitter and Youtube. I am wondering as to how to properly log the stream quality on the CMD. Below are snippets of the code and where I think the logic should be to properly pull the stream quality and display it in the cmd :

    Pushing Stream :

       if (req.query.french_facebook) {
     var streamComplete = req.query.fb_fre_streamURL + req.query.fb_fre_streamKey;
     temp = checkValidity('Facebook', 'French', req.query.fb_fre_streamURL, req.query.fb_fre_streamKey, status);
     status = temp[0];
     valid = temp[1];
     if (valid == true) {
       var command = `ffmpeg -re -i ${inputURL2('French',req.query.fb_fre_venue)} -c:v copy -acodec aac -ac 1 -ar 44100 -x264-params keyint=60:scenecut=0 -strict -2 -f flv "${streamComplete}"`;
       var process = nodeCmd.run(command);
       createStream(req.query.username, 'Facebook', 'French', req.query.fb_fre_streamKey, process.pid);
     } else {
       console.error("ERROR: unable to create stream");
     }
    }

    App initialization :

       var createError = require('http-errors');
    var express = require('express');
    var path = require('path');
    var cookieParser = require('cookie-parser');
    var logger = require('morgan');

    var indexRouter = require('./routes/index');
    var usersRouter = require('./routes/users');

    var app = express();

    var fs = require('fs');

    // view engine setup
    app.set('views', path.join(__dirname, 'views'));
    app.set('view engine', 'ejs');

    // app.use(logger('dev'));
    app.use(express.json());
    app.use(express.urlencoded({ extended: false }));
    app.use(cookieParser());
    app.use(express.static(path.join(__dirname, 'public')));

    app.use('/', indexRouter);
    app.use('/users', usersRouter);

    // catch 404 and forward to error handler
    app.use(function(req, res, next) {
     next(createError(404));
    });

    // error handler
    app.use(function(err, req, res, next) {
     // set locals, only providing error in development
     res.locals.message = err.message;
     res.locals.error = req.app.get('env') === 'development' ? err : {};

     // render the error page
     res.status(err.status || 500);
     res.render('error');
    });

    module.exports = app;

    If there is anything I am not making clear please let me know

  • FFmpeg error Unable to load FFMpeg during parallel encoding

    1er janvier 2021, par DrJohn

    I'd like to build web service on the Laravel platform which allows users upload some videos on a server. During uploading video files I use ffmpeg to encode them and compress.
I can't install ffmpeg on my hosting and so I have downloaded packages and executable files from https://ffmpeg.org/download.html and locate them on my web directory. Then I make all steps to install ffmpeg in my Laravel project.
I try to upload a video file and it's OK. The time to upload and encode is about 20 seconds. During encoding of the first video file I try to upload the second. And the second video file falls with the error "Unable to load FFMpeg". But the first video file is encoded successfully. When the first encoding is completed and I repeat uploading the second file it encoded successfully as well.
So I think that ffmpeg can work only with only one file at the time and I can't build multi-user service.
Please help me to find solution.

    


    Here is a peace of code which use to encode files :

    


        try {&#xA;                            $pub_path = Storage::disk(&#x27;public&#x27;)->getAdapter()->getPathPrefix();&#xA;                            $videopath =$pub_path . $myusertheme->public_reference.&#x27;/&#x27;.$this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                            //echo (Storage::disk(&#x27;public&#x27;)->getAdapter()->getPathPrefix().&#x27;<br />&#x27;);&#xA;                            echo ($videopath);&#xA;                            $ffmpeg = \FFMpeg\FFMpeg::create([&#xA;                                &#x27;ffmpeg.binaries&#x27;  => "./usr/bin/ffmpeg",&#xA;                                &#x27;ffprobe.binaries&#x27; => "./usr/bin/ffprobe",&#xA;                                &#x27;timeout&#x27;          => 3600, // The timeout for the underlying process&#xA;                                &#x27;ffmpeg.threads&#x27;   => 12,   // The number of threads that FFMpeg should use&#xA;                                &#x27;set_command_and_error_output_on_exception&#x27; => true,&#xA;                            ]);&#xA;                            $vid=$ffmpeg->open($request->file(&#x27;videofile&#x27;)->getRealPath());&#xA;                            $vid->save(new \FFMpeg\Format\Video\X264(&#x27;libmp3lame&#x27;, &#x27;libx264&#x27;), $videopath);&#xA;&#xA;/*&#xA;                            $videopath = $myusertheme->public_reference.&#x27;/&#x27;.$this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                            //FFMpeg::fromDisk(&#x27;local_root&#x27;)&#xA;                            $ffmpeg&#xA;                            ->open($request->file(&#x27;videofile&#x27;)->getRealPath())&#xA;                            ->export()&#xA;                            ->onProgress(function ($percentage) {&#xA;                                    //echo ($percentage.&#x27;/n&#x27;);&#xA;                                    if ($percentage===100)&#xA;                                    {&#xA;&#xA;                                        $videopath = $this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                                    }})&#xA;                            ->inFormat(new \FFMpeg\Format\Video\X264(&#x27;libmp3lame&#x27;, &#x27;libx264&#x27;))&#xA;                            ->toDisk(&#x27;public&#x27;)&#xA;                            ->save($videopath);&#xA;&#xA;*/&#xA;&#xA;                        } catch (EncodingException $exception) {&#xA;                            $videopath = null;&#xA;                            $command = $exception->getCommand();&#xA;                            $errorLog = $exception->getErrorOutput();&#xA;                            echo $errorLog;&#xA;                            return \Response::json(&#x27;Ошибка кодировки файла&#x27;, 500);&#xA;&#xA;                        }&#xA;

    &#xA;