Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (68)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7252)

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