Recherche avancée

Médias (1)

Mot : - Tags -/géodiversité

Autres articles (27)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (3598)

  • Video encoding and decoding by the player during online playback [closed]

    10 janvier 2024, par rahkarenovin

    I made a player to stream the video.

    


    I want to do 32-bit encoding on the video with the help of ffmpeg.
so that the video will only play in my player.

    


    The problems I have :

    


      

    1. I want to put my 32-bit password in the player, the player will check this password while playing the video, if the password is the same, the video will be played.

      


    2. 


    3. I don't know how to decode the video with the below player.

      


    4. 


    


    What code is needed ? What command can I use to decode the video ?

    


    My player code :

    


    <div class="grid">&#xA;    <main>&#xA;        <div>&#xA;            &#xA;            &#xA;        </div>&#xA;    </main>&#xA;</div>&#xA;&#xA;<code class="echappe-js">&lt;script&amp;#xA;    type=&quot;text/javascript&quot;&amp;#xA;    src=&quot;https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,Array.prototype.includes,CustomEvent,Object.entries,Object.values,Math.trunc&quot;&amp;#xA;    crossorigin=&quot;anonymous&quot;&amp;#xA;&gt;&lt;/script&gt;&#xA;&#xA;&lt;script type=&quot;text/javascript&quot; src=&quot;https://cdn.plyr.io/3.5.2/plyr.js&quot;&gt;&lt;/script&gt;&#xA;&#xA;&lt;script type=&quot;text/javascript&quot; src=&quot;https://cdn.jsdelivr.net/npm/hls.js@latest&quot;&gt;&lt;/script&gt;&#xA;&#xA;&lt;script&gt;&amp;#xA;    const source = &amp;#x27;https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8&amp;#x27;;&amp;#xA;    const player = new Plyr(&amp;#x27;#player&amp;#x27;);&amp;#xA;    var video = document.getElementById(&amp;#x27;player&amp;#x27;);&amp;#xA;    if(Hls.isSupported()) {&amp;#xA;       var hls = new Hls();&amp;#xA;       hls.loadSource(source);&amp;#xA;       hls.attachMedia(video);&amp;#xA;       hls.on(Hls.Events.MANIFEST_PARSED,function() {&amp;#xA;           video.play();&amp;#xA;        });&amp;#xA;    }else if (video.canPlayType(&amp;#x27;application/vnd.apple.mpegurl&amp;#x27;)) {&amp;#xA;       video.src = source;&amp;#xA;       video.addEventListener(&amp;#x27;loadedmetadata&amp;#x27;,function() {&amp;#xA;           video.play();&amp;#xA;        });&amp;#xA;    }&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

  • Online RTMP radio with Python + FFmpeg + Nginx : unable to have a continuous output stream

    2 décembre 2023, par Igor Longo

    Thinking about an application similar to an online radio, I'm trying to transmit a sequence of audio files chosen by the user, where he chooses which file will be played in the sequence, sufficiently in advance for the reproduction not to be muted. I'm using FFmpeg in a Python script and an RTMP server running Nginx.&#xA;The problem is that interrupting the transmission between one file and another appears to be breaking the transmission on output. Sometimes files are skipped and other times it simply crashes for the client.

    &#xA;

    I have already tried transmitting the sequence of files in real time, using '-re', and I have also tried not using '-re', creating a custom queue manager in Python with the intention of trying to keep only 'n' files in the server buffer .&#xA;Below is an excerpt of the code :

    &#xA;

    ffmpeg_command = [&#xA;'ffmpeg',&#xA;'-loglevel', 'warning',&#xA;# '-re', # read input at native frame rate&#xA;'-i', file_path,&#xA;'-c:a', 'aac',&#xA;'-ar', '44100',&#xA;'-bufsize', '1024k',&#xA;'-af', 'atempo=1.0',&#xA;'-b:a', '128k',&#xA;'-f', 'flv',&#xA;'-flvflags', 'no_duration_filesize',&#xA;rtmp_url # server url&#xA;]&#xA;subprocess.run(ffmpeg_command, check=True)

    &#xA;

    Any tips on how I can resolve this ?

    &#xA;

  • avcodec/hevcdec : Check early whether film grain is supported, fix race

    22 août 2022, par Andreas Rheinhardt
    avcodec/hevcdec : Check early whether film grain is supported, fix race
    

    Applying film grain happens after ff_thread_finish_setup(),
    so the parameters synced in hevc_update_thread_context() must not
    be modified. But this is exactly what happens in case applying
    film grain fails. (The likely result is that in case of frame threading
    an uninitialized frame is output.)

    Given that it is actually very easy to know in advance whether
    ff_h274_apply_film_grain() supports a given set of parameters,
    one can check for this before ff_thread_finish_setup()
    and avoid allocating an unused buffer lateron.

    Reviewed-by : Niklas Haas <ffmpeg@haasn.xyz>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/h274.h
    • [DH] libavcodec/hevcdec.c
    • [DH] libavcodec/hevcdec.h