Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (88)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

Sur d’autres sites (10385)

  • Do I really have to go through the whole Facebook App Review process for a single user App ?

    11 février 2019, par KOMsandFriends

    I want to publish a live video on a Facebook page, using the Facebook API. I have developed a small Facebook "App", which starts a live video stream on a Facebook page and connects ffmpeg to it.

    I need this for my own business. The only purpose of this is, to start and stop live video streams from an IP camera on Facebook from a headless server.

    This is how I call the API in python to start a new live video stream :

    def start(self):
         p = {
                 "status":"LIVE_NOW",
                 "title":self.Title,
                 "description":self.Description,
                 "access_token":self.__token
                 }
         r = requests.post( self.__url + self.__page_id + '/live_videos', pams=p)
         if r.status_code == 200:
             self.parseResponse(r.text)
         return int(r.status_code)

    After that I immediately run ffmpeg with the stream key returned by this API call :

    ffmpeg -i ... -f flv "rtmp://live-api-s.facebook.com:80/rtmp/$STREAMKEY"

    This code works and the video appears on Facebook, but the video is only visible for me, even though it is shown as public in the Facebook web interface.

    How can I change this ? Do I have to review an App, even though it is just for my own usage ?

  • Call to Process works fine with Debug, but it doesn't work in the installed application

    6 février 2019, par Santi

    I am developing a Windows Form program that has callings to ffmpeg library through the class Process.

    It works fine when I run it with the Debug in Visual Studio 2013. But when I install the program and I invoke the operation that call to the ffmpeg Process, it doesn’t work. The cmd screen appears an disappears and nothing happens.

    I have tried to know what can be happening getting a log file with the output of ffmpeg, in case it was a problem in the ffmpeg libraries. However, after executing it the log is empty, what means that the ffmpeg command has not been executed.

    Can someone help me, please ?

    The code is this :

    ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.FileName = "cmd.exe";
    startInfo.Arguments = "/c " + ffmpegPath + " " + commandArguments;
    using (Process processTemp = new Process())
    {
       processTemp.StartInfo = startInfo;
       processTemp.EnableRaisingEvents = true;
       processTemp.Start();
       processTemp.WaitForExit();
    }

    I am invoking to cmd.exe (not directly ffmpeg.exe) because in the arguments sometimes there can be a pipe (that is why the command starts with "/c").

  • Problem with fluent-ffmpeg in node.js with firebase

    20 juillet 2019, par Just A Bad Programmer

    I am using fluent-ffmpeg to compress video to 1000k bit rate for the videos that is uploaded by the user to firebase.

     console.log("Compressed File Path: " + compressedVideoFilePath);
     const command = ffmpeg(tempFilePath).setFfmpegPath(ffmpegStatic.path)
                                                 .videoBitrate(1000)
                                                 //.audioChannels(1)
                                                 //.audioFrequency(16000)
                                                 //.format('flac')
                                                 .on('error', function(err) {
                                                   console.log('An error occurred: ' + err.message);
                                                 })
                                                 .on('end', function() {
                                                   console.log('Processing finished!');
                                                   console.log("File compressed");
                                                   return destBucket.upload(compressedVideoFilePath, {
                                                     destination: 'compressed-' + path.basename(filePath),
                                                     metadata: metadata
                                                   }).then(() => {
                                                     console.log('Output audio uploaded to', targetStorageFilePath);

                                                     // Once the audio has been uploaded delete the local file to free up disk space.
                                                     fs.unlinkSync(tempFilePath);
                                                     fs.unlinkSync(targetTempFilePath);

                                                     console.log('Temporary files removed.', targetTempFilePath);
                                                   });
                                                 })
                                                 .save(compressedVideoFilePath);
     console.log("Function Finished");

    But, the code inside ffmpeg does not run, the output of the console is just :

    Compressed File Path: /tmp/compressed-test-4d68b02f-a6ef-4ff3-a5c9-52687fd3f0c4.mp4
    Function Finished
    Function execution took 17871 ms, finished with status: 'ok'

    It just skips to the end without displaying any on end or on success messages. The compressed video files also did not appear/uploaded in the firebase.

    Can anyone help me find out the problem and help me fix it ? Is the code for ffmpeg not correct ? Thanks.