Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (110)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (11947)

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