Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (68)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (7580)

  • Reduce write time in stdin stream

    20 décembre 2020, par گورو سینی

    I'm trying to record the web page with puppeteer. For that I'm using the same approach as puppeteer-recorder ie taking the screenshot for each frame and writing to the spawned ffmpeg's stdin stream with slight modifications.

    &#xA;

    The average time taken for screenshot per frame comes between 1-2ms but the average time to write the screenshot data into stream comes to be 290-300ms per frame.

    &#xA;

    const ffmpeg = spawn(ffmpegPath, ffmpegArgs(30));&#xA;&#xA;for (let i = 1; i &lt;= totalFrames; i&#x2B;&#x2B;) {&#xA;  let screenshot = await page.screenshot({ omitBackground: true });  --> 1ms&#xA;  await write(ffmpeg.stdin, screenshot);                             --> 290ms&#xA;}&#xA;&#xA;ffmpeg.stdin.end();&#xA;&#xA;&#xA;const write = (stream, buffer) =>&#xA; new Promise((resolve, reject) => {&#xA;   stream.write(buffer, error => {&#xA;     if (error) reject(error);&#xA;     else resolve();&#xA; });&#xA;});&#xA;&#xA;&#xA;const ffmpegArgs = fps => [&#xA;  &#x27;-y&#x27;, &#x27;-f&#x27;, &#x27;image2pipe&#x27;,&#xA;  &#x27;-r&#x27;, `${&#x2B;fps}`,&#xA;  &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;  &#x27;-c:v&#x27;, &#x27;libx264&#x27;,&#xA;  &#x27;-auto-alt-ref&#x27;, &#x27;0&#x27;,&#xA;  &#x27;-s:v&#x27;, &#x27;1280x720&#x27;,&#xA;  &#x27;-crf&#x27;, &#x27;20&#x27;,&#xA;  &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA;  &#x27;-metadata:s:v:0&#x27;, &#x27;alpha_mode="1"&#x27;,&#xA;  &#x27;-tune&#x27;, &#x27;stillimage&#x27;, &#xA;  &#x27;-movflags&#x27;, &#x27;&#x2B;faststart&#x27;, &#x27;output.avi&#x27;&#xA;];&#xA;

    &#xA;

    Is there any way to reduce the time taken while writing ? Thanks.

    &#xA;

  • avformat/hls : Fixes overwriting existing #EXT-X-PROGRAM-DATE-TIME value in HLS playlist

    1er décembre 2020, par Vignesh Ravichandran
    avformat/hls : Fixes overwriting existing #EXT-X-PROGRAM-DATE-TIME value in HLS playlist
    

    fix ticket : 8989

    This is is due to the following behavior in the current code :
    1. The initial_prog_date_time gets set to the current local time
    2. The existing playlist (.m3u8) file gets parsed and the segments
    present are added to the variant stream
    3. The new segment is created and added
    4. The existing segments and the new segment are written to the
    playlist file. The initial_prog_date_time from point 1 is used
    for calculating "#EXT-X-PROGRAM-DATE-TIME" for the segments,
    which results in incorrect "#EXT-X-PROGRAM-DATE-TIME" values
    for existing segments
    The following approach fixes this bug :
    1. Add a new variable "discont_program_date_time" of type double
    to HLSSegment struct
    2. Store the "EXT-X-PROGRAM-DATE-TIME" value from the existing
    segments in this variable
    3. When writing to playlist file if "discont_program_date_time"
    is set, then use that value for "EXT-X-PROGRAM-DATE-TIME" else
    use the value present in vs->initial_prog_date_time

    Signed-off-by : Vignesh Ravichandran <vignesh.ravichandran02@gmail.com>
    Signed-off-by : liuqi05 <liuqi05@kuaishou.com>

    • [DH] libavformat/hlsenc.c
  • FFmpeg trim filter fails to use sexagisimal time specification and the output stream is empty. Is it a bug and is there a fix ?

    29 novembre 2020, par Link-akro

    With ffmpeg the trim filter (or its audio variant atrim) malfunctions whenever i try to write a sexagesimal time specification for the boundaries or duration parameters of the filter : the result is always an empty stream.

    &#xA;

    According to the documentation i already linked, which was generated on November 26, 2020 so far, the time duration specification should be supported.

    &#xA;

    &#xA;

    start, end, and duration are expressed as time duration specifications

    &#xA;

    &#xA;

    Quote of the spec.

    &#xA;

    &#xA;

    [-][HH :]MM:SS[.m...]

    &#xA;

    &#xA;

    &#xA;

    [-]S+[.m...][s|ms|us]

    &#xA;

    &#xA;

    I am working in a Windows_10-64bit and scripting in its CMD.exe command-line, should it matter.

    &#xA;

    Here is an instance of trimming a video stream out of a media file with hardcoded value for simplicity. The audio is retained unless i use atrim as well.&#xA;We may or may not append the setpts filter as recommended in the documentation henceforth setpts=PTS-STARTPTS if we want to shift the stream to start at the beginning of the cut range.

    &#xA;

        ffmpeg -i sample-counter.mp4 -vf "trim=start=start=&#x27;1:2&#x27;:end=&#x27;1:5&#x27;" sample-counter-trimmed.mp4&#xA;

    &#xA;

    If i use decimal it works as intended.

    &#xA;

        ffmpeg -i sample-counter.mp4 -vf "trim=start=start=&#x27;2&#x27;:end=&#x27;5&#x27;" sample-counter-trimmed.mp4&#xA;

    &#xA;

    This is the banner of my ffmpeg build. We may see it is the latest build by gyan.dev at the moment i post this.

    &#xA;

        ffmpeg version 4.3.1-2020-11-19-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers&#xA;      built with gcc 10.2.0 (Rev5, Built by MSYS2 project)&#xA;      configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;

    &#xA;

    The incorrect stream is always reported as 0kB weight in the output of ffmpeg. I confirmed with ffprobe Movie_Countdown-trim-2-5.mov -show_streams -show_entries format=duration that the incorrect stream is duration zero.

    &#xA;

    Should i report it as a bug ? Is there some correction or workaround ?

    &#xA;

    I would rather a solution with the trim filter itself, but if not possible a CMD batch scripting.&#xA;We should not need a different filter like select or seeking option like there are tutorials and questions/answers everywhere already. Scripting would be straight-forward in a proper *nix shell+distrib and taught everywhere so it is not worth caring while CMD answers on the other hand are rare so a scripting workaround for CMD would have some microcosmic worth since making one is considerably less straight-forward than a shell with modern mathematics and parsing abilities built-in or packaged.

    &#xA;