Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (61)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (10158)

  • Révision 24584 : Fix de l’utilisation d’une table meta différente pour un plugin donné.

    29 mai 2020, par eric@smellup.net

    On fait aussi évoluer la feature en permettant de mettre plusieurs plugins dans une même table autre que spip_meta.

  • Building a livestream page where the user will input an rtsp streaming source through an ip address

    7 décembre 2020, par Antax Md

    I am building a livestream page where the streaming source is streamed through rtsp. Currently, I am using ffmpeg to convert the incoming rtsp stream to a .m3u8 file and it is played back on the webpage through HLS.

    


    The problem i am trying to solve now, is loading an rtsp stream based on the user's input. How do i go about solving this ? It is a requirement to able to view the stream on iOS and android.
The ffmpeg command :

    


    ffmpeg -i "rtsp://10.193.79.185:5554" -hls_time 3 -hls_wrap 10 "C:\wamp64\www\hls\output.m3u8"


    


    Code of what I have at the moment that loads a hard coded rtsp stream

    


    &#xA;&#xA;  &#xA;      <code class="echappe-js">&lt;script src=&quot;https://cdn.jsdelivr.net/npm/hls.js@latest&quot;&gt;&lt;/script&gt;&#xA;      
    &#xA;

    RTSP Stream

    &#xA; &#xA; &#xA;

    &#xA; &#xA;

    &#xA; &#xA;&#xA; &lt;script&gt;&amp;#xA;        if(Hls.isSupported()) &amp;#xA;        {&amp;#xA;            var video = document.getElementById(&amp;#x27;video&amp;#x27;);&amp;#xA;            var mystring = &quot;http://192.168.43.79/hls/output.m3u8&quot;;&amp;#xA;            var hls = new Hls({&amp;#xA;              debug: true&amp;#xA;            });&amp;#xA;            hls.loadSource(mystring);&amp;#xA;            hls.attachMedia(video);&amp;#xA;            hls.on(Hls.Events.MEDIA_ATTACHED, function() {&amp;#xA;            video.muted = true;&amp;#xA;            video.play();&amp;#xA;        });&amp;#xA;        }&amp;#xA;        // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled.&amp;#xA;        // When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property.&amp;#xA;        // This is using the built-in support of the plain video element, without using hls.js.&amp;#xA;        else if (video.canPlayType(&amp;#x27;application/vnd.apple.mpegurl&amp;#x27;)) {&amp;#xA;            video.src = &amp;#x27;http://192.168.43.79/hls/output.m3u8&amp;#x27;;&amp;#xA;            video.addEventListener(&amp;#x27;canplay&amp;#x27;,function() {&amp;#xA;            video.play();&amp;#xA;          });&amp;#xA;        }&amp;#xA;      &lt;/script&gt;&#xA; &#xA;&#xA;

    &#xA;

  • Unable to find/write moov atom in the mp4 recorded stream

    11 juillet 2014, par AnilJ

    I have written the following code to write the webcam feed into a file (.mp4) on disk. The program is successful, but when I try to play the file using player, it says "moov atom not found" and player is not showing anything. The file however is a valid mp4 file according to ffmpeg command.

    This is my main thread where I encode a picture every 30ms.

    public void run() {        

       // Set the thread rolling.
       mRunning = true;

       while (mRunning) {
           // and display it on the Java Swing window
           Record();
       }

       // clean up resources
       cleanup();
    }

    private void Record() {

       IVideoPicture picture = null;
       BufferedImage image = null;

       picture = GetNextPicture();
       image = Utils.videoPictureToImage(picture);

       if (picture != null) {  
           // If recording is enabled, record the webcam stream.
           if (mRecordStream) {

               // convert to the right image type
               BufferedImage bgrScreen = ConvertToType(image, BufferedImage.TYPE_3BYTE_BGR);

               // encode the image to stream #0
               mWriter.encodeVideo(0, bgrScreen, System.nanoTime() - mStartTime, TimeUnit.NANOSECONDS);
           }

           try {
               Thread.sleep(30);
           } catch (InterruptedException e) {
               return;
           }
       }
    }

    From the main thread, I do this when I want to stop the recording and close this recording thread. The cleanup() method is eventually called by the main thread to close the writer. The comment does says about writing the trailer (I guess moov atom), but it does not do it. Can someone please help me find where the problem is ?

    public void stopRecording() {      
       // Stop the thread loop.
       mRunning = false;
    }

    private void cleanup() {

       // tell the writer to close and write the trailer if  needed
       if (mWriter != null) {
           mWriter.close();
           mWriter = null;
       }

       if (mVideoCoder != null) {
           mVideoCoder.close();
           mVideoCoder = null;
       }

       if (mContainer != null) {
           mContainer.close();
           mContainer = null;
       }
    }