Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (77)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (8051)

  • How to resolve "ffmpeg was killed with signal SIGSEGV" in docker container

    25 juin 2024, par Gmanicus

    I have a Node.js application deployed to a docker container with fluent-ffmpeg, @ffmpeg-installer/ffmpeg, and @ffprobe-installer/ffmprobe.

    


    Here is the fluent-ffmpeg init script :

    


    import ffmpeg = require('fluent-ffmpeg');
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffprobePath = require('@ffprobe-installer/ffprobe').path;

ffmpeg.setFfmpegPath(ffmpegPath);
ffmpeg.setFfprobePath(ffprobePath);

export default ffmpeg;


    


    This gets used to take a snapshot of a video and save that image to file :

    


    ffmpeg('ism manifest here')
        .inputOption(`-ss timestamp`)
        .outputOptions([
            '-vframes 1',
            '-vf crop=640:230:320:490,eq=saturation=0:contrast=1000,negate'
        ])
        .output('test.png')
        .run();


    


    Whenever any configuration of ffmpeg command is run, it nearly instantaneously fails with :

    


    Error: ffmpeg was killed with signal SIGSEGV&#xA;     at ChildProcess.<anonymous> (/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)&#xA;     at ChildProcess.emit (node:events:517:28)&#xA;     at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)&#xA;</anonymous>

    &#xA;

    I have attempted to raise the memory and CPU usage limits of the server in the docker-compose file :

    &#xA;

    ...&#xA;    deploy:&#xA;      resources:&#xA;        limits:&#xA;          cpus: &#x27;0.75&#x27;&#xA;          memory: 2G&#xA;        reservations:&#xA;          cpus: &#x27;0.50&#x27;&#xA;          memory: 1G&#xA;

    &#xA;

    But nothing has worked. Running this on my local machine works just fine. Help ?

    &#xA;

    UPDATE :

    &#xA;

    I just attempted running a small dockerized ffmpeg test script on its own in its own brand new container. Same issue. So, it doesn't seem to have anything to do with my server's configuration.

    &#xA;

  • Make 2 videos on top of each other in a 1080×1920 scene

    6 octobre 2023, par Byte me

    I am trying to make two videos on top of each other. Right now i am scaling both to 1080x960 using ffmpeg and putting them together using vstack. Unfortunetely no success. Can anyone help me ?

    &#xA;

      ffmpeg()&#xA;      .input(&#x27;./placeholder.mp4&#x27;).videoCodec(&#x27;copy&#x27;)&#xA;      .input("./scaled_YT.mp4").videoCodec(&#x27;copy&#x27;)&#xA;      .complexFilter([&#xA;        `[0:v]scale=1080x960[v0];[1:v]scale=1080x960[v1];[v0][v1]vstack=inputs=2[v]`&#xA;    ], [&#x27;v&#x27;])&#xA;      .toFormat(&#x27;mp4&#x27;)&#xA;      .on(&#x27;end&#x27;, () => {&#xA;          console.log(&#x27;Files have been merged!&#x27;);&#xA;      })&#xA;      .on(&#x27;error&#x27;, (err) => {&#xA;          console.error(&#x27;Error:&#x27;, err)&#xA;      })&#xA;      .save(outputPath);&#xA;

    &#xA;

    Error: Error: ffmpeg exited with code 1: &#xA;    at ChildProcess.<anonymous> (D:\Discord Bots\TEMP_TEST\done_projects\videoEditor_bot\node_modules\fluent-ffmpeg\lib\processor.js:182:22)  &#xA;    at ChildProcess.emit (node:events:513:28)&#xA;    at ChildProcess._handle.onexit (node:internal/child_process:291:12)&#xA;</anonymous>

    &#xA;

  • Merge Videos using fluent-ffmpeg

    25 octobre 2023, par Andronik Nazaryan

    I'm trying to merge two videos, the following code works perfectly on windows 10, but it gives me an error when trying to run it on linux/ubuntu, same on wsl

    &#xA;

        async joinVideo(): Promise<boolean> {&#xA;        return new Promise((resolve, reject) => {&#xA;            signale.info(&#x27;Joining video&#x27;)&#xA;            const profile = path.join(__dirname, &#x27;../videos/input/profile.mp4&#x27;)&#xA;            const sb = path.join(__dirname, &#x27;../videos/input/sb.mp4&#x27;)&#xA;&#xA;            const joined = path.join(__dirname, &#x27;../videos/profile-sb.mp4&#x27;)&#xA;            const tempFolder = path.join(__dirname, &#x27;../videos/temp&#x27;)&#xA;&#xA;            ffmpeg({ source: profile })&#xA;                .input(sb)&#xA;                .on(&#x27;end&#x27;, () => {&#xA;                    signale.success(&#x27;Video joined&#x27;)&#xA;                    resolve(true)&#xA;                })&#xA;                .on(&#x27;error&#x27;, err => {&#xA;                    signale.error(err)&#xA;                    reject(false)&#xA;                })&#xA;                .mergeToFile(joined, tempFolder)&#xA;        })&#xA;    }&#xA;</boolean>

    &#xA;

    The error i get

    &#xA;

    Error: ffmpeg exited with code 1: Error reinitializing filters! &#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #1:0&#xA;Conversion failed!&#xA;&#xA;    at ChildProcess.<anonymous> (/mnt/c/Users/Anri/Desktop/lead-gif-generator/node_modules/.pnpm/fluent-ffmpeg@2.1.2/node_modules/fluent-ffmpeg/lib/processor.js:182:22)&#xA;    at ChildProcess.emit (node:events:517:28)&#xA;    at ChildProcess.emit (node:domain:489:12)&#xA;    at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)&#xA;</anonymous>

    &#xA;

    the installation of fluent-ffmpeg should be correct as other operations are working, only mergeToFile function is erroring out

    &#xA;

    also strange thing is that if i put same file in both inputs it works fine, my guess it happens because of differance between videos, but why it works on windows

    &#xA;