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 (111)

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9425)

  • avutil : remove deprecated FF_API_FRAME_PKT

    19 février, par James Almer
    avutil : remove deprecated FF_API_FRAME_PKT
    

    Deprecated since 2023-03-20.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/av1dec.c
    • [DH] libavcodec/cuviddec.c
    • [DH] libavcodec/decode.c
    • [DH] libavcodec/libuavs3d.c
    • [DH] libavdevice/lavfi.c
    • [DH] libavfilter/af_volume.c
    • [DH] libavfilter/af_volume.h
    • [DH] libavfilter/avfilter.c
    • [DH] libavfilter/f_select.c
    • [DH] libavfilter/f_sendcmd.c
    • [DH] libavfilter/setpts.c
    • [DH] libavfilter/vf_crop.c
    • [DH] libavfilter/vf_drawtext.c
    • [DH] libavfilter/vf_eq.c
    • [DH] libavfilter/vf_eq.h
    • [DH] libavfilter/vf_overlay.c
    • [DH] libavfilter/vf_overlay.h
    • [DH] libavfilter/vf_overlay_cuda.c
    • [DH] libavfilter/vf_scale.c
    • [DH] libavfilter/vf_scale_npp.c
    • [DH] libavfilter/vf_swaprect.c
    • [DH] libavutil/frame.c
    • [DH] libavutil/frame.h
    • [DH] libavutil/version.h
  • 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 :

    &#xA;

    stderr:&#xA;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    &#xA;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    &#xA;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    &#xA;[hls @ 0x702c480] Cannot use rename on non file protocol, this may lead to races and temporary partial files&#xA;[hls @ 0x702c480] Opening &#x27;/tmp/stream_0.m3u8&#x27; for writing&#xA;[hls @ 0x702c480] Opening &#x27;/tmp/stream_1.m3u8&#x27; for writing&#xA;[hls @ 0x702c480] Opening &#x27;/tmp/stream_2.m3u8&#x27; for writing&#xA;[hls @ 0x702c480] Opening &#x27;/tmp/master.m3u8&#x27; for writing&#xA;ffmpeg was killed with signal SIGSEGV&#xA;

    &#xA;

    And I error thrown by fluent-ffmpeg is this :

    &#xA;

    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;

  • `ffmpet -f concat` don't work when all input streams appear to have the same spec

    9 mars 2023, par Roy

    My ffmpeg command :

    &#xA;

    ffmpeg -safe 0 -f concat -i list.txt -c copy out.mp4&#xA;

    &#xA;

    My 1st input file :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;D:\Applications\ffmpeg_6.0_full\a.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf60.3.100&#xA;  Duration: 00:00:04.97, start: 0.000000, bitrate: 40 kb/s&#xA;  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 27 kb/s, 30 fps, 30 tbr, 30k tbn (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc60.3.100 libx264&#xA;

    &#xA;

    My 2nd input file :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;D:\Applications\ffmpeg_6.0_full\b.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp41isom&#xA;    creation_time   : 2023-03-08T06:47:13.000000Z&#xA;    artist          : Microsoft Game DVR&#xA;    title           : PUBG: BATTLEGROUNDS&#xA;  Duration: 00:10:00.16, start: 0.000000, bitrate: 20885 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20739 kb/s, 30 fps, 30 tbr, 30k tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-03-08T06:47:13.000000Z&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : AVC Coding&#xA;  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-03-08T06:47:13.000000Z&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;

    &#xA;

    The above command outputs some warning signals :

    &#xA;

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000025239902d40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[mp4 @ 00000252396fe5c0] Non-monotonous DTS in output stream 0:1; previous: 218112, current: 150024; changing to 218113. This may result in incorrect timestamps in the output file.&#xA;...&#xA;a lot of them&#xA;...&#xA;frame=25992 fps=21754 q=-1.0 Lsize= 1519621kB time=00:14:49.39 bitrate=13996.8kbits/s speed= 744x&#xA;video:9649kB audio:1519216kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;

    &#xA;

    The resultant video can play the first part of the video correctly, then the video players either skips directly to the end of the video (MPC-HC), or don't render anything at all while timer passes as normal (VLC).

    &#xA;

    My impression of the concat is that it requires all videos to have the same spec, which I think my input achieved (all the "Steam #0:0", etc, line matches). I only see the following difference, which I assumed that should be okay :

    &#xA;

      &#xA;
    1. Metadata are different both for the whole input (e.g. "major_brand") and for each stream (e.g. "encoder"). I assumed that metadata won't affect the processing.
    2. &#xA;

    3. The order of video/audio streams are different in the two inputs : the 1st input file has audio then video ; the 2nd input file has video then audio. I assumed that ffmpeg knows the difference and won't concat a video stream to an audio stream.
    4. &#xA;

    &#xA;

    The full output of the command can be found in this pastebin : https://pastebin.com/Z5q97Uyg

    &#xA;