Recherche avancée

Médias (91)

Autres articles (87)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (5915)

  • FFMpeg + Beanstalk : How to pass the processes to it

    14 juillet 2012, par Ilia Rostovtsev

    I'm working around on the video web site ! I have a simple PHP function that is used to start complicated conversion processes. The problem is that FFMpeg and Mencoder are extremely resourceful and having one process of it is something that makes httpd slow down but multiple processes just hang it completely. I want to my conversion processes with Beanstalk (or anything else). Everything is working well right now : converting, logging and etc.

    My concrete question is : How to transfer my current jobs to Beanstalk ?

    I have very simple PHP code :

    RunInBackground('convert.php', array($initial_file_name, $vid), $LogFilePath);

    And the function looks also quite clear :

    function RunInBackground($sPHPFile, $aParam = array(), $sLogFile = '')
    {
       global $config;

       $sCmd = $config['phppath'] . ' ' . $config['BASE_DIR'] . '/' . $sPHPFile;
       foreach ($aParam as $s)
       {
           $sCmd .= ' ' . $s;
       }


           $sCmd .= ' > ' . ($sLogFile != '' ? $config['BASE_DIR'] . '/' . $sLogFile : '/dev/null');

           if ( iBgProc($sCmd) )
           {
               return true;
           }
           else
           {
               return false;
           }

    }

    function iBgProc($sCmd, $iPrio = 0)
    {
       if ($iPrio)
       {
           $iPID = shell_exec("nohup nice -n $iPrio $sCmd 2> /dev/null & echo $!");
       }
       else
       {
           $iPID = shell_exec("nohup $sCmd 2> /dev/null & echo $!");
       }

       return($iPID);
    }

    Now what would Beanstalk correct code would look like so these processes would NOT start all at the same time if multiple videos are uploaded ?

    If you believe that for my needs is better to use something else but Beanstalk and you know how to implement it, I would be still happy to see it !

    Thanks !

  • Will ffmpeg transcoding change the media's duration ?

    6 juillet 2012, par MaiTiano

    For example, I have a example flv media : 1775818137_1775828481_10344.flv. Only audio data has contained in it. (No video data)

    The major properties of this flv are :

    _____________________________________________________________________
    Format                                   : Flash Video

    File size                                : 87.4 KiB

    Duration                                 : 494 hours

    Overall bit rate mode                    : CBR

    Overall bit rate                         : 0 bps

    Writing application                      : Lavf53.4.0

    Audio

    Format                                   : MPEG Audio

    Format version                           : Version 1

    Format profile                           : Layer 3

    Mode                                     : Joint stereo

    Mode extension                           : MS Stereo

    Codec ID                                 : 2

    Codec ID/Hint                            : MP3

    Duration                                 : 49hours

    Bit rate mode                            : CBR

    Bit rate                                 : 64.0 Kbps

    Channel(s)                               : 2 channels

    Sampling rate                            : 44.1 KHz

    Compression mode                         : Lossy

    Stream size                              : 13.3 GiB

    _____________________________________________________________________

    Because this is the flv piece generated from the Suse10.0 server, the timestamp may be not correctly wrote into the flv metadata. Therefore, the Duration item listed above is not the real time of it.
    I has record the time in its file name.
    So, the beginning time is 1775818137 ms
    the ending time of this flv is 1775828481 ms
    The actual duation of this flv is 10344 ms which is about 10 seconds.

    **HERE IS MY QUESTION -.- **

    When I use ffmpeg to transcode flv fromat into ts format, like this,

    ./ffmpeg -i 1775818137_1775828481_10344.flv -f mpegts -vn -acodec libfaac -ar 44100 -ab 48k 1775818137_1775828481_10344.ts

    Is there possibility that the duration of final gotten ts file is not equal to the duation of original flv file ? In other words, the ts file's duration is not 10344ms.

  • FFMPEG best practice ?

    26 avril 2013, par HighFlyingFantasy

    I'm trying to write a wrapper class for FFMPEG. I have 4 classes within the wrapper, Stream, Demux, Encode, Decode. All of these classes use avcodec, avformat, etc. My question is, can I use the avcodec_register_all, av_register_all and avformat_network_init in my top level wrapper after initializing the lower level classes, or should I call each one individually in the lower level init methods ?