Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (111)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (9326)

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