Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (87)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (9022)

  • Restreaming and transcoding a hls stream with FFMPEG.WASM fails due to tcp connection

    13 juillet 2021, par Hoang Nguyen

    I'm trying to implement a feature which is live transcoding a hls stream (h265) to another hls stream (h264) so the video can be played using html5 video player as we know that h265 is not supported on browsers. Quick summery of my tech stack :

    


    -Electron desktop app as the client.
-FFMPEG.WASM library : https://ffmpegwasm.github.io/

    


    (*) The on-the-fly transcoding is supposed to happen right on the client side.

    


    My dev enviroment :

    


    "devDependencies": { "electron": "^13.1.5", "electron-packager": "^13.0.1", "electron-winstaller": "^2.7.0" }

    


    There are 2 ways to use this library, one is as normal html script, and the other is nodejs style which I have tried both and get different errors (though they are all about connection) :

    


    (*) Regular JS way

    


    <code class="echappe-js">&lt;script async defer src=&quot;https://unpkg.com/@ffmpeg/ffmpeg@0.10.1/dist/ffmpeg.min.js&quot;&gt;&lt;/script&gt;&#xA;
    

    &#xA;&lt;script&gt;&amp;#xA; async function loadPlayerHEVC() {&amp;#xA;var resource = &amp;#x27;http://10.70.39.32:80/streams/60dd68fdc88f570012526657/stream/60dd68fdc8....526657.m3u8&amp;#x27;&amp;#xA;                    const { createFFmpeg } = FFmpeg;&amp;#xA;                    const ffmpeg = createFFmpeg({ log: true });&amp;#xA;                    const { fetchFile } = FFmpeg;&amp;#xA;                    await ffmpeg.load();&amp;#xA;                    await ffmpeg.run(&amp;#x27;-re&amp;#x27;,&amp;#x27;-i&amp;#x27;, resource, &amp;#x27;-vcodec&amp;#x27;, &amp;#x27;libx264&amp;#x27;, &amp;#x27;-acodec&amp;#x27;, &amp;#x27;copy&amp;#x27;, &amp;#x27;-f&amp;#x27; ,&amp;#x27;hls&amp;#x27;, &amp;#x27;-hls_list_size&amp;#x27;, &amp;#x27;3&amp;#x27;, &amp;#x27;-hls_wrap&amp;#x27;, &amp;#x27;5&amp;#x27;, &amp;#x27;playlist.m3u8&amp;#x27; );&amp;#xA;                    // ffmpeg.exit(0);&amp;#xA;                }&amp;#xA;            &lt;/script&gt;&#xA;

    &#xA;

    enter image description here

    &#xA;

    (*) Nodejs way

    &#xA;

    async function tester(url)&#xA;{&#xA;    const { createFFmpeg, fetchFile } = require(&#x27;@ffmpeg/ffmpeg&#x27;);&#xA;    const ffmpeg = createFFmpeg({ log: true });&#xA;    await ffmpeg.load();&#xA;    await ffmpeg.run(&#x27;tcp&#x27;,&#x27;-re&#x27;, &#x27;-i&#x27;, url, &#x27;-vcodec&#x27;, &#x27;libx264&#x27;, &#x27;-acodec&#x27;, &#x27;aac&#x27;, &#x27;-f&#x27;, &#x27;flv&#x27;, &#x27;-hls_list_size&#x27;, &#x27;3&#x27;, &#x27;-hls_wrap&#x27;, &#x27;5&#x27;, &#x27;playlist.m3u8&#x27;);&#xA;    // ffmpeg.exit(0);&#xA;}&#xA;

    &#xA;

    enter image description here

    &#xA;

    URL for testing

    &#xA;

    You guys can use this public stream to reproduce the scenario : http://113.163.94.245/hls-live/livepkgr/_definst_/liveevent/thbt.m3u8

    &#xA;

    Any help would be much appreciated.

    &#xA;

  • Normalizing with ffmpeg-normalize, slight variations in sound

    20 mai 2022, par Antti Rytsölä

    I have some flacs which I am trying to normalize for Spotify and Distrokid.

    &#xA;

    I got the guide from this post

    &#xA;

    ffmpeg-normalize inbound/*.flac -t -14 -lrt 11 -tp -1 -ext flac -c:a flac -of normalized/&#xA;

    &#xA;

    Now the problem is ( before submitting to Distrokid ) that when listening to normalized versions there seems to be light deviations, like muffling, to the sound at half a second lenghts.

    &#xA;

    Small sample, towards the end.

    &#xA;

    Now I'm asking for help because even though I can try different settings I still want to conform to Spotify normalization guide.

    &#xA;

    The Spotify guide is as follows :

    &#xA;

    Target the loudness level of your master at -14dB integrated LUFS &#xA;and keep it below -1dB TP (True Peak) max. This is best for lossy &#xA;formats (Ogg/Vorbis and AAC) and makes sure no extra distortion’s &#xA;introduced in the transcoding process.&#xA;&#xA;If your master’s louder than -14dB integrated LUFS, make sure &#xA;it stays below -2dB TP (True Peak) to avoid extra distortion. This &#xA;is because louder tracks are more susceptible to extra distortion &#xA;in the transcoding process.&#xA;

    &#xA;

    and

    &#xA;

     ffmpeg version N-102727-g580e168a94-tessus&#xA; ffmpeg-normalize v1.22.8&#xA;

    &#xA;

    Tracks now on Spotify.

    &#xA;

  • How to get native frame rate of vide with FFmpex ?

    18 juin 2021, par Flame_Phoenix

    Background

    &#xA;

    I have an .mp4 video and I need to get the video's frame rate. Using ffmepg (in Linux) I know I can get this information via the following command :

    &#xA;

    ffprobe -v 0 -of compact=p=0 -select_streams 0 -show_entries stream=r_frame_rate &#x27;MyVideoFIle.mp4&#x27;&#xA;

    &#xA;

    Which returns :

    &#xA;

    r_frame_rate=24000/1001&#xA;

    &#xA;

    FFmpex

    &#xA;

    Doing this in bash is fine, but what I really want is to use it in my Elixir application. To this end I found out about ffmpex.

    &#xA;

    First I tried using FFprobe :

    &#xA;

    > FFprobe.format("Devil May Cry 5 Bury the Light LITTLE V COVER.mp4")&#xA;&#xA;{:ok,&#xA; %{&#xA;   "bit_rate" => "611784",&#xA;   "duration" => "482.999000",&#xA;   "filename" => "Devil May Cry 5 Bury the Light LITTLE V COVER.mp4",&#xA;   "format_long_name" => "QuickTime / MOV",&#xA;   "format_name" => "mov,mp4,m4a,3gp,3g2,mj2",&#xA;   "nb_programs" => 0,&#xA;   "nb_streams" => 2,&#xA;   "probe_score" => 100, &#xA;   "size" => "36936415",&#xA;   "start_time" => "0.000000",&#xA;   "tags" => %{&#xA;     "compatible_brands" => "isomiso2avc1mp41",&#xA;     "encoder" => "Lavf58.19.102",&#xA;     "major_brand" => "isom",&#xA;     "minor_version" => "512"&#xA;   }&#xA; }}&#xA;

    &#xA;

    Which gives me some information, but not the frame rate.

    &#xA;

    My next tentative was to use the command options :

    &#xA;

    command = &#xA;  FFmpex.new_command() &#xA;  |> add_input_file("Devil May Cry 5 Bury the Light LITTLE V COVER.mp4") &#xA;  |> add_video_option(???) &#xA;

    &#xA;

    But the problem here is that I can't find in the documentation the video option I need to get the native frame rate. I only found vframe which is used to set the video frame rate.

    &#xA;

    Question

    &#xA;

      &#xA;
    • How can I get the native fps of a video using ffmpex ?
    • &#xA;

    &#xA;