Recherche avancée

Médias (91)

Autres articles (31)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

Sur d’autres sites (4771)

  • avfilter : do not use AVFrame accessor

    22 avril 2017, par Muhammad Faiz
    avfilter : do not use AVFrame accessor
    

    Reviewed-by : wm4 <nfxjfg@googlemail.com>
    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavfilter/af_afade.c
    • [DH] libavfilter/af_amerge.c
    • [DH] libavfilter/af_apad.c
    • [DH] libavfilter/af_aphaser.c
    • [DH] libavfilter/af_aresample.c
    • [DH] libavfilter/af_ashowinfo.c
    • [DH] libavfilter/af_astats.c
    • [DH] libavfilter/af_biquads.c
    • [DH] libavfilter/af_channelmap.c
    • [DH] libavfilter/af_channelsplit.c
    • [DH] libavfilter/af_dynaudnorm.c
    • [DH] libavfilter/af_join.c
    • [DH] libavfilter/af_pan.c
    • [DH] libavfilter/af_volume.c
    • [DH] libavfilter/af_volumedetect.c
    • [DH] libavfilter/asrc_flite.c
    • [DH] libavfilter/avf_aphasemeter.c
    • [DH] libavfilter/avf_showcqt.c
    • [DH] libavfilter/avf_showspectrum.c
    • [DH] libavfilter/avfilter.c
    • [DH] libavfilter/buffersrc.c
    • [DH] libavfilter/f_drawgraph.c
    • [DH] libavfilter/f_loop.c
    • [DH] libavfilter/f_metadata.c
    • [DH] libavfilter/f_select.c
    • [DH] libavfilter/fifo.c
    • [DH] libavfilter/framepool.c
    • [DH] libavfilter/setpts.c
    • [DH] libavfilter/src_movie.c
    • [DH] libavfilter/vf_bbox.c
    • [DH] libavfilter/vf_blackdetect.c
    • [DH] libavfilter/vf_blackframe.c
    • [DH] libavfilter/vf_colormatrix.c
    • [DH] libavfilter/vf_crop.c
    • [DH] libavfilter/vf_cropdetect.c
    • [DH] libavfilter/vf_deflicker.c
    • [DH] libavfilter/vf_deinterlace_vaapi.c
    • [DH] libavfilter/vf_drawtext.c
    • [DH] libavfilter/vf_eq.c
    • [DH] libavfilter/vf_idet.c
    • [DH] libavfilter/vf_ocr.c
    • [DH] libavfilter/vf_overlay.c
    • [DH] libavfilter/vf_psnr.c
    • [DH] libavfilter/vf_readeia608.c
    • [DH] libavfilter/vf_readvitc.c
    • [DH] libavfilter/vf_scale.c
    • [DH] libavfilter/vf_showinfo.c
    • [DH] libavfilter/vf_ssim.c
    • [DH] libavfilter/vf_swaprect.c
    • [DH] libavfilter/vf_vectorscope.c
    • [DH] libavfilter/vf_waveform.c
    • [DH] libavfilter/vsrc_testsrc.c
  • Subtitles come too early in ts file [closed]

    6 octobre 2023, par kallelo

    I have recorded a movie with my SAT-recorder on harddisk. The movie is in french and has subtitles in several languages. I cutted the ts-file and removed all subtitles except german wit tsdoctor. Sometimes later I noticed that the subtitles come about four seconds too early. Unfortunately I had deleted the original file until then.

    &#xA;

    ffprobe shows the following output :

    &#xA;

    ffprobe version 6.0-essentials_build-www.gyan.dev Copyright (c) 2007-2023 the FFmpeg developers&#xA;  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;...&#xA;Input #0, mpegts, from &#x27;inputfile.ts&#x27;:&#xA;  Duration: 01:35:06.88, start: 54851.766678, bitrate: 3407 kb/s&#xA;  Program 6915&#xA;  Stream #0:0[0x267]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A&#xA;  Stream #0:1[0x27b](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s&#xA;  Stream #0:2[0x3a9](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)&#xA;

    &#xA;

    I can imagine that this problem could be solved with ffmpeg, but don't know how and I didn't found anything that would help me.

    &#xA;

  • FFmpeg and reserved color primaries [closed]

    21 janvier, par Yoz

    I am trying to get thumbnails from a hevc video downloaded from https://github.com/stashapp/stash/issues/4124#issuecomment-1720057183 and it works with most recent ffmpeg 7.1 (installed via homebrew on mac) printing :

    &#xA;

    ffmpeg -i input.mp4 -frames:v 1 out.jpg&#xA;

    &#xA;

    ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with Apple clang version 16.0.0 (clang-1600.0.26.4)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_4 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59. 39.100 / 59. 39.100&#xA;  libavcodec     61. 19.100 / 61. 19.100&#xA;  libavformat    61.  7.100 / 61.  7.100&#xA;  libavdevice    61.  3.100 / 61.  3.100&#xA;  libavfilter    10.  4.100 / 10.  4.100&#xA;  libswscale      8.  3.100 /  8.  3.100&#xA;  libswresample   5.  3.100 /  5.  3.100&#xA;  libpostproc    58.  3.100 / 58.  3.100&#xA;[hevc @ 0x134f07530] VPS 0 does not exist&#xA;[hevc @ 0x134f07530] SPS 0 does not exist.&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 512&#xA;    compatible_brands: mp42iso2mp41&#xA;    creation_time   : 2023-09-14T19:46:05.000000Z&#xA;    encoder         : HandBrake 1.5.1 2022011000&#xA;  Duration: 00:01:26.05, start: 0.000000, bitrate: 231 kb/s&#xA;  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/reserved/bt709), 648x648 [SAR 1:1 DAR 1:1], 188 kb/s, 30 fps, 30 tbr, 90k tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-09-14T19:46:05.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 36 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-09-14T19:46:05.000000Z&#xA;        handler_name    : Mono&#xA;        vendor_id       : [0][0][0][0]&#xA;[hevc @ 0x1358065c0] VPS 0 does not exist&#xA;[hevc @ 0x1358065c0] SPS 0 does not exist.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, image2, to &#x27;out.jpg&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 512&#xA;    compatible_brands: mp42iso2mp41&#xA;    encoder         : Lavf61.7.100&#xA;  Stream #0:0(und): Video: mjpeg, yuv420p(pc, bt709/reserved/bt709, progressive), 648x648 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 30 fps, 30 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2023-09-14T19:46:05.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : Lavc61.19.100 mjpeg&#xA;      Side data:&#xA;        cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;[image2 @ 0x134f16080] The specified filename &#x27;out.jpg&#x27; does not contain an image sequence pattern or a pattern is invalid.&#xA;[image2 @ 0x134f16080] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.&#xA;[out#0/image2 @ 0x134f10480] video:5KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown&#xA;frame=    1 fps=0.0 q=5.1 Lsize=N/A time=00:00:00.03 bitrate=N/A speed=4.07x   &#xA;

    &#xA;

    however, when I use custom compiled ffmpeg.wasm it fails with :

    &#xA;

    ffmpeg version N-118050-ga518b5540d Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with emcc (Emscripten gcc/clang-like replacement &#x2B; linker emulating GNU ld) 3.1.73 (ac676d5e437525d15df5fd46bc2c208ec6d376a3)&#xA;  configuration: --target-os=none --arch=x86_32 --enable-cross-compile --enable-version3 --enable-zlib --enable-libaom --disable-encoder=libaom_av1 --enable-libopenh264 --enable-libkvazaar --enable-libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libopus --enable-libwebp --enable-libsvtav1 --enable-librubberband --disable-x86asm --disable-inline-asm --disable-stripping --disable-programs --disable-doc --disable-debug --disable-runtime-cpudetect --disable-autodetect --extra-cflags=&#x27;-O3 -flto -I/ffmpeg-wasm/build/include -pthread -msimd128&#x27; --extra-cxxflags=&#x27;-O3 -flto -I/ffmpeg-wasm/build/include -pthread -msimd128&#x27; --extra-ldflags=&#x27;-O3 -flto -I/ffmpeg-wasm/build/include -pthread -msimd128 -L/ffmpeg-wasm/build/lib&#x27; --pkg-config-flags=--static --nm=emnm --ar=emar --ranlib=emranlib --cc=emcc --cxx=em&#x2B;&#x2B; --objcc=emcc --dep-cc=emcc --enable-gpl --enable-libx264 --enable-libx265&#xA;  libavutil      59. 49.100 / 59. 49.100&#xA;  libavcodec     61. 26.100 / 61. 26.100&#xA;  libavformat    61.  9.100 / 61.  9.100&#xA;  libavdevice    61.  4.100 / 61.  4.100&#xA;  libavfilter    10.  6.101 / 10.  6.101&#xA;  libswscale      8. 12.100 /  8. 12.100&#xA;  libswresample   5.  4.100 /  5.  4.100&#xA;  libpostproc    58.  4.100 / 58.  4.100&#xA;[hevc @ 0x38d0000] VPS 0 does not exist&#xA;[hevc @ 0x38d0000] SPS 0 does not exist.&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 512&#xA;    compatible_brands: mp42iso2mp41&#xA;    creation_time   : 2023-09-14T19:46:05.000000Z&#xA;    encoder         : HandBrake 1.5.1 2022011000&#xA;  Duration: 00:01:26.05, start: 0.000000, bitrate: 231 kb/s&#xA;  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/reserved/bt709), 648x648 [SAR 1:1 DAR 1:1], 188 kb/s, 30 fps, 30 tbr, 90k tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-09-14T19:46:05.000000Z&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 36 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-09-14T19:46:05.000000Z&#xA;      handler_name    : Mono&#xA;      vendor_id       : [0][0][0][0]&#xA;[hevc @ 0x38d0300] VPS 0 does not exist&#xA;[hevc @ 0x38d0300] SPS 0 does not exist.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x8ca0000] Unsupported input (Not supported): fmt:yuv420p csp:bt709 prim:reserved trc:bt709 -> fmt:yuv420p csp:bt709 prim:reserved trc:bt709&#xA;[vf#0:0 @ 0x3830900] Error while filtering: Not supported&#xA;[vf#0:0 @ 0x3830900] Task finished with error code: -138 (Not supported)&#xA;[vost#0:0/mjpeg @ 0x385ae40] [enc:mjpeg @ 0x3878b80] Could not open encoder before EOF&#xA;[vf#0:0 @ 0x3830900] Terminating thread with return code -138 (Not supported)&#xA;[vost#0:0/mjpeg @ 0x385ae40] Task finished with error code: -28 (Invalid argument)&#xA;[vost#0:0/mjpeg @ 0x385ae40] Terminating thread with return code -28 (Invalid argument)&#xA;[out#0/image2 @ 0x3851580] Nothing was written into output file, because at least one of its streams received no packets.&#xA;frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    &#xA;Conversion failed!&#xA;Process finished with exit code -138.&#xA;

    &#xA;

    I figured out the issue is color primaries prim:reserved, and the command can be updated to a working one by re-writing input primaries as following :

    &#xA;

    ffmpeg -i input.mp4 -vf "colorspace=all=bt709:iprimaries=bt709" -frames:v 1 out.jpg&#xA;

    &#xA;

    However, I would like to compile ffmpeg.wasm so that it handles reserved primaries just like the one from homebrew.

    &#xA;

    Any idea what the compiled ffmpeg.wasm is missing ?

    &#xA;