Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (52)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (9208)

  • lavc/vvc/refs : Use dpb_max_num_reorder_pics to control output

    19 avril 2024, par Jun Zhao
    lavc/vvc/refs : Use dpb_max_num_reorder_pics to control output
    

    Use dpb_max_num_reorder_pics to control output instead of
    dpb_max_dec_pic_buffering, when dpb_max_dec_pic_buffering
    is much larger than dpb_max_num_reorder_pics, it may cause
    dpb overflow error.

    Signed-off-by : Jun Zhao <barryjzhao@tencent.com>
    Signed-off-by : elinyhuang <elinyhuang@tencent.com>

    • [DH] libavcodec/vvc/refs.c
  • ffmpeg : Apply a time-based expr to control intensity of lowpass, highpass, aphaser, or aecho [closed]

    17 mai 2024, par Wes Modes

    I am procedurally constructing complexFilters for ffmpeg via fluent-ffmpeg. My fluent-ffmpeg complex filters look like :

    &#xA;

    {&#xA;   "filter": "volume",&#xA;   "options": {&#xA;       "volume": "min(1, max(0, ((cos(PI * t * 1 / 13) * 1 &#x2B; cos(PI * t * 1 / 7) * 0.5 &#x2B; cos(PI * t * 1 / 3) * 0.25) &#x2B;&#xA;-0.5 ) * 0.75 * -1 &#x2B; 0.5))",&#xA;       "eval": "frame"&#xA;    },&#xA;    "inputs": "track_1_output",&#xA;    "outputs": "track_1_adjusted"&#xA;},&#xA;

    &#xA;

    Note that I am using an expression to determine the volume dynamically.

    &#xA;

    Here I'm testing on the command line, to understand the mysteries of lightly-documented ffmpeg filters. I'm fading in and out two sources, intertwined in the output. Now I want to apply lowpass, highpass, aphaser, and/or aecho to the transitions using a time-based expr.

    &#xA;

    I've already succeeded using the volume filter to fade the sources in and out (Note that the sine has reversed polarity for the second volume filter) :

    &#xA;

    # working fade in/out&#xA;ffmpeg -i knox.mp3 -i static.mp3 -filter_complex \&#xA;"[0:a] \&#xA;    volume = &#x27;min(1, max(0, 0.5 &#x2B; 0.5 * cos(PI * t / 5)))&#x27;: eval=frame \&#xA;    [a0]; \&#xA;[1:a] \&#xA;    volume = &#x27;min(1, max(0, 0.5 - 0.5 * cos(PI * t / 5)))&#x27;: eval=frame \&#xA;    [a1]; \&#xA;[a0][a1]&#xA;    amix = inputs=2: duration=shortest" \&#xA;-c:a libmp3lame -q:a 2 output.mp3&#xA;

    &#xA;

    ffmpeg -filters says that lowpass has time-based support :

    &#xA;

      T.. = Timeline support&#xA; TSC lowpass           A->A       Apply a low-pass filter with 3dB point frequency.&#xA;

    &#xA;

    How can I similarly apply these other filters to source1 using a time-bassed expr ? I was unsuccessful in figuring out lowpass and highpass :

    &#xA;

    # applying a lowpass filter&#xA;ffmpeg -i knox.mp3 -i static.mp3 -filter_complex \&#xA;"[0:a] \&#xA;    volume = &#x27;min(1, max(0, 0.5 &#x2B; 0.5 * cos(PI * t / 5)))&#x27;: eval=frame, \&#xA;    lowpass=f=3000: mix=&#x27;0.5 &#x2B; 0.5 * cos(PI * t / 5)&#x27; \&#xA;    [a0]; \&#xA;[1:a] \&#xA;    volume = &#x27;min(1, max(0, 0.5 - 0.5 * cos(PI * t / 5)))&#x27;: eval=frame \&#xA;    [a1]; \&#xA;[a0][a1]&#xA;    amix = inputs=2: duration=shortest" \&#xA;-c:a libmp3lame -q:a 2 output.mp3&#xA;

    &#xA;

    With the resultant error :

    &#xA;

    [Parsed_lowpass_1 @ 0x7f9a72005c00] [Eval @ 0x7ff7bec423d8] Undefined constant or missing &#x27;(&#x27; in &#x27;t/5)&#x27;&#xA;[Parsed_lowpass_1 @ 0x7f9a72005c00] Unable to parse option value "0.5 &#x2B; 0.5 * cos(PI * t / 5)"&#xA;Error applying option &#x27;mix&#x27; to filter &#x27;lowpass&#x27;: Invalid argument&#xA;

    &#xA;

    What complicated fffmpeg faerie magic is needed to make some of the filters other than volume controlled by a time-based expr ?

    &#xA;

  • ffmpeg : Apply a time-based expression to control lowpass, highpass, aphaser, or aecho [closed]

    17 mai 2024, par Wes Modes

    I am constructing complexFilters to procedurally generate audio with ffmpeg via fluent-ffmpeg. The interesting part of my fluent-ffmpeg complex filters look like :

    &#xA;

    {&#xA;   "filter": "volume",&#xA;   "options": {&#xA;       "volume": "min(1, max(0, ((cos(PI * t * 1 / 13) * 1 &#x2B; cos(PI * t * 1 / 7) * 0.5 &#x2B; cos(PI * t * 1 / 3) * 0.25) &#x2B;&#xA;-0.5 ) * 0.75 * -1 &#x2B; 0.5))",&#xA;       "eval": "frame"&#xA;    },&#xA;    "inputs": "track_1_output",&#xA;    "outputs": "track_1_adjusted"&#xA;},&#xA;

    &#xA;

    Note that I am using an expression to determine the volume dynamically. To simplify my tests, I'm constructing complexFilters on the command line to understand the mysteries of some of the lightly-documented ffmpeg filters. Here's a working CLI test of using the volume filter to fade the sources in and out according to a time-based expresssion :

    &#xA;

    # working fade in/out&#xA;ffmpeg -i knox.mp3 -i static.mp3 -filter_complex \&#xA;"[0:a] \&#xA;    volume = &#x27;min(1, max(0, 0.5 &#x2B; 0.5 * cos(PI * t / 5)))&#x27;: eval=frame \&#xA;    [a0]; \&#xA;[1:a] \&#xA;    volume = &#x27;min(1, max(0, 0.5 - 0.5 * cos(PI * t / 5)))&#x27;: eval=frame \&#xA;    [a1]; \&#xA;[a0][a1]&#xA;    amix = inputs=2: duration=shortest" \&#xA;-c:a libmp3lame -q:a 2 output.mp3&#xA;

    &#xA;

    Now I want to apply lowpass, highpass, aphaser, and/or aecho to the transitions using a time-based expression. For instance, looking at lowpasss, according to ffmpeg -filters it says that it has time-based support :

    &#xA;

      T.. = Timeline support&#xA; TSC lowpass           A->A       Apply a low-pass filter with 3dB point frequency.&#xA;

    &#xA;

    How can I similarly apply a time-based expression to lowpass, highpass, aphaser, or aecho ? I thought the mix option might be the key, but I couldn't construct a working example and couldn't find any examples.

    &#xA;

    # applying a lowpass filter&#xA;ffmpeg -i knox.mp3 -filter_complex \&#xA;"[0:a] \&#xA;    lowpass=f=3000:mix=&#x27;0.5 &#x2B; 0.5 * cos(PI * t / 5)&#x27;;" \&#xA;-c:a libmp3lame -q:a 2 output.mp3&#xA;

    &#xA;

    Or if you prefer the fluent-ffmpeg filter :

    &#xA;

    const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;&#xA;ffmpeg(&#x27;knox.mp3&#x27;)&#xA;    .complexFilter([&#xA;        {&#xA;            filter: &#x27;lowpass&#x27;,&#xA;            options: {&#xA;                f: 3000,&#xA;                mix: &#x27;0.5 &#x2B; 0.5 * cos(PI * t / 5)&#x27;&#xA;            },&#xA;            inputs: &#x27;[0:a]&#x27;,&#xA;        }&#xA;    ])&#xA;    .audioCodec(&#x27;libmp3lame&#x27;)&#xA;    .audioQuality(2)&#xA;    .save(&#x27;output.mp3&#x27;)&#xA;    .on(&#x27;end&#x27;, () => {&#xA;        console.log(&#x27;Processing finished successfully&#x27;);&#xA;    })&#xA;    .on(&#x27;error&#x27;, (err) => {&#xA;        console.error(&#x27;Error: &#x27; &#x2B; err.message);&#xA;    });&#xA;

    &#xA;

    With the resultant error :

    &#xA;

    [Parsed_lowpass_1 @ 0x7f9a72005c00] [Eval @ 0x7ff7bec423d8] Undefined constant or missing &#x27;(&#x27; in &#x27;t/5)&#x27;&#xA;[Parsed_lowpass_1 @ 0x7f9a72005c00] Unable to parse option value "0.5 &#x2B; 0.5 * cos(PI * t / 5)"&#xA;Error applying option &#x27;mix&#x27; to filter &#x27;lowpass&#x27;: Invalid argument&#xA;

    &#xA;

    What complicated fffmpeg faerie magic is needed to make some of the filters other than volume controlled by a time-based expr ?

    &#xA;