Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (107)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (16377)

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

  • FFMpeg to resize any video to fit 1080x1920 vertical, without cropping, instead by shrinking and adding blurred borders ?

    19 mars 2021, par Max

    I found some posts explaining how to turn any video horizontal by adding blurred borders using FFMpeg, but I want to convert videos to vertical 1080x1920. I don't want it to enlarge the video, nor crop if a dimension is bigger than either 1080 or 1920 dimension. Instead, I want it to shrink the video until it fits fully inside 1080x1920, and then I want it to add blurred borders to the empty areas.

    &#xA;

    This is the snippet I found, but when I tried reversing the numbers, it actually cropped the video.

    &#xA;

    ffmpeg -I input.mp4 -lavfi "[0:v]scale=1920*2:1080*2,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[0:v]scale=-1:1080[ov];[bg][ov]overlay=(W-w)/2:(H-h)/2,crop=w=1920:h=1080" output.mp4

    &#xA;

  • ffmpeg concat vertical video, different dimensions [duplicate]

    16 octobre 2020, par Morris

    Context :&#xA;3 input videos :

    &#xA;

    foo.mov : 1080x1920 (vertical, NOT horizontal) with audio.

    &#xA;

    bar.mp4 and fiz.mp4 : 480x360, with audio.&#xA;(Note : .mp4, differs from .mov)

    &#xA;

    Goal : to concat all 3 videos. Output out.mp4 should be 480x360. Squeeze foo.mov but keep its aspect ratio, taking up 100% height, but the slim video should stand only in the center, with left and right sides being black (or other color) void. foo.mov should not be cropped.

    &#xA;

    I currently have this command below (added new-line characters for better visualization) for concating, but need to fill the missing code at PLACEHOLDER1 to generate v0, such that v0 is resized to 480x360 like described above. If my attempt so far is correct, please help complete PLACEHOLDER1 ; else, please offer a better solution with explanation.

    &#xA;

    ffmpeg &#xA;-r 24 -i foo.mov &#xA;-r 24 -i bar.mp4 &#xA;-r 24 -i fiz.mp4&#xA;-filter_complex &#xA;"[0:v] PLACEHOLDER1 [v0];&#xA;[v0][1][2] concat=n=3:v=1:a=1 [v][a]" &#xA;-map "[v]" -map "[a]" out.mp4&#xA;

    &#xA;

    Running

    &#xA;

    ffmpeg -n -i foo.MOV -i bar.mp4 -i fiz.mp4&#xA;

    &#xA;

    gives this info :

    &#xA;

    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.3 (clang-1103.0.32.62)&#xA;  [...configuration omitted...]&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;foo.MOV&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    creation_time   : [omitted]&#xA;    com.apple.quicktime.make: [omitted]&#xA;    com.apple.quicktime.model: [omitted]&#xA;    com.apple.quicktime.software: [omitted]&#xA;    com.apple.quicktime.creationdate: [omitted]&#xA;  Duration: 00:00:04.71, start: 0.000000, bitrate: 17579 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 17492 kb/s, 24 fps, 24 tbr, 600 tbn, 1200 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      creation_time   : [omitted]&#xA;      handler_name    : Core Media Video&#xA;      encoder         : H.264&#xA;    Side data:&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : [omitted]&#xA;      handler_name    : Core Media Audio&#xA;    Stream #0:2(und): Data: none (mebx / 0x7862656D), 9 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : [omitted]&#xA;      handler_name    : Core Media Metadata&#xA;    Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : [omitted]&#xA;      handler_name    : Core Media Metadata&#xA;&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;bar.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;  Duration: 00:00:01.94, start: 0.000000, bitrate: 641 kb/s&#xA;    Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/unknown/smpte170m), 480x360 [SAR 1:1 DAR 4:3], 354 kb/s, 24.58 fps, 24.58 tbr, 113734695.00 tbn, 49.16 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 280 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      &#xA;Input #2, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;fiz.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;  Duration: 00:00:01.98, start: 0.000000, bitrate: 725 kb/s&#xA;    Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/unknown/smpte170m), 480x360 [SAR 1:1 DAR 4:3], 442 kb/s, 24.58 fps, 24.58 tbr, 113734695.00 tbn, 49.16 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 278 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;

    &#xA;