Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (73)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (7840)

  • 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" ;