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

  • 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 : how to create a "title slide" for 3 seconds before a video [closed]

    15 mars 2024, par ashay

    I'm trying to make a lecture video to put online. I have the video itself, and I have a title slide that I'd like to play for 3 seconds before the main video.

    &#xA;

    I tried using ffmpeg to (1) create a 3 second long video from the title slide and (2) concat the two videos together.

    &#xA;

    I'm having issues concatenating the videos together — when I do so, the resulting video is much longer than it should be. When I look online, others have similar problems — and this seems to occur when the parameters of the two videos do not match perfectly.

    &#xA;

    I'd prefer to do this without re-encoding the main video — and it seems this should be possible because I should be able to control what parameters are set for the "lecture slide video".

    &#xA;

    Here are the commands I've run.&#xA;The main video has framerate 25, resolution 1920x1080, and an audio stream at #0:0 and a video stream at #0:1 (according to ffmpeg -i [video].

    &#xA;

    To create the video of the title slide, I ran ffmpeg -framerate 25 -i lec01_title.png -t 3 -c:v libx264 -x265-params lossless=1 -pix_fmt yuvj420p -vf scale=1920:1080 lec01_title.mp4 -f lavfi -i anullsrc -c:a aac -shortest.&#xA;Then to reorder the streams to match the main video, I ran ffmpeg -i lec01_title.mp4 -map 0:a -map 0:v -c:v copy -c:a copy lec01_title_matched.mp4.

    &#xA;

    Then to concatenate the two files together, I created a text file "concat_list" with :&#xA;file &#x27;lec01_title_matched.mp4&#x27; file &#x27;lec01.mp4&#x27;, and ran the command ffmpeg -f concat -safe 0 -i concat_list.txt -c copy -movflags &#x2B;faststart output.mp4.

    &#xA;

    The main video is 53 minutes long, but the final output video after concatenating is 1 hour and 43 minutes long.

    &#xA;

    I'm looking for advice for how to create the "lecture title video" properly to match the parameters of the second video so that I can concatenate them without problems.

    &#xA;

    Here's the output of ffmpeg -i lec01.mp4 :

    &#xA;

    ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1 --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-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      58. 29.100 / 58. 29.100&#xA;  libavcodec     60. 31.102 / 60. 31.102&#xA;  libavformat    60. 16.100 / 60. 16.100&#xA;  libavdevice    60.  3.100 / 60.  3.100&#xA;  libavfilter     9. 12.100 /  9. 12.100&#xA;  libswscale      7.  5.100 /  7.  5.100&#xA;  libswresample   4. 12.100 /  4. 12.100&#xA;  libpostproc    57.  3.100 / 57.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;dcai_lec01.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    title           : 2-190-wideshot&#xA;    encoder         : Lavf60.16.100&#xA;  Duration: 00:47:39.08, start: 0.000000, bitrate: 1435 kb/s&#xA;  Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 96000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1298 kb/s, 25 fps, 25 tbr, 12800 tbn (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc60.31.102 libx264&#xA;

    &#xA;

    Described above in detail.

    &#xA;

  • The error "Failed to query nvenc max version" typically occurs when using FFmpeg on Linux

    28 juillet 2023, par Well Chen

    The error "Failed to query nvenc max version" typically occurs when using FFmpeg with NVIDIA GPU acceleration (hevc_nvenc) on Linux.

    &#xA;

    Does anyone know how to solve this bug ? Thank you very much.

    &#xA;

    The following code is the FFmpeg code I entered, along with the output content.

    &#xA;

    ffmpeg -ss 10:00 -i /www/wwwroot/pyffmpeg/videos/0/011.mp4 -t 20 -r 30 -b:v 4M -an -vcodec hevc_nvenc -y /www/wwwroot/pyffmpeg/videos/post/999.mp4&#xA;ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 8 (GCC)&#xA;  configuration: --extra-cflags=&#x27;-I/usr/local/cuda/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=&#x27;nvcc=/usr/local/cuda-12.2/bin/nvcc&#x27;&#xA;  WARNING: library configuration mismatch&#xA;  avutil      configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  avcodec     configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  avformat    configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  avdevice    configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  avfilter    configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  swscale     configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  swresample  configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#xA;  postproc    configuration: --extra-cflags=&#x27;-I/usr/local/cuda-12.2/include -fPIC &#x27; --extra-ldflags=&#x27;-L/usr/local/cuda-12.2/lib64 -ldl &#x27; --pkg-config-flags=--static --enable-shared --enable-gpl --enable-libfreetype --enable-cuvid --enable-nvenc --enable-nonfree --nvcc=/usr/local/cuda-12.2/bin/nvcc --prefix=/usr/local/ffmpeg&#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;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/www/wwwroot/pyffmpeg/videos/0/011.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.6.100&#xA;  Duration: 00:17:48.83, start: 0.000000, bitrate: 4617 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 4481 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc.&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc.&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_nvenc))&#xA;Press [q] to stop, [?] for help&#xA;[hevc_nvenc @ 0x2a577790] Failed to query nvenc max version: unknown error (-756041696): (no details)&#xA;Segmentation faul&#xA;

    &#xA;

    I have installed FFmpeg, NVIDIA GPU drivers, and SDK. It works fine without using GPU acceleration, but it throws an error when using GPU acceleration.

    &#xA;