Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (72)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (10335)

  • FFMPEG on AWS Lambda Only outputs half a second of video when converting video from mobile safari

    18 août 2023, par user1825257

    I am running FFMPEG on AWS Lambda using nodejs and fluent-ffmpeg. I am able to convert videos recorded on most devices / browsers, but when I attempt to convert videos recorded on Mobile Safari, the length of the output video is 1/2 a second regardless of the input length.

    


    My Typescript code is :

    


        import * as ffmpeg from &#x27;fluent-ffmpeg&#x27;;&#xA;    public static StandardizeVideoFormat(&#xA;      inputSignedUrl: string,&#xA;      filename: string,&#xA;    ): Promise<string> {&#xA;      const localFilePath = `/tmp/${Date.now()}_${filename}.mp4`;&#xA;    &#xA;      return new Promise((resolve, reject) => {&#xA;        ffmpeg(inputSignedUrl)&#xA;          .outputOptions([&#xA;            &#x27;-crf&#x27;,&#xA;            &#x27;18&#x27;,&#xA;            &#x27;-vcodec&#x27;,&#xA;            &#x27;libx264&#x27;,&#xA;            &#x27;-codec:a&#x27;,&#xA;            &#x27;aac&#x27;,&#xA;            &#x27;-preset&#x27;,&#xA;            &#x27;medium&#x27;,&#xA;          ])&#xA;          .output(localFilePath)&#xA;          .on(&#x27;start&#x27;, function (commandLine) {&#xA;            console.log(&#x27;Spawned Ffmpeg with command: &#x27; &#x2B; commandLine);&#xA;          })&#xA;          .on(&#x27;error&#x27;, function (err) {&#xA;            reject(err);&#xA;          })&#xA;          .on(&#x27;progress&#x27;, function (progress) {&#xA;            console.log(&#x27;progress&#x27;, progress);&#xA;          })&#xA;          .on(&#x27;end&#x27;, function () {&#xA;            resolve(localFilePath);&#xA;          })&#xA;          .run();&#xA;      });&#xA;    }&#xA;</string>

    &#xA;

    Using FFprobe, The metadata of the input file is :

    &#xA;

    {&#xA;  streams: [&#xA;    {&#xA;      index: 0,&#xA;      codec_name: &#x27;h264&#x27;,&#xA;      codec_long_name: &#x27;H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10&#x27;,&#xA;      profile: &#x27;Baseline&#x27;,&#xA;      codec_type: &#x27;video&#x27;,&#xA;      codec_tag_string: &#x27;avc1&#x27;,&#xA;      codec_tag: &#x27;0x31637661&#x27;,&#xA;      width: 1920,&#xA;      height: 1080,&#xA;      coded_width: 1920,&#xA;      coded_height: 1080,&#xA;      closed_captions: 0,&#xA;      film_grain: 0,&#xA;      has_b_frames: 0,&#xA;      sample_aspect_ratio: &#x27;N/A&#x27;,&#xA;      display_aspect_ratio: &#x27;N/A&#x27;,&#xA;      pix_fmt: &#x27;yuvj420p&#x27;,&#xA;      level: 40,&#xA;      color_range: &#x27;pc&#x27;,&#xA;      color_space: &#x27;unknown&#x27;,&#xA;      color_transfer: &#x27;unknown&#x27;,&#xA;      color_primaries: &#x27;unknown&#x27;,&#xA;      chroma_location: &#x27;left&#x27;,&#xA;      field_order: &#x27;progressive&#x27;,&#xA;      refs: 1,&#xA;      is_avc: &#x27;true&#x27;,&#xA;      nal_length_size: 4,&#xA;      id: &#x27;0x1&#x27;,&#xA;      r_frame_rate: &#x27;30000/1001&#x27;,&#xA;      avg_frame_rate: &#x27;60000/1991&#x27;,&#xA;      time_base: &#x27;1/600&#x27;,&#xA;      start_pts: 26,&#xA;      start_time: 0.043333,&#xA;      duration_ts: 4008,&#xA;      duration: 6.68,&#xA;      bit_rate: 10175170,&#xA;      max_bit_rate: &#x27;N/A&#x27;,&#xA;      bits_per_raw_sample: 8,&#xA;      nb_frames: &#x27;N/A&#x27;,&#xA;      nb_read_frames: &#x27;N/A&#x27;,&#xA;      nb_read_packets: &#x27;N/A&#x27;,&#xA;      extradata_size: 31,&#xA;      side_data_type: &#x27;Display Matrix&#x27;,&#xA;      displaymatrix: &#x27;&#x27;,&#xA;      rotation: &#x27;-90&#x27;,&#xA;      tags: [Object],&#xA;      disposition: [Object]&#xA;    },&#xA;    {&#xA;      index: 1,&#xA;      codec_name: &#x27;aac&#x27;,&#xA;      codec_long_name: &#x27;AAC (Advanced Audio Coding)&#x27;,&#xA;      profile: &#x27;LC&#x27;,&#xA;      codec_type: &#x27;audio&#x27;,&#xA;      codec_tag_string: &#x27;mp4a&#x27;,&#xA;      codec_tag: &#x27;0x6134706d&#x27;,&#xA;      sample_fmt: &#x27;fltp&#x27;,&#xA;      sample_rate: 48000,&#xA;      channels: 1,&#xA;      channel_layout: &#x27;mono&#x27;,&#xA;      bits_per_sample: 0,&#xA;      initial_padding: 0,&#xA;      id: &#x27;0x2&#x27;,&#xA;      r_frame_rate: &#x27;0/0&#x27;,&#xA;      avg_frame_rate: &#x27;0/0&#x27;,&#xA;      time_base: &#x27;1/48000&#x27;,&#xA;      start_pts: 0,&#xA;      start_time: 0,&#xA;      duration_ts: 319488,&#xA;      duration: 6.656,&#xA;      bit_rate: 181302,&#xA;      max_bit_rate: &#x27;N/A&#x27;,&#xA;      bits_per_raw_sample: &#x27;N/A&#x27;,&#xA;      nb_frames: &#x27;N/A&#x27;,&#xA;      nb_read_frames: &#x27;N/A&#x27;,&#xA;      nb_read_packets: &#x27;N/A&#x27;,&#xA;      extradata_size: 2,&#xA;      tags: [Object],&#xA;      disposition: [Object]&#xA;    }&#xA;  ],&#xA;  format: {&#xA;    filename: &#x27;input.mp4&#x27;,&#xA;    nb_streams: 2,&#xA;    nb_programs: 0,&#xA;    format_name: &#x27;mov,mp4,m4a,3gp,3g2,mj2&#x27;,&#xA;    format_long_name: &#x27;QuickTime / MOV&#x27;,&#xA;    start_time: 0,&#xA;    duration: 6.723333,&#xA;    size: 8651792,&#xA;    bit_rate: 10294646,&#xA;    probe_score: 100,&#xA;    tags: {&#xA;      major_brand: &#x27;iso5&#x27;,&#xA;      minor_version: &#x27;1&#x27;,&#xA;      compatible_brands: &#x27;isomiso5hlsf&#x27;,&#xA;      creation_time: &#x27;2023-08-05T19:03:15.000000Z&#x27;&#xA;    }&#xA;  },&#xA;  chapters: []&#xA;}&#xA;

    &#xA;

    Any ideas on why the output of my command on this file always results in a 0.5 second long output ?

    &#xA;

  • Facing delay in mic audio while using ffmpeg with h264_nvenc encoder [closed]

    30 avril 2023, par Aniket Bose

    I am trying to capture my windows10 desktop with desktop duplication api and on-gpu D3D11 textures, in the form of ffmpeg D3D11VA frames @60 fps. Required command is given here. On top of that I am trying to also intercept my mic audio. For that I am using this command,

    &#xA;

    ffmpeg -init_hw_device d3d11va -filter_complex ddagrab=framerate=60 -f dshow -i audio="Microphone (High Definition Audio Device)" -c:v h264_nvenc -rc vbr -cq 24 -qmin 24 -qmax 24 -profile:v main -b:v 0K output.mp4&#xA;

    &#xA;

    After the desktop capture process when I am watching output.mp4 I am facing an audio delay. More Precisely my mic audio is coming after 28/29 video frames. ie. (28/60)*1000 = 466 ms delay in audio.

    &#xA;

    I tried to capture @30fps but no improvement. Now I am getting 14 frames delay ie. (14/30)*1000 = 466 ms delay in audio.

    &#xA;

    After some research I came to know about keyframe intervals. at default h264_nvenc uses 200 sec keyframe interval. So i tried to lower that with the -g option of h264_nvenc encoder. No improvement here too.

    &#xA;

    One possible solution could be to delay my video using -itsoffset option. These stack overflow and superuser solutions only work with pre-recorded videos,

    &#xA;

    ffmpeg delay video in overlay

    &#xA;

    In ffmpeg, how to delay only the audio of a .mp4 video without converting the audio ?

    &#xA;

    But I am capturing and encoding on the go (ie. at same time).

    &#xA;

    I am a novice at video editing and ffmpeg. I am using latest release build from gyan.dev.

    &#xA;

    ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;  configuration: &#xA;--enable-gpl --enable-version3 --enable-static --disable-w32threads &#xA;--disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls &#xA;--enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma &#xA;--enable-libsnappy --enable-zlib --enable-librist --enable-libsrt &#xA;--enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray &#xA;--enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d &#xA;--enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e &#xA;--enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 &#xA;--enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl &#xA;--enable-libopenjpeg --enable-libvpx --enable-mediafoundation &#xA;--enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi &#xA;--enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg &#xA;--enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec &#xA;--enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 &#xA;--enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo &#xA;--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug &#xA;--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame &#xA;--enable-libshine --enable-libtheora --enable-libtwolame &#xA;--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm &#xA;--enable-libopencore-amrnb --enable-libopus --enable-libspeex &#xA;--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite &#xA;--enable-libmysofa --enable-librubberband --enable-libsoxr &#xA;--enable-chromaprint&#xA;  libavutil      58.  2.100 / 58.  2.100&#xA;  libavcodec     60.  3.100 / 60.  3.100&#xA;  libavformat    60.  3.100 / 60.  3.100&#xA;  libavdevice    60.  1.100 / 60.  1.100&#xA;  libavfilter     9.  3.100 /  9.  3.100&#xA;  libswscale      7.  1.100 /  7.  1.100&#xA;  libswresample   4. 10.100 /  4. 10.100&#xA;  libpostproc    57.  1.100 / 57.  1.100&#xA;Hyper fast Audio and Video encoder&#xA;usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&#xA;

    &#xA;

  • 'unsupported input sample rate set' error while converting mkv to mp3 with ffmpeg on python

    15 décembre 2020, par Agent Merlot

    I'm getting this error on trying to convert some mkv files to mp3 via python. Nearly all files got converted, but some are facing this issue.
    &#xA;https://cdn.discordapp.com/attachments/663255565451001866/788424224661569596/Error.txt

    &#xA;

    Please help me fix this issue.

    &#xA;

    ffmpeg output extracted from the discord link above :

    &#xA;

    ffmpeg version git-2020-06-04-7f81785 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200523&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 49.100 / 56. 49.100&#xA;  libavcodec     58. 90.100 / 58. 90.100&#xA;  libavformat    58. 44.100 / 58. 44.100&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 84.100 /  7. 84.100&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;Input #0, matroska,webm, from &#x27;J:\DC ED\Original\045 &#x27;Kimi no Egao ga Nani Yori mo Suki Datta&#x27; by &#x27;Chicago Poodle&#x27;.mkv&#x27;:&#xA;  Metadata:&#xA;    title           : 045 &#x27;Kimi no Egao ga Nani Yori mo Suki Datta&#x27; by &#x27;Chicago Poodle&#x27;.mkv&#xA;    COPYRIGHT       : &#xA9; 2013 APTX4869 Fansub&#xA;    creation_time   : 2020-11-18T05:03:06.000000Z&#xA;    COMPOSER        : Chicago Poodle&#xA;    ENCODER         : Lavf58.44.100&#xA;  Duration: 00:01:20.04, start: 0.000000, bitrate: 2023 kb/s&#xA;    Stream #0:0(jpn): Video: hevc (Main), yuv420p(tv), 1440x1080 [SAR 4:3 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      title           : VIDEO[AVC]&#xA;      ENCODER         : Lavc58.90.100 libx265&#xA;      BPS-eng         : 1831510&#xA;      DURATION-eng    : 00:01:20.039000000&#xA;      NUMBER_OF_FRAMES-eng: 1919&#xA;      NUMBER_OF_BYTES-eng: 18324032&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 (&#x27;Sick Of Losing Soulmates&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-18 05:03:06&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:1(jpn): Audio: aac (LC), 96000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      title           : AUDIO[AAC]&#xA;      BPS-eng         : 188626&#xA;      DURATION-eng    : 00:01:19.999000000&#xA;      NUMBER_OF_FRAMES-eng: 3750&#xA;      NUMBER_OF_BYTES-eng: 1886246&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 (&#x27;Sick Of Losing Soulmates&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-18 05:03:06&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (aac (native) -> mp3 (mp3_mf))&#xA;Press [q] to stop, [?] for help&#xA;[mp3_mf @ 000002142f4a5fc0] MFT name: &#x27;MP3 Encoder ACM Wrapper MFT&#x27;&#xA;[mp3_mf @ 000002142f4a5fc0] unsupported input sample rate set&#xA;Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;Conversion failed!&#xA;

    &#xA;