Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (3)

  • Les images

    15 mai 2013
  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (1816)

  • How to make ffmpeg re-encode an vp9 webm with alpha into a vp9 webm with alpha

    28 juillet 2021, par LemmeTestThat

    I am trying to find optimal parameters for encoding a transparent video using ffmpeg in my scenario, and as a test, I have been re-encoding a pre-made transparent .webm (vp9 with alpha channel, made using python vidgear) like this :

    &#xA;

    $ /usr/bin/ffmpeg -i pre-made.webm pre-made-remade.webm&#xA;ffmpeg version 4.3.2-0york0~18.04 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;  configuration: --prefix=/usr --extra-version=&#x27;0york0~18.04&#x27; --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp&#xA;--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#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;Input #0, matroska,webm, from &#x27;pre-made.webm&#x27;:&#xA;  Metadata:&#xA;    ENCODER         : Lavf58.45.100&#xA;  Duration: 00:01:11.04, start: 0.000000, bitrate: 1107 kb/s&#xA;    Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv), 1514x1910, SAR 1:1 DAR 757:955, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      alpha_mode      : 1&#xA;      ENCODER         : Lavc58.91.100 libvpx-vp9&#xA;      DURATION        : 00:01:11.040000000&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (vp9 (native) -> vp9 (libvpx-vp9))&#xA;Press [q] to stop, [?] for help&#xA;[libvpx-vp9 @ 0x55927254b0c0] v1.7.0&#xA;[libvpx-vp9 @ 0x55927254b0c0] Neither bitrate nor constrained quality specified, using default CRF of 32&#xA;Output #0, webm, to &#x27;pre-made-remade.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 1514x1910 [SAR 1:1 DAR 757:955], q=-1--1, 25 fps, 1k tbn, 25 tbc (default)&#xA;    Metadata:&#xA;      alpha_mode      : 1&#xA;      DURATION        : 00:01:11.040000000&#xA;      encoder         : Lavc58.91.100 libvpx-vp9&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;frame= 1776 fps=8.9 q=0.0 Lsize=    6159kB time=00:01:11.00 bitrate= 710.6kbits/s speed=0.354x&#xA;video:6146kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.214488%&#xA;

    &#xA;

    According to the ffmpeg logs, the libvpx-vp9 is correctly being chosen, and alpha_mode is 1, which bodes well.&#xA;However, when actually viewing the video, the video is no longer trasparent.

    &#xA;

    How could I force ffmpeg to keep the alpha channel when re-encoding the video ? (This also applies when trying to merge audio into the .webm)

    &#xA;

    Bonus question : what arguments do you recommend for efficient vp9 encoding ? I have tried using -threads 16 -speed 4 -tile-columns 6 -frame-parallel 1 -row-mt 1 but it seems to fail at fully utilizing all my CPU cores when encoding with the alpha channel (when piping frames from my python script).

    &#xA;

  • ffmpeg -i not working when converting media files to mp4

    14 août 2021, par outtobias0x9

    I'm using FFmpeg to convert my media file because It's a free source. But can't figure out how to use it. It takes one and a half hour just to troubleshoot but I totally messed up ! I went here to seek any help (I'm using windows 8.1 OS)

    &#xA;

    I configure path

    &#xA;

    command : ffmpeg -i invalid ? why ?

    &#xA;

    It seems working

    &#xA;

    i:no such file or directory ?

    &#xA;

    I even tried New version 2021, but still "Missing argument for option 'i'

    &#xA;

  • Creating video thumbnail with ffmpeg from buffer

    28 juillet 2021, par J. Carpenter

    Attempting to create a child process which spawns ffmpeg command. Should use the buffer from fs.readFile to write to stdin. The -i - flag tells ffmpeg to source input from stdin but nothing is happening when running this code.

    &#xA;

    If replace -i - with -i test.mp4 this script works perfectly.

    &#xA;

    What is wrong with the write to stdin which is not allowing code to generate thumbnail ?

    &#xA;

    (async () => {&#xA;    const spawn = require(&#x27;child_process&#x27;).spawn;&#xA;    const fs = require(&#x27;fs/promises&#x27;);&#xA;    const buffer = await fs.readFile(&#x27;test.mp4&#x27;);&#xA;    await new Promise((resolve) => {&#xA;        console.log(&#x27;Spawning process&#x27;);&#xA;        const process = spawn(&#x27;ffmpeg&#x27;,&#xA;            [&#xA;                &#x27;-ss&#x27;, &#x27;00:00:01&#x27;,&#xA;                &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;                &#x27;-s&#x27;, &#x27;256x256&#x27;,&#xA;                &#x27;-vframes&#x27;, &#x27;1&#x27;,&#xA;                &#x27;-f&#x27;, &#x27;image2&#x27;,&#xA;                &#x27;output.png&#x27;&#xA;            ]);&#xA;        process.stdin.write(buffer);&#xA;        process.stdin.end();&#xA;        process.on(&#x27;close&#x27;, (done) => {&#xA;            console.log("Process closed: ", done);&#xA;            resolve();&#xA;        });&#xA;    });&#xA;})();&#xA;

    &#xA;

    Edit :

    &#xA;

    Also tried this :

    &#xA;

    const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;module.exports =&#xA;    async (stream) => {&#xA;        ffmpeg(stream)&#xA;        .addOption(&#x27;-f&#x27;,&#x27;rawvideo&#x27;)&#xA;        .inputFormat(&#x27;mov&#x27;)&#xA;        .toFormat(&#x27;mp4&#x27;)&#xA;        .thumbnail({&#xA;            count:1,&#xA;            size:&#x27;256x256&#x27;,&#xA;            filename:&#x27;test.png&#x27;,&#xA;            timemarks:["00:00:03"]&#xA;        })&#xA;        .on(&#x27;stdout&#x27;,(stdout)=>{&#xA;            console.log(stdout);&#xA;        })&#xA;        .on(&#x27;stderr&#x27;,(err)=>{&#xA;            console.log(err);&#xA;        });&#xA;    }&#xA;

    &#xA;

    With this error output :

    &#xA;

    ffmpeg version N-102781-g05f9b3a0a5 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10-win32 (GCC) 20210408&#xA;  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libvmaf --enable-vulkan --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp&#xA;  libavutil      57.  0.100 / 57.  0.100&#xA;  libavcodec     59.  1.102 / 59.  1.102&#xA;  libavformat    59.  3.101 / 59.  3.101&#xA;  libavdevice    59.  0.100 / 59.  0.100&#xA;  libavfilter     8.  0.102 /  8.  0.102&#xA;  libswscale      6.  0.100 /  6.  0.100&#xA;  libswresample   4.  0.100 /  4.  0.100&#xA;  libpostproc    56.  0.100 / 56.  0.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025220812340] stream 0, offset 0x24: partial file&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025220812340] Could not find codec parameters for stream 1 (Video: h264 (avc1 / 0x31637661), none(bt709), 640x360, 2630 kb/s): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;pipe:0&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    creation_time   : 2021-07-25T11:06:03.000000Z&#xA;  Duration: 00:00:17.38, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-25T11:06:03.000000Z&#xA;      handler_name    : Core Media Audio&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Video: h264 (avc1 / 0x31637661), none(bt709), 640x360, 2630 kb/s, 29.98 fps, 29.97 tbr, 600 tbn (default)     &#xA;    Metadata:&#xA;      creation_time   : 2021-07-25T11:06:03.000000Z&#xA;      handler_name    : Core Media Video&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : H.264&#xA;  Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-25T11:06:03.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;  Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-25T11:06:03.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;Stream mapping:&#xA;  Stream #0:1 (h264) -> scale&#xA;  split -> Stream #0:0 (libx264)&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025220812340] stream 1, offset 0xb1bf9: partial file&#xA;pipe:0: Invalid data found when processing input&#xA;Cannot determine format of input stream 0:1 after EOF&#xA;Error marking filters as finished&#xA;Conversion failed!&#xA;&#xA;events.js:292&#xA;      throw er; // Unhandled &#x27;error&#x27; event&#xA;      ^&#xA;&#xA;Error: ffmpeg exited with code 1: pipe:0: Invalid data found when processing input&#xA;Cannot determine format of input stream 0:1 after EOF&#xA;Error marking filters as finished&#xA;Conversion failed!&#xA;

    &#xA;