Recherche avancée

Médias (91)

Autres articles (106)

  • 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

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

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (11709)

  • Explicit deinitialization of progress listeners.

    14 octobre 2018, par blueimp
    Explicit deinitialization of progress listeners.
    This addresses a memory leak with Microsoft Edge.
    Thanks @butonic for the report, investigation and fix.
    Closes #3508
  • avformat/mpegtsenc : Fix mpegts_write_pes() for private_stream_2 and other types

    25 avril 2021, par zheng qian
    avformat/mpegtsenc : Fix mpegts_write_pes() for private_stream_2 and other types
    

    According to the PES packet definition defined in Table 2-17 of ISO_IEC_13818-1
    specification, some fields like PTS/DTS or pes_extension could only appears if
    the stream_id meets the condition :

    if (stream_id != 0xBC && // program_stream_map
    stream_id != 0xBE && // padding_stream
    stream_id != 0xBF && // private_stream_2
    stream_id != 0xF0 && // ECM
    stream_id != 0xF1 && // EMM
    stream_id != 0xFF && // program_stream_directory
    stream_id != 0xF2 && // DSMCC_stream
    stream_id != 0xF8) // ITU-T Rec. H.222.1 type E stream

    And the following stream_id types don't have fields like PTS/DTS :

    else if ( stream_id == program_stream_map
    || stream_id == private_stream_2
    || stream_id == ECM
    || stream_id == EMM
    || stream_id == program_stream_directory
    || stream_id == DSMCC_stream
    || stream_id == ITU-T Rec. H.222.1 type E stream )
    for (i = 0 ; i < PES_packet_length ; i++)
    PES_packet_data_byte

    Current implementation skipped the check of stream_id causing some kind of
    streams like private_stream_2 to be incorrectly written with actually a
    private_stream_1-like PES header with PTS/DTS field. For example, Japan DTV
    transmits news and alerts through ARIB superimpose that utilizes
    private_stream_2 still could not be remuxed correctly for now.

    This patch set fixes the remuxing for private_stream_2 and
    other stream_id types.

    Signed-off-by : zheng qian <xqq@xqq.im>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/mpegtsenc.c
  • Play HLS segments through Media source extensions

    11 février 2018, par ler

    I got a list of m4s and init.mp4 from this FFMPEG command

    ffmpeg -i bunny.mp4 -f hls -hls_segment_type fmp4 -c:v copy playlist.m3u8

    I send those chunks using Socketand try to play them through MSE.
    When i send them in this order :

    init.mp4 + playlist0.m4s + playlist1.m4s ...

    They play without any problem, But when i want to start from the chunk number 3 meaning init.mp4 + playlist3.m4s for example i get this error :

    video frame with PTS 0us has negative DTS -80000us after applying timestampOffset, handling any discontinuity, and filtering against append window.

    I want to be able to start from any chunk, currently the only way to play the video is to star by init.mp4 + playlist0.m4s meaning playlist0.m4s because init.mp4 contain just headers of the video, This is the client code i’m using :

    var socket = io();
    var video = document.querySelector('video');
    var mimeCodec = 'video/mp4; codecs="avc1.64000d,mp4a.40.2"'; // true
    if ('MediaSource' in window &amp;&amp; MediaSource.isTypeSupported(mimeCodec))
    {
       var mediaSource = new MediaSource;
       video.src = URL.createObjectURL(mediaSource);
       mediaSource.addEventListener('sourceopen', function () {
               var mediaSource = this;
               var sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);
              sourceBuffer.mode = 'segments';
               sourceBuffer.addEventListener('updateend', function (_) { video.play().then(function() { }).catch(function(error) { }); });
               socket.on('broadcast', function (chunk) {
                   downloadData(chunk.uri, function(arrayBuffer) {
                       sourceBuffer.appendBuffer(arrayBuffer);
                   });
               });
       });
    } else {
       console.error('Unsupported MIME type or codec: ', mimeCodec);
    }
    function downloadData(url, cb) {
       var xhr = new XMLHttpRequest;
       xhr.open('get', url);
       xhr.responseType = 'arraybuffer';
       xhr.onload = function () {
           cb(new Uint8Array(xhr.response));
       };
       xhr.send();
    }