Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (86)

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

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

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

  • Play UDP live video stream in UWP

    19 avril 2018, par Nicolas Séveno

    I need to display a live video stream in a UWP application.

    The video stream comes from a GoPro. It is transported by UDP messages. I think it is a MPEG-2 TS stream.

    I can play it successfully using FFPlay with the following command line :

    ffplay -fflags nobuffer -f:v mpegts udp://:8554

    I would like to play it with MediaPlayerElement without using a third party library.

    According to the following page :
    https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/supported-codecs
    UWP should be able to play it. (I installed the "MPEG 2 video extension" in the Windows Store).

    I tried using DatagramSocket and the MessageReceived event to receive the UDP packets, it works without problem :

    _datagramSocket = new DatagramSocket();
    _datagramSocket.MessageReceived += (s, args) =>
    {
       Debug.WriteLine("message received");
    };
    await _datagramSocket.BindServiceNameAsync(8554);

    Then I create a MseStreamSource :

    _mseStreamSource = new MseStreamSource();
    _mseStreamSource.Opened += (_, __) =>
    {
       _mseSourceBuffer = _mseStreamSource.AddSourceBuffer("video/mp2t");
    };
    this.MediaSource = MediaSource.CreateFromMseStreamSource(_mseStreamSource);

    And in the DatagramSocket.MessageReceived event I send the messages to the MseStreamSource :

    using (IInputStream stream = args.GetDataStream())
    {
       _mseSourceBuffer.AppendStream(stream);
    }

    The AppendStream method fails with error HRESULT 0x8070000B for some packets.
    If I catch the error, the MediaPlayerElement displays the message "video not supported or incorrect file name". (not sure of the message, my Windows is in French).

    Is the MseStreamSource the correct way to display the stream ? Is there a better solution ?

  • Convert *.mov file to *.mp4 with media source support

    4 février 2017, par Yerzhan Torgayev

    My goal is to play converted *.mp4 file with HTML5 Media Source Extension (MSE).
    I made a small video with iMovie on my Mac and exported this video to *.mov file. Using ffmpeg I’ve converted *.mov file to fragmented *.mp4 file.
    I used code from Mozilla Media Source tutorial to make simple html5 video player.

    https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API/Transcoding_assets_for_MSE

    But I couldn’t get my video played with this tutorial. Other *.mp4 videos play just fine. But I have troubles with converted *.mov videos.

    I’ve checked codec support for my video.
    On this page I’ve got my codec info :

    http://nickdesaulniers.github.io/mp4info/

    track #0 codec string: mp4v
    track #1 codec string: mp4a.40.2
    track #2 codec string: tmcd
    MediaSource.isTypeSupported('video/mp4; codecs="mp4v, mp4a.40.2, tmcd"'); // => false

    I found that tmcd codec is not supported by MSE :

    https://cconcolato.github.io/media-mime-support/

    I couldn’t find the way to get my video work with MSE. Can anyone help me with this issue ?

  • Anomalie #3386 : Spip derrière Varnish : port non-standard dans l’URL ?

    15 février 2015, par Mathieu MD

    Bien vu. La doc de `mod_rpaf` précise en effet qu’il réécrit « REMOTE_ADDR, HTTPS, and HTTP_PORT to the values provided by an upstream proxy ».

    Ça n’a pas l’air d’être le cas du module Realip de Nginx (que j’utilise), ni de mod_remoteip, qui remplace mod_rpaf depuis Apache 2.4.
    http://wiki.nginx.org/HttpRealipModule
    https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

    On pourrait forcer, dans la conf Varnish, un entête `X-Forwarded-Port` qui serait parsé directement par Spip. Quelque chose comme ça :

    • Varnish :

    Soit :

    sub vcl_recv 
        set req.http.X-Forwarded-Port = server.port ;
    
    

    Soit :

    sub vcl_recv 
        if (req.http.X-Forwarded-Proto == "https" ) 
            set req.http.X-Forwarded-Port = "443" ;
         else 
            set req.http.X-Forwarded-Port = "80" ;
        
    
    
    • Spip, dans `ecrire/inc/utils.php` :
      if (isset($_SERVER[’SERVER_PORT’])
        AND $port=$_SERVER[’SERVER_PORT’]
        AND strpos($host," :")==false)
        # X-Forwarded-Port doit être ajouté par le proxy inverse (Varnish, etc.)
        if (isset($_SERVER[’HTTP_X_FORWARDED_PORT’])
          AND $xport=$_SERVER[’HTTP_X_FORWARDED_PORT’])
          if ($http=="http" AND $xport !=80) $host.=" :$xport" ;
          if ($http=="https" AND $xport !=443) $host.=" :$xport" ;
         else 
          if ($http=="http" AND $port !=80) $host.=" :$port" ;
          if ($http=="https" AND $port !=443) $host.=" :$port" ;