Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (41)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4807)

  • avcodec/pngdec : Fix APNG_DISPOSE_OP_BACKGROUND

    20 août 2022, par Andreas Rheinhardt
    avcodec/pngdec : Fix APNG_DISPOSE_OP_BACKGROUND
    

    APNG works with a single reference frame and an output frame.
    According to the spec, decoding APNG works by decoding
    the current IDAT/fdAT chunks (which decodes to a rectangular
    subregion of the whole image region), followed by either
    overwriting the region of the output frame with the newly
    decoded data or by blending the newly decoded data with
    the data from the reference frame onto the current subregion
    of the output frame. The remainder of the output frame
    is just copied from the reference frame.
    Then the reference frame might be left untouched
    (APNG_DISPOSE_OP_PREVIOUS), it might be replaced by the output
    frame (APNG_DISPOSE_OP_NONE) or the rectangular subregion
    corresponding to the just decoded frame has to be reset
    to black (APNG_DISPOSE_OP_BACKGROUND).

    The latter case is not handled correctly by our decoder :
    It only performs resetting the rectangle in the reference frame
    when decoding the next frame ; and since commit
    b593abda6c642cb0c3959752dd235c2faf66837f it does not reset
    the reference frame permanently, but only temporarily (i.e.
    it only affects decoding the frame after the frame with
    APNG_DISPOSE_OP_BACKGROUND). This is a problem if the
    frame after the APNG_DISPOSE_OP_BACKGROUND frame uses
    APNG_DISPOSE_OP_PREVIOUS, because then the frame after
    the APNG_DISPOSE_OP_PREVIOUS frame has an incorrect reference
    frame. (If it is not followed by an APNG_DISPOSE_OP_PREVIOUS
    frame, the decoder only keeps a reference to the output frame,
    which is ok.)

    This commit fixes this by being much closer to the spec
    than the earlier code : Resetting the background is no longer
    postponed until the next frame ; instead it is applied to
    the reference frame.

    Fixes ticket #9602.

    (For multithreaded decoding it was actually already broken
    since commit 5663301560d77486c7f7c03c1aa5f542fab23c24.)

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/pngdec.c
  • Audio and video out of sync. Stream mp4 files Concatenation using fluent-ffmpeg

    13 mars 2021, par JosepB

    First of all sorry if the question is duplicated. But I couldn't find out the right answer in other questions.

    &#xA;

    I'm trying to concatenate AWS S3 mp4 files using streams and fluent-ffmpeg. I managed to download and upload the concatenated files without storing it to the disk.

    &#xA;

    The concatenation seems correct but when I'm selecting a point in time of the video player (VLC media player or QuickTime) time bar seems the audio and video are out of sync.

    &#xA;

    This is the nodejs fluent-ffmpeg implementation :

    &#xA;

    concatenation = (listFileName, passthroughStream) => {&#xA;&#xA;    return new Promise((resolve) => {  &#xA;        let command = ffmpeg().input(listFileName)&#xA;            .inputOptions([&#x27;-f concat&#x27;, &#x27;-safe 0&#x27;, &#x27;-protocol_whitelist&#x27;, &#x27;file,http,tcp,https,tls&#x27;])&#xA;            //.videoCodec(&#x27;libx264&#x27;)&#xA;            .outputFormat(&#x27;mp4&#x27;)&#xA;            .outputOptions(&#x27;-movflags frag_keyframe&#x2B;empty_moov&#x27;)&#xA;            &#xA;            var ffstream = command.on(&#x27;end&#x27;, function() {&#xA;                const result = &#x27;files have been merged succesfully&#x27;;&#xA;                resolve(result);&#xA;            })&#xA;            .on(&#x27;error&#x27;, function(err) {&#xA;                console.log(&#x27;an error happened: &#x27; &#x2B; err.message);&#xA;                reject(err);&#xA;            }).pipe(passthroughStream);&#xA;            ffstream.on(&#x27;data&#x27;, ((chunk) => {&#xA;                console.log(&#x27;ffmpeg just wrote &#x27; &#x2B; chunk.length &#x2B; &#x27; bytes&#x27;);&#xA;            }));&#xA;    });        &#xA;}&#xA;

    &#xA;

    I'm using S3 file signed URLs in the file. Somthing like this :

    &#xA;

    file &#x27;https://bucket.s3.region.amazonaws.com/file_0.mp4&#x27;&#xA;file &#x27;https://bucket.s3.region.amazonaws.com/file_1.mp4&#x27;&#xA;

    &#xA;

    I think that this out of sync is because of the fragmentated output and maybe is not possible to do that without downloading the files, but maybe there's a possible solution.

    &#xA;

    Is there some way to do the mp4 concatenation without storing the files to the disk ? Or am I doing something wrong ?

    &#xA;

  • how to crop the video with ffmpeg . needed c api to do same

    9 avril 2016, par OpenSource

    I want to crop the video at particular portion.Given height,width,x and y ,I want crop the particular region on the video with help of ffmpeg in iOS.
    any help