Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (56)

  • 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.

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • 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 (8786)

  • Jquery auto-refresh stop refreshing after 10seconds

    11 février 2016, par Mick Jack

    I have this JQuery script to auto refresh every 2seconds after a video is uploaded and retrieve the estimated time needed to process the video with ffmpeg

    However my refresh script stop refreshing after 10-15seconds. i traced the problem to the session_start() ; when i remove this session_start() ; my refresh script work perfectly. what could be the cause and solution here ?

    videoupload.php

    <div title="test">
           <h5>Encoding percentage</h5>
           <code class="echappe-js">&lt;script src=&quot;https://code.jquery.com/jquery-2.1.1.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script&gt;<br />
                   $(&quot;#Submit&quot;).click(function(event){<br />
                   setInterval(function(){<br />
                   $(&quot;#myDiv&quot;).load('progress.php')<br />
                   }, 2000);<br />
                   });<br />
                   &lt;/script&gt;

    Progress.php

    &lt;?php

    $content = @file_get_contents('logfile.txt');

               if($content){
               //get duration of source
               preg_match("/Duration: (.*?), start:/", $content, $matches);

               $rawDuration = $matches[1];

               //rawDuration is in 00:00:00.00 format. This converts it to seconds.
               $ar = array_reverse(explode(":", $rawDuration));
               $duration = floatval($ar[0]);
               if (!empty($ar[1])) $duration += intval($ar[1]) * 60 ;
               if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60 * 60;

               //get the time in the file that is already encoded
               preg_match_all("/time=(.*?) bitrate/", $content, $matches);

               $rawTime = array_pop($matches);

               //this is needed if there is more than one match
               if (is_array($rawTime)){$rawTime = array_pop($rawTime);}

               //rawTime is in 00:00:00.00 format. This converts it to seconds.
               $ar = array_reverse(explode(":", $rawTime));
               $time = floatval($ar[0]);
               if (!empty($ar[1])) $time += intval($ar[1]) * 60;
               if (!empty($ar[2])) $time += intval($ar[2]) * 60 * 60;

               //calculate the progress
               $progress = round(($time/$duration) * 100);

               echo "Duration: " . $duration . "<br />";
               echo "Current Time: " . $time . "<br />";
               echo "Progress: " . $progress . "%";

    }

    ?>

    upload.php

    session_start();

    $userID = $_SESSION['login_user'];
    // rest of the code to convert video using ffmpeg
  • Record ip camera streaming with two login authentication

    13 octobre 2020, par oxorio

    I'm trying to record a stream with ffmpeg, VLC or OBS that before you view the stream player you need to login with a microsoft account, the URL is something like this

    &#xA;

    https://yourwebsite.msappproxy.net/Camera/player.html?stats=1&#xA;

    &#xA;

    And after you login you have to insert a username and password to watch the camera you want to see.

    &#xA;

    I've got the .m3u8 and tried to play it on VLC but doesn't start the streaming, searching i found that you can add the credentials to the stream link but this doesn't work either

    &#xA;

    https://user:password@yourwebstite.msappproxy.net/Camera/hls/live.stream.m3u8&#xA;

    &#xA;

    I also tried with the extension "Video DownloadHelper" on Firefox and this extension is able to download the stream but at somepoint stops the download and you need to relogin on the website

    &#xA;

    Edit :&#xA;Added the VLC output log

    &#xA;

    -- logger module started --&#xA;main: Running vlc with the default interface. Use &#x27;cvlc&#x27; to use vlc without interface.&#xA;main: playlist is empty&#xA;-- logger module stopped --&#xA;

    &#xA;

    I tried with "Open in VLC" extension on Firefox so you can open the link you want to play on VLC.

    &#xA;

    The URL that capture this extension is like this

    &#xA;

        https://yourwebsite.msappproxy.net/Camara/hls/live.stream-152121.ts&#xA;

    &#xA;

    And the VLC output log

    &#xA;

    -- logger module started --&#xA;main: Running vlc with the default interface. Use &#x27;cvlc&#x27; to use vlc without interface.&#xA;ps warning: this does not look like an MPEG PS stream, continuing anyway&#xA;ps warning: garbage at input from 509, trying to resync...&#xA;ps warning: this does not look like an MPEG PS stream, continuing anyway&#xA;ps warning: garbage at input from 509, trying to resync...&#xA;-- logger module stopped --&#xA;

    &#xA;

    Edit 2 (Solution) :&#xA;I solved the problem using this chrome extension

    &#xA;

    Stream Recorder Chrome

    &#xA;

    Using this extension I was able to capture the stream without cuts

    &#xA;

  • avcodec/dca : require checked bitstream reader

    13 mai 2016, par foo86
    avcodec/dca : require checked bitstream reader
    

    Remove half-working attempt at supporting unchecked bitstream reader by
    always copying input data into intermediate buffer with large amount of
    padding at the end.

    Convert LBR decoder to checked bitstream reader. Convert
    dcadec_decode_frame() to parse input data directly if possible.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/dca_lbr.c
    • [DH] libavcodec/dca_xll.c
    • [DH] libavcodec/dcadec.c
    • [DH] libavcodec/dcadec.h
  • Boussole SPIP

    SPIP.net-La documentation officielle et téléchargement de (...) SPIP Code-La documentation du code de SPIP Programmer SPIP-La documentation pour développer avec (...) Traduire SPIP-Espace de traduction de SPIP et de ses (...) Plugins SPIP-L'annuaire des plugins SPIP SPIP-Contrib-L'espace des contributions à SPIP Forge SPIP-L'espace de développement de SPIP et de ses (...) Discuter sur SPIP-Les nouveaux forums de la communauté (...) SPIP Party-L'agenda des apéros et autres rencontres (...) Médias SPIP-La médiathèque de SPIP SPIP Syntaxe-Tester l'édition de texte dans SPIP