Recherche avancée

Médias (91)

Autres articles (44)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (5144)

  • FFMPEG muxing overhead unknown creating HLS Live stream from mp4 files

    9 juillet 2021, par user72261

    I am using FFMPEG Concatenate to combine a number of mp4 files into a live HLS stream after around 40 seconds FFMPEG stops with error.

    


    I am working in PHP launching the FFMPEG command from there using exec as this project relies on users input from there own control panels.

    


    This is the error i am getting.

    


    ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  0.100 / 59.  0.100
  libavformat    59.  0.100 / 59.  0.100
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x72fdcc0] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from '/storage/($username)/hls/playlist.txt':
  Duration: N/A, start: 0.000000, bitrate: 1404 kb/s
  Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 1183 kb/s, 25 fps, 25 tbr, 180k tbn
    Metadata:
      handler_name    : Edgeware Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
    Metadata:
      handler_name    : Edgeware Audio Media Handler
      vendor_id       : [0][0][0][0]
Output #0, hls, to '/storage/($username)/hls/playlist.m3u8':
  Metadata:
    encoder         : Lavf59.0.100
  Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1183 kb/s, 25 fps, 25 tbr, 90k tbn
    Metadata:
      handler_name    : Edgeware Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
    Metadata:
      handler_name    : Edgeware Audio Media Handler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7314640] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_0.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7300740] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_1.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_2.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_3.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_4.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_5.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_6.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_7.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_8.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_9.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
frame=  900 fps=0.0 q=-1.0 Lsize=N/A time=00:00:36.03 bitrate=N/A speed= 268x    
video:7232kB audio:973kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown


    


    This is the FFMPEG command i am running

    


    exec('ffmpeg -y -nostdin -hide_banner -re -f concat -safe 0 -i "' . $CONCAT_FILE . '" -c copy -f hls -start_number 0 -hls_init_time 4 -hls_time 4 -hls_list_size 8 -hls_segment_type mpegts -hls_allow_cache 0 -hls_flags delete_segments+discont_start -hls_segment_filename "' . $SEGMENT_FORMAT . '" "' . $PLAYLIST_NAME . '" );


    


    All mp4 files are encoded to h264 with the same specifications and if the video has audio it is encoded to aac.

    


    I am also using the latest version of the FFMPEG binary for linux.

    


    Has anyone else faced this issue ?

    


  • FFMPEG Metadata Extraction Fails

    30 juin 2021, par Emanuele Benozzi

    I have a little issue with FFMPEG on Windows :

    


    ffmpeg version 4.4-full_build-www_gyan_dev Copyright (c) 2000-2021 the FFmpeg developers

    


    I Have got a video and a zip file to embed in the container as metadata
I encoded source files with the command

    


    .\ffmpeg.exe  -y  -i D:\TestVideo3_T0.mkv -map 0 -attach .\TestVideo3_Merged_Meta.zip -metadata:s:t mimetype=application/zip -c:v copy D:\TestVideo3_Merged.mkv


    


    Result of encoded data :

    


    Input #0, matroska,webm, from 'D:\TestVideo3_T0.mkv':
  Metadata:
    ENCODER         : Lavf58.76.100
  Duration: 00:00:02.00, start: 0.000000, bitrate: 4461 kb/s
  Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn, 10 tbc (default)
    Metadata:
      ENCODER         : Lavc58.134.100 libx265
      DURATION        : 00:00:02.000000000
Output #0, matroska, to 'D:\TestVideo3_Merged.mkv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, q=2-31, 10 fps, 10 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc58.134.100 libx265
      DURATION        : 00:00:02.000000000
  Stream #0:1: Attachment: none
    Metadata:
      filename        : .\TestVideo3_Merged_Meta.zip
      mimetype        : application/zip
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  File .\TestVideo3_Merged_Meta.zip -> Stream #0:1
Press [q] to stop, [?] for help
frame=   20 fps=0.0 q=-1.0 Lsize=    3473kB time=00:00:01.70 bitrate=16727.1kbits/s speed= 554x
video:1086kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 219.801529%


    


    When I analyze the output file I can find the zip file embedded on the mkv video.
Deconding the file seems not working. (I tries -dump_attacment:s :s:t :t, ecc...)

    


    .\ffmpeg -y -i .\TestVideo3_Merged.mkv -dump_attachment:t .\Meta.zip

ffmpeg version 4.4-full_build-www_gyan_dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Trailing option(s) found in the command: may be ignored.
[matroska,webm @ 0000023ddd5cf880] Could not find codec parameters for stream 1 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from '.\TestVideo3_Merged.mkv':
  Metadata:
    ENCODER         : Lavf58.76.100
  Duration: 00:00:02.00, start: 0.000000, bitrate: 14226 kb/s
  Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn, 10 tbc (default)
    Metadata:
      ENCODER         : Lavc58.134.100 libx265
      DURATION        : 00:00:02.000000000
  Stream #0:1: Attachment: none
    Metadata:
      filename        : .\TestVideo3_Merged_Meta.zip
      mimetype        : application/zip
At least one output file must be specified
PS D:\> .\ffmpeg -y -i .\TestVideo3_Merged.mkv -dump_attachment:s:t .\Meta.zip
ffmpeg version 4.4-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Trailing option(s) found in the command: may be ignored.
[matroska,webm @ 000002492afef7c0] Could not find codec parameters for stream 1 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from '.\TestVideo3_Merged.mkv':
  Metadata:
    ENCODER         : Lavf58.76.100
  Duration: 00:00:02.00, start: 0.000000, bitrate: 14226 kb/s
  Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn, 10 tbc (default)
    Metadata:
      ENCODER         : Lavc58.134.100 libx265
      DURATION        : 00:00:02.000000000
  Stream #0:1: Attachment: none
    Metadata:
      filename        : .\TestVideo3_Merged_Meta.zip
      mimetype        : application/zip
At least one output file must be specified


    


    Can anyone give a hint to solve this problem ?

    


    Thanks in advance

    


  • fate/ffprobe : Verify ffprobe XML output against schema file

    16 avril 2021, par Tobias Rapp
    fate/ffprobe : Verify ffprobe XML output against schema file
    

    Adds schema validation for ffprobe XML output so that updating the
    ffprobe.xsd file upon changes to ffprobe is not forgotten. This was
    suggested by Marton Balint in :
    http://ffmpeg.org/pipermail/ffmpeg-devel/2021-March/278428.html

    The schema FATE test is only run if xmllint command is available.

    Signed-off-by : Tobias Rapp <t.rapp@noa-archive.com>

    • [DH] configure
    • [DH] tests/fate/ffprobe.mak
    • [DH] tests/ref/fate/ffprobe_xsd