Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (63)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (5562)

  • FFmpeg child process closed, code null, signal SIGSEGV

    22 novembre 2022, par AMRITESH GUPTA

    I have been working on a project where I am trying to get users' audio and video and stream it to youtube live. I tested my code on my windows machine, and everything is working fine, but when I deploy my server code on Heroku, I get this error FFmpeg child process closed, code null, signal SIGSEGV.

    


    I used https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git for Heroku buildpack.

    


    Code snippet :

    


    const inputSettings = ['-i', '-', '-v', 'error'];

const youtubeSettings = () => {
    
    return [
        // video codec config: low latency, adaptive bitrate
        '-c:v',
        'libx264',
        '-preset',
        'veryfast',
        '-tune',
        'zerolatency',
        '-g:v',
        '60',
  
        // audio codec config: sampling frequency (11025, 22050, 44100), bitrate 64 kbits
        '-c:a',
        'aac',
        '-strict',
        '-2',
        '-ar',
        '44100',
        '-b:a',
        '64k',
  
        //force to overwrite
        '-y',
  
        // used for audio sync
        '-use_wallclock_as_timestamps',
        '1',
        '-async',
        '1',
  
        '-f',
        'flv',
        youtubeURL,
      ]
    
}

const ffmpegInput = inputSettings.concat(youtubeSettings());


