Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (33)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6632)

  • FFMPEG & ScrollMagic : Safari bug

    27 novembre 2020, par gusv7

    I got this site where video playback is linked to scroll position. I'm using a FFMPEG-encoded .mp4 file and ScrollMagic to handle the scroll event. It works perfectly on Chrome, Opera and FF, but crashes on Safari : the animation is delayed and the video disappears once it reaches the end of the playback on Safari OS. It also doesn't show on iOS, not in Safari or Chrome... :/

    


    Here's the markup :

    


    <section class="shaka-container padding-x-lg flex-end">&#xA;  <div class="shaka">&#xA;    <video src="/assets/maozinha.mp4" type="video/mp4" playsinline="true"></video>&#xA;  </div>&#xA;</section>&#xA;

    &#xA;

    The JS :

    &#xA;

    &#xA;<code class="echappe-js">&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js&quot;&gt;&lt;/script&gt;&#xA;&#xA;&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js&quot; integrity=&quot;sha512-8E3KZoPoZCD&amp;#x2B;1dgfqhPbejQBnQfBXe8FuwL4z/c8sTrgeDMFEnoyTlH3obB4/fV&amp;#x2B;6Sg0a0XF&amp;#x2B;L/6xS4Xx1fUEg==&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;&#xA;&#xA;&lt;script&gt;&amp;#xA;  // Shaka Animation&amp;#xA;    const intro = document.querySelector(&amp;#x27;.shaka&amp;#x27;);&amp;#xA;    const video = intro.querySelector(&amp;#x27;video&amp;#x27;);&amp;#xA;&amp;#xA;    // SCROLL MAGIC&amp;#xA;&amp;#xA;    const controller = new ScrollMagic.Controller();&amp;#xA;&amp;#xA;    // Scenes&amp;#xA;    const scene = new ScrollMagic.Scene({&amp;#xA;      duration: 0,&amp;#xA;      triggerElement: intro,&amp;#xA;      triggerHook: 0,   &amp;#xA;    })&amp;#xA;    .addTo(controller);&amp;#xA;&amp;#xA;    // Video Animation&amp;#xA;&amp;#xA;    let accelamount = 0.5;&amp;#xA;    let scrollpos = 0;&amp;#xA;    let delay = 0;&amp;#xA;&amp;#xA;    scene.on(&amp;#x27;update&amp;#x27;, e =&gt; {&amp;#xA;      scrollpos = e.scrollPos / 1000;&amp;#xA;    });&amp;#xA;&amp;#xA;    setInterval(() =&gt; {&amp;#xA;      delay &amp;#x2B;= (scrollpos - delay) * accelamount;&amp;#xA;      video.currentTime = delay;&amp;#xA;    }, 24);&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

    I wonder if the video encoding is the issue or how Safari processes the video playback ? I've used the following encoding for the video :

    &#xA;

    First :&#xA;ffmpeg -i ~/assets/mao-final.mp4 -vf scale=960:-2 -movflags faststart -vcodec libx264 -crf 20 -g 1 -pix_fmt yuv420p mao-final-960.mp4

    &#xA;

    Then,&#xA;ffmpeg -i ~/assets/mao-final.mp4 -vf scale=960:-2 -movflags faststart -vcodec libx264 -crf 20 -g 1 -pix_fmt yuv420p maozinha.mp4

    &#xA;

    I'm considering changing it to a canvas animation if I can't get to a solution. Please help !

    &#xA;

  • How to merge segmented webvtt subtitle files and output a single file ?

    15 février, par Dobbelina

    How to merge a segmented webvtt subtitle file and output a single file ?,&#xA;m3u8 looks like this example :

    &#xA;&#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:4&#xA;#EXT-X-PLAYLIST-TYPE:VOD&#xA;#EXT-X-MEDIA-SEQUENCE:1&#xA;#EXT-X-INDEPENDENT-SEGMENTS&#xA;#EXT-X-TARGETDURATION:4&#xA;#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z&#xA;#EXTINF:4, no desc&#xA;0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-1.webvtt&#xA;#EXTINF:4, no desc&#xA;0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-2.webvtt&#xA;#EXTINF:4, no desc&#xA;0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-3.webvtt&#xA;#EXTINF:4, no desc&#xA;0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-4.webvtt&#xA;#EXTINF:4, no desc&#xA;0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-5.webvtt&#xA;#EXTINF:4, no desc&#xA;0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-6.webvtt&#xA;#EXT-X-ENDLIST&#xA;

    &#xA;&#xA;

    I noticed that each segment is not synchronized/cued against total playing time, but against the individual ts segments.&#xA;If ffmpeg could be used to do this, what magic input do i need to give it ?

    &#xA;&#xA;

    A single correctly cued vtt or srt file is what i want.

    &#xA;&#xA;

    I have a great appetite and don't like chunks, lol !

    &#xA;&#xA;

    Thanks for any replies you lovely people !

    &#xA;&#xA;


    &#xA;&#xA;

    With this i get a merged vtt file, but the cues are all wrong :

    &#xA;&#xA;

    ffmpeg -i "https://cmoreseusphlsvod60.akamaized.net/vod/bea44/0ghzi1b2cz5(11792107_ISMUSP).ism/0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000.m3u8" -f segment -segment_time 4 -segment_format webvtt -scodec copy out-%05d.vtt&#xA;

    &#xA;&#xA;

    Each segment is not synchronized/cued against total playing time, but against the individual ts segments.&#xA;Example output of above command :

    &#xA;&#xA;

    WEBVTT&#xA;&#xA;00:00.000 --> 00:03.040&#xA;Du har aktier i ett f&#xF6;retag&#xA;som saknar framtid.&#xA;&#xA;00:00.000 --> 00:03.280&#xA;De vill ha aktierna.&#xA;Du k&#xE4;nner dem inte, Olga.&#xA;&#xA;00:00.000 --> 00:01.720&#xA;De som f&#xE5;r Kastrups aktier vinner.&#xA;

    &#xA;&#xA;

    Cues all start like this which isn't very helpfull : 00:00.000

    &#xA;&#xA;

    Some segments contains no cues, like segment 15 for example :&#xA;https://cmoreseusphlsvod60.akamaized.net/vod/bea44/0ghzi1b2cz5(11792107_ISMUSP).ism/0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-15.webvtt

    &#xA;&#xA;

    &#xA;

    "A WebVTT Segment MAY contain no cues ; this indicates that no&#xA; subtitles are to be displayed during that period."

    &#xA;

    &#xA;

  • FFmpeg cant recognize 3 channels with each 32 bit

    4 avril 2022, par Chryfi

    I am writing the linearized depth buffer of a game to openEXR using FFmpeg. Unfortunately, FFmpeg does not adhere to the openEXR file specification fully (like allowing unsigned integer for one channel) so I am writing one float channel to openEXR, which is put into the green channel with this command -f rawvideo -pix_fmt grayf32be -s %WIDTH%x%HEIGHT% -r %FPS% -i - -vf %DEFVF% -preset ultrafast -tune zerolatency -qp 6 -compression zip1 -pix_fmt gbrpf32le %NAME%_depth_%d.exr.

    &#xA;

    The float range is from 0F to 1F and it is linear. I can confirm that the calculation and linearization is correct by testing 16 bit integer (per pixel component) PNG in Blender compositor. The 16 bit integer data is written like this short s = (short) (linearzieDepth(depth) * (Math.pow(2,16) - 1)) whereas for float the linearized value is directly written to OpenEXR without multiplying with a value.

    &#xA;

    However, when viewing the openEXR file it doesn't have the same "gradient" as the 16 bit png... when viewing them side by side, it appears as if the values near 0 are not linear, and they are not as dark as they should be like in the 16 bit png.&#xA;(And yes, I set the image node to linear), and comparing it with 3d tracking data from the game I cant reproduce the depth and cant mask things using the depth buffer where as with the png I can.

    &#xA;

    How is it possible for a linear float range to turn out so different to a linear integer range in an image ?

    &#xA;

    UPDATE :

    &#xA;

    I now write 3 channels to the ffmpeg with this code

    &#xA;

    float f2 = this.linearizeDepth(depth);&#xA;&#xA;buffer.putFloat(f2);&#xA;buffer.putFloat(0);&#xA;buffer.putFloat(0);&#xA;

    &#xA;

    the byte buffer is of the size width * height * 3 * 4 -> 3 channels with each 4 bytes. The command is now -f rawvideo -pix_fmt gbrpf32be -s %WIDTH%x%HEIGHT% -r %FPS% -i - -vf %DEFVF% -preset ultrafast -tune zerolatency -qp 6 -compression zip1 -pix_fmt gbrpf32le %NAME%_depth_%d.exr which should mean that the input (byte buffer) is expecting 32 bit floats with 3 channels. This is how it turns out

    &#xA;

    FFmpeg is somehow splitting up channels or whatever... could be a bug, could be my fault ?

    &#xA;