Recherche avancée

Médias (91)

Autres articles (21)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (3607)

  • Using Live555 HTTP capacities as a server for signaling

    14 août 2017, par Hakeem El Bakka-lee

    Lately i managed to make (using other libraries) a rtsp streaming server with Live555, WebRTC and FFMPEG.
    All is rolling great, but my ultimate goal is to maximise my usage of Live555 to reduce my processing footprint.
    Once the rtp stream is started i use the HTTP signaling server only for keepalives.

    My question is (As i don’t seem to find the answer in the live555 code nor documentation) :

    Is there any way to build a HTTP Server using only Live555 ?

  • Merge videos with different start times and show them on a grid

    1er août 2017, par shamaleyte

    I have multiple video files of a conference call. However, each participant joined the call at a different time, which resulted in the fact that each video file has a different start time offset values.

    Video   Start Time
    ------------------
    Video1  00:00
    Video2  00:10
    Video3  01:40

    My purpose is to play back this conference. However, I did not record the conference as 1 video, it is recorded with multiple video files, instead.
    How do I stitch these videos ?

    There is also a paid solution to merge video fragments to a single clip – this will make the client-side much simpler. But can I do it for free ?

    The expected outcome is to have one video showing three videos on a grid.
    When ffmpeg stitches the videos, it should consider their start time values properly so that the videos are played accordingly.

  • Return of FFMPEG in Background

    7 septembre 2018, par Bruno Andrade

    I am making a code that downloads a list of m3u8 links by FFMPEG

    I had this code :

    function FFMPEG($videocode, $dirvideo) {

       $ffmpeg = '"D:\FFMPEG\bin\ffmpeg.exe"' . " -hide_banner -loglevel verbose -n -i https://linkplaylist/{$videocode}.m3u8 -map 0:1 -map 0:2 -acodec copy -bsf:a aac_adtstoasc -vcodec copy {$dirvideo} 1> log.txt  2>&1";

       exec($ffmpeg, $output, $var);

       return $var;
    }

    $code = FFMPEG('football', 'football.mp4');

    if($code){
       {ERROR CODE};
       }else{

       {SUCCESS CODE}
    }  

    Initial problem

    And that worked well. I could download the video and know if it was downloaded completely or had some error.

    The problem is that this code "hangs" the script in exec () the page is loading until finalize exec () and that of timeout error (shared server) besides being visually strange to the visitor the page loading.

    Resolution of the initial problem

    After research I think the solution is to put the code execution in the background so I found this code :

    $descriptorspec = array(
      0 => array("pipe", "r"),  // stdin is a pipe that the child will read from
      1 => array("pipe", "w"),  // stdout is a pipe that the child will write to
      2 => array("file", "error-output.txt", "a") // stderr is a file to write to
    );

    function FFMPEG($videocode, $dirvideo) {
    $cmd = 'start /B D:\FFMPEG\bin\ffmpeg.exe  -y -i "https://linkplaylist/{$videocode}.m3u8" -map p:0 -acodec copy -bsf:a aac_adtstoasc -vcodec copy {$dirvideo}';
    proc_close(proc_open ($cmd
    ,$descriptorspec, $foo));
    }

    And finally my current problem

    And this works fine for the loading and timeout issue, but I can not get a return from when the download was successfully completed.

    1 ° proc_open Is this the best solution for my initial problem ?

    2 ° How can I get a return from when ffmpeg finishes running successfully and the script continues to flow.

    Extra Info

    I’m trying to build a solution that works on windows (xampp) but my final server is linux.