io.on('connection', (socket) => {
    console.log(`socket connected to ${socket.id}`)
    
    try{

    const ffmpg = child_process.spawn('ffmpeg',ffmpegInput)

    ffmpg.on('close', (code, signal) => {
        console.log(
          'FFmpeg child process closed, code ' + code + ', signal ' + signal
        );
        // ws.terminate()
      })

    ffmpg.stdin.on('error', (e) => {
        console.log('FFmpeg STDIN Error', e)
    })

    // FFmpeg outputs all of its messages to STDERR.  Let's log them to the console.
    ffmpg.stderr.on('data', (data) => {
        console.log('FFmpeg STDERR:', data.toString());
    })

    socket.on('message', (msg) => {
        console.log('DATA', msg)
        ffmpg.stdin.write(msg);
    })

    // If the client disconnects, stop FFmpeg.
    socket.conn.on('close', (e) => {
        console.log('kill: SIGINT')
        ffmpg.kill('SIGINT')
    })
}
catch(err){
    console.log(err);
}


    


    Heroku logs

    


    enter image description here

    


  • Ffmpeg HLS conversion error on AWS Lambda - ffmpeg was killed with signal SIGSEGV

    20 octobre 2023, par RtiM0

    I'm trying to convert video files into HLS streams on a AWS Lambda. The ffmpeg configuration I have setup works for normal (Non HLS) transcoding, but in case of HLS it throws the following error :

    


    stderr:
frame=  341 fps= 84 q=34.0 q=32.0 q=28.0 size=N/A time=00:00:12.52 bitrate=N/A speed= 3.1x    
frame=  385 fps= 85 q=34.0 q=31.0 q=27.0 size=N/A time=00:00:13.97 bitrate=N/A speed=3.08x    
frame=  433 fps= 86 q=33.0 q=30.0 q=27.0 size=N/A time=00:00:15.55 bitrate=N/A speed=3.08x    
[hls @ 0x702c480] Cannot use rename on non file protocol, this may lead to races and temporary partial files
[hls @ 0x702c480] Opening '/tmp/stream_0.m3u8' for writing
[hls @ 0x702c480] Opening '/tmp/stream_1.m3u8' for writing
[hls @ 0x702c480] Opening '/tmp/stream_2.m3u8' for writing
[hls @ 0x702c480] Opening '/tmp/master.m3u8' for writing
ffmpeg was killed with signal SIGSEGV


    


    And I error thrown by fluent-ffmpeg is this :

    


    2023-03-06T10:21:44.555Z    15a0a43b-5e24-42ac-ae72-fe04f0c72a3e    ERROR   Invoke Error    &#xA;{&#xA;    "errorType": "Error",&#xA;    "errorMessage": "ffmpeg was killed with signal SIGSEGV",&#xA;    "stack": [&#xA;        "Error: ffmpeg was killed with signal SIGSEGV",&#xA;        "    at ChildProcess.<anonymous> (/var/task/node_modules/fluent-ffmpeg/lib/processor.js:180:22)",&#xA;        "    at ChildProcess.emit (node:events:513:28)",&#xA;        "    at ChildProcess._handle.onexit (node:internal/child_process:291:12)"&#xA;    ]&#xA;}&#xA;</anonymous>

    &#xA;

    This is the code I run on AWS Lambda to convert video files into HLS :

    &#xA;

    export const compressToHLS = (sourcePath, outputFolder) =>&#xA;  new Promise((resolve, reject) => {&#xA;    Ffmpeg(sourcePath)&#xA;      .complexFilter([&#xA;        {&#xA;          filter: "split",&#xA;          options: "3",&#xA;          inputs: "v:0",&#xA;          outputs: ["v1", "v2", "v3"],&#xA;        },&#xA;        {&#xA;          filter: "scale",&#xA;          options: {&#xA;            w: 1280,&#xA;            h: 720,&#xA;          },&#xA;          inputs: "v1",&#xA;          outputs: "v1out",&#xA;        },&#xA;        {&#xA;          filter: "scale",&#xA;          options: {&#xA;            w: 960,&#xA;            h: 540,&#xA;          },&#xA;          inputs: "v2",&#xA;          outputs: "v2out",&#xA;        },&#xA;        {&#xA;          filter: "scale",&#xA;          options: {&#xA;            w: 640,&#xA;            h: 360,&#xA;          },&#xA;          inputs: "v3",&#xA;          outputs: "v3out",&#xA;        },&#xA;      ])&#xA;      .outputOptions([&#xA;        "-map [v1out]",&#xA;        "-c:v:0",&#xA;        "libx264",&#xA;        "-b:v 3000000",&#xA;        "-map [v2out]",&#xA;        "-c:v:1",&#xA;        "libx264",&#xA;        "-b:v 2000000",&#xA;        "-map [v3out]",&#xA;        "-c:v:2",&#xA;        "libx264",&#xA;        "-b:v 1000000",&#xA;      ])&#xA;      .outputOptions([&#xA;        "-map a:0",&#xA;        "-c:a:0 aac",&#xA;        "-b:a:0 96000",&#xA;        "-ar 48000",&#xA;        "-ac 2",&#xA;        "-map a:0",&#xA;        "-c:a:1 aac",&#xA;        "-b:a:1 96000",&#xA;        "-ar 48000",&#xA;        "-ac 2",&#xA;        "-map a:0",&#xA;        "-c:a:2 aac",&#xA;        "-b:a:2 96000",&#xA;        "-ar 48000",&#xA;        "-ac 2",&#xA;      ])&#xA;      .outputOptions([&#xA;        "-f hls",&#xA;        "-hls_time 10",&#xA;        "-hls_playlist_type vod",&#xA;        "-hls_flags independent_segments",&#xA;        "-hls_segment_type mpegts",&#xA;        `-hls_segment_filename ${outputFolder}/%v_%d.ts`,&#xA;        "-master_pl_name master.m3u8",&#xA;      ])&#xA;      .outputOption("-var_stream_map", "v:0,a:0 v:1,a:1 v:2,a:2")&#xA;      .outputOption("-preset veryfast")&#xA;      .output(`${outputFolder}/stream_%v.m3u8`)&#xA;      .on("start", (cmdline) => console.log(cmdline))&#xA;      .on("progress", (progress) => {&#xA;        let prog = Math.floor(progress.percent * 10) / 10;&#xA;        if (Math.round(prog) % 10 == 0) {&#xA;          console.log(`${prog}% complete`);&#xA;        }&#xA;      })&#xA;      .on("error", (err, stdout, stderr) => {&#xA;        if (err) {&#xA;          console.log(err.message);&#xA;          console.log("stdout:\n" &#x2B; stdout);&#xA;          console.log("stderr:\n" &#x2B; stderr);&#xA;          reject(err);&#xA;        }&#xA;      })&#xA;      .on("end", () => resolve())&#xA;      .run();&#xA;  });&#xA;

    &#xA;

    In this code the sourcePath is usually a presigned URL from S3 (But I have also tried to download a file on /tmp and setting sourcePath as the path to the downloaded file) and outputFolder is tmpdir() which is /tmp.

    &#xA;

    I have the lambda settings configured to have 10GB of memory and 10GB of ephemeral storage (the maximum allowed).

    &#xA;

  • Error : ffmpeg was killed with signal SIGSEGV - error when deploying to server

    9 novembre 2023, par Zippytyro

    I've built a telegram bot using telegraf, I'm using fluent-ffmpeg and @ffmpeg-installer/ffmpeg packages for converting OGG audio to WAV.

    &#xA;

    Works fine locally, but when I deploy to railway.app platform, it throws an error at runtime.&#xA;node:events:491 throw er; // unhandled &#x27;error&#x27; event ^ Error: ffmpeg was killed with signal SIGSEGV &#xA;error

    &#xA;

    Someone told to add ffmpeg binary via nixpkgs or aptPkgs like so :&#xA;[phases.setup] aptPkgs = ["...", "ffmpeg"]

    &#xA;

    Since the platform uses nixpacks buildpack.&#xA;However, the same error persists.

    &#xA;