Recherche avancée

Médias (1)

Mot : - Tags -/géodiversité

Autres articles (96)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (9126)

  • Can the outputFile of MediaRecorder be a named pipe ?

    13 avril 2017, par Harrison

    Following
    Android Camera Capture using FFmpeg
    and
    feed raw yuv frame to ffmpeg with timestamp

    I successfully put raw frames of Android phone camera into a named pipe made by mkfifo, and used ffmpeg to process them and generated a video file.

    But the problem is that by ffmpeg, the encoding is very slow, it can only process 3 5 frames per second. The reason I have to use ffmpeg instead of MediaRecorder is that later I need to use ffmpeg to generate HLS segments and m3u8 file.

    So I have to turn to use native encoder like MediaRecorder and try to set its OutputFile to a named pipe following
    How to use unix pipes in Android

    My code likes this,

    private String pipe = "/data/data/com.example/v_pipe1";
    ...
    mMediaRecorder.setOutputFile(pipe);
    ...
    mMediaRecorder.start();

    Also I have a ffmpeg thread to use this pipe as the input.

    But when I call mMediaRecorder.start() ; It will throw java.lang.IllegalStateException. I’ve tried to put ffmpeg thread before or after calling mMediaRecorder.start(), but with the same error.

    I have no idea about this now. Could someone tell me how to solve this ?
    Any suggestions are welcome and appreciated. Thanks.

  • Javascript, method chaining, how to realize response in callback ?

    12 avril 2017, par CHBS

    Good afternoon, ladies and gentlemen.
    I write for myself a module on node js, I can not implement the save () function

    module.exports = function(filename, callback){
       this.callback = callback(require(filename));
       return {
           save: function() {
               console.log(this);
               //fs.writeFile(filename, 'Hello Node.js');
           }
       };
    }

    File('file.json', function(data){
       data['blablabla'] = 12345;
    }).save();

    How from a callback, to transfer the changed copy of a file in save (), and there already to save it through fs ?
    I’m interested in the implementation of the fluent-ffmpeg function save ()

    ffmpeg('/path/to/file.avi')
    .videoCodec('libx264')
    .audioCodec('libmp3lame')
    .size('320x240')
    .on('error', function(err) {
      console.log('An error occurred: ' + err.message);
    })
    .on('end', function() {
      console.log('Processing finished !');
    })
    .save('/path/to/output.mp4');

    And as well as implemented on() ?

    on('end'),  
    on('error'),  
    on('response'),

    I will be grateful for the information provided.

  • avcodec/h264, videotoolbox : fix crash after VT decoder fails

    21 février 2017, par Aman Gupta
    avcodec/h264, videotoolbox : fix crash after VT decoder fails
    

    The way videotoolbox hooks in as a hwaccel is pretty hacky. The VT decode
    API is not invoked until end_frame(), so alloc_frame() returns a dummy
    frame with a 1-byte buffer. When end_frame() is eventually called, the
    dummy buffer is replaced with the actual decoded data from
    VTDecompressionSessionDecodeFrame().

    When the VT decoder fails, the frame returned to the h264 decoder from
    alloc_frame() remains invalid and should not be used. Before
    9747219958060d8c4f697df62e7f172c2a77e6c7, it was accidentally being
    returned all the way up to the API user. After that commit, the dummy
    frame was unref’d so the user received an error.

    However, since that commit, VT hwaccel failures started causing random
    segfaults in the h264 decoder. This happened more often on iOS where the
    VT implementation is more likely to throw errors on bitstream anomolies.
    A recent report of this issue can be see in
    http://ffmpeg.org/pipermail/libav-user/2016-November/009831.html

    The issue here is that the dummy frame is still referenced internally by the
    h264 decoder, as part of the reflist and cur_pic_ptr. Deallocating the
    frame causes assertions like this one to trip later on during decoding :

    Assertion h->cur_pic_ptr->f->buf[0] failed at src/libavcodec/h264_slice.c:1340

    With this commit, we leave the dummy 1-byte frame intact, but avoid returning it
    to the user.

    This reverts commit 9747219958060d8c4f697df62e7f172c2a77e6c7.

    Signed-off-by : wm4 <nfxjfg@googlemail.com>

    • [DH] libavcodec/h264_refs.c
    • [DH] libavcodec/h264dec.c
    • [DH] libavcodec/version.h
    • [DH] libavcodec/videotoolbox.c