Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (64)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

Sur d’autres sites (10280)

  • avutil : remove deprecated FF_API_H274_FILM_GRAIN_VCS

    19 février, par James Almer
    avutil : remove deprecated FF_API_H274_FILM_GRAIN_VCS
    

    Deprecated since 2024-03-23.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/h2645_sei.c
    • [DH] libavutil/film_grain_params.h
    • [DH] libavutil/version.h
  • Transcoding/ Converting mpeg to h264 using ffmpeg h264_nvenc

    15 septembre 2024, par Mustafa

    I'm trying to transcode a video rendered by Davinci Resolve, using ffmpeg from mpeg4 to h264, on Ubuntu, using the following command.

    &#xA;

    ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input.mov -c:a copy -c:v h264_nvenc -b:v 8M -preset 7 output-h264_nvenc-p7.mp4 -v verbose&#xA;

    &#xA;

    And my Nvidia card is NVIDIA GeForce GTX 1650.

    &#xA;

    I'm gettting the following error :

    &#xA;

    [mpeg4 @ 0x55a893ed3200] Video width 3840 not within range from 48 to 2032&#xA;[mpeg4 @ 0x55a893ed3200] Failed setup for format cuda: hwaccel initialisation returned error.&#xA;

    &#xA;

    And here's the complete output. The command produces an output but its quality is significantly less than the original.

    &#xA;

      built with gcc 13 (Ubuntu 13.2.0-23ubuntu4)&#xA;  configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared --enable-gpl --enable-libx264&#xA;  libavutil      59. 36.100 / 59. 36.100&#xA;  libavcodec     61. 13.100 / 61. 13.100&#xA;  libavformat    61.  5.101 / 61.  5.101&#xA;  libavdevice    61.  2.101 / 61.  2.101&#xA;  libavfilter    10.  2.102 / 10.  2.102&#xA;  libswscale      8.  2.100 /  8.  2.100&#xA;  libswresample   5.  2.100 /  5.  2.100&#xA;  libpostproc    58.  2.100 / 58.  2.100&#xA;-vsync is deprecated. Use -fps_mode&#xA;Passing a number to -vsync is deprecated, use a string argument as described in the manual.&#xA;Selecting decoder &#x27;mpeg4&#x27; because of requested hwaccel method cuda&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2024-09-15T04:25:29.000000Z&#xA;    encoder         : Blackmagic Design DaVinci Resolve&#xA;  Duration: 00:20:34.87, start: 0.000000, bitrate: 347243 kb/s&#xA;  Stream #0:0[0x1]: Video: mpeg4 (Simple Profile), 1 reference frame (mp4v / 0x7634706D), yuv420p(bt709/bt709/unknown, left), 3840x2160 [SAR 1:1 DAR 16:9], 345703 kb/s, 60 fps, 60 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       :     &#xA;        encoder         : MPEG4 Video&#xA;        timecode        : 01:00:00:00&#xA;  Stream #0:1[0x2]: Audio: pcm_s16le (lpcm / 0x6D63706C), 48000 Hz, stereo, s16, 1536 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : SoundHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;  Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : TimeCodeHandler&#xA;        timecode        : 01:00:00:00&#xA;[out#0/mp4 @ 0x55a8929e8d80] No explicit maps, mapping streams automatically...&#xA;[vost#0:0/h264_nvenc @ 0x55a8929f5880] Created video stream from input stream 0:0&#xA;[aost#0:1/copy @ 0x55a893867080] Created audio stream from input stream 0:1&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (h264_nvenc))&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;[vost#0:0/h264_nvenc @ 0x55a8929f5880] Starting thread...&#xA;[vf#0:0 @ 0x55a8929f17c0] Starting thread...&#xA;[vist#0:0/mpeg4 @ 0x55a89293a100] [dec:mpeg4 @ 0x55a8929f4440] Starting thread...&#xA;[in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a8929e0600] Starting thread...&#xA;Press [q] to stop, [?] for help&#xA;[mpeg4 @ 0x55a893ed3200] NVDEC capabilities:&#xA;[mpeg4 @ 0x55a893ed3200] format supported: yes, max_mb_count: 8192&#xA;[mpeg4 @ 0x55a893ed3200] min_width: 48, max_width: 2032&#xA;[mpeg4 @ 0x55a893ed3200] min_height: 16, max_height: 2032&#xA;[mpeg4 @ 0x55a893ed3200] Video width 3840 not within range from 48 to 2032&#xA;[mpeg4 @ 0x55a893ed3200] Failed setup for format cuda: hwaccel initialisation returned error.&#xA;[graph -1 input from stream 0:0 @ 0x75c970002e40] w:3840 h:2160 pixfmt:yuv420p tb:1/15360 fr:60/1 sar:1/1 csp:bt709 range:unknown&#xA;[graph -1 input from stream 0:0 @ 0x75c970002e40] video frame properties congruent with link at pts_time: 0&#xA;[h264_nvenc @ 0x55a8929e62c0] Using device cuda0 (type cuda) with h264_nvenc encoder.&#xA;[h264_nvenc @ 0x55a8929e62c0] Loaded Nvenc version 12.2&#xA;[h264_nvenc @ 0x55a8929e62c0] Nvenc initialized successfully&#xA;[h264_nvenc @ 0x55a8929e62c0] The selected preset is deprecated. Use p1 to p7 &#x2B; -tune or fast/medium/slow.&#xA;Output #0, mp4, to &#x27;output-h264_nvenc-p7.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    encoder         : Lavf61.5.101&#xA;  Stream #0:0: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/unknown, progressive, left), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 8000 kb/s, 60 fps, 15360 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       :     &#xA;        timecode        : 01:00:00:00&#xA;        encoder         : Lavc61.13.100 h264_nvenc&#xA;      Side data:&#xA;        cpb: bitrate max/min/avg: 0/0/8000000 buffer size: 16000000 vbv_delay: N/A&#xA;  Stream #0:1: Audio: pcm_s16le (ipcm / 0x6D637069), 48000 Hz, stereo, s16, 1536 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : SoundHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;

    &#xA;

    How can I find the cause of the error and resolve it ?

    &#xA;

    Also is there a way to improve the quality of the output video as it's much lower than the original ? I tried doing the same conversion using libxh264 (using the CPU) and that produced a far better video.

    &#xA;

  • How can I remove silence of a video ? [closed]

    23 septembre 2024, par Alex

    I wanted to automatically remove the silence from some of my videos.

    &#xA;

    I found the following command by searching :

    &#xA;

    ffmpeg -i C:\Users\`*`myusername`*`\Desktop\videowithsielence.mp4 -af silenceremove=1:0:-50dB C:\Users\`*`myusername`*`\Desktop\newvideo.mp4&#xA;

    &#xA;

    There isn't any error and this is the following output :

    &#xA;

    ffmpeg version N-117094-g2bf588f273-20240921 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 14.2.0 (crosstool-NG 1.26.0.106_ed12fa6)&#xA;  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-libzmq --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libvvenc --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g&#x2B;&#x2B; --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20240921&#xA;  libavutil      59. 37.100 / 59. 37.100&#xA;  libavcodec     61. 17.100 / 61. 17.100&#xA;  libavformat    61.  6.100 / 61.  6.100&#xA;  libavdevice    61.  2.101 / 61.  2.101&#xA;  libavfilter    10.  3.100 / 10.  3.100&#xA;  libswscale      8.  2.100 /  8.  2.100&#xA;  libswresample   5.  2.100 /  5.  2.100&#xA;  libpostproc    58.  2.100 / 58.  2.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;C:\Users\*myusername*\Desktop\stille.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf61.1.100&#xA;  Duration: 00:00:17.60, start: 0.000000, bitrate: 14994 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 14915 kb/s, 60 fps, 60 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 83 kb/s (default)&#xA;      Metadata:&#xA;        handler_name    : SoundHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 000002b596997d00] using SAR=1/1&#xA;[libx264 @ 000002b596997d00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 000002b596997d00] profile High, level 4.2, 4:2:0, 8-bit&#xA;[libx264 @ 000002b596997d00] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2024 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mp4, to &#x27;C:\Users\*myusername*\Desktop\Aufzeich.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf61.6.100&#xA;  Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 60 fps, 15360 tbn (default)&#xA;      Metadata:&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : Lavc61.17.100 libx264&#xA;      Side data:&#xA;        cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;      Metadata:&#xA;        handler_name    : SoundHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : Lavc61.17.100 aac&#xA;[out#0/mp4 @ 000002b594b08800] video:2969KiB audio:180KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.825545%&#xA;frame= 1055 fps=236 q=-1.0 Lsize=    3174KiB time=00:00:16.54 bitrate=1571.3kbits/s speed= 3.7x&#xA;[libx264 @ 000002b596997d00] frame I:5     Avg QP:14.66  size:136185&#xA;[libx264 @ 000002b596997d00] frame P:351   Avg QP:18.48  size:  6338&#xA;[libx264 @ 000002b596997d00] frame B:699   Avg QP:25.92  size:   191&#xA;[libx264 @ 000002b596997d00] consecutive B-frames:  1.5%  6.1% 73.1% 19.3%&#xA;[libx264 @ 000002b596997d00] mb I  I16..4: 61.0% 21.9% 17.2%&#xA;[libx264 @ 000002b596997d00] mb P  I16..4:  0.2%  0.1%  0.0%  P16..4:  4.8%  0.8%  0.8%  0.0%  0.0%    skip:93.4%&#xA;[libx264 @ 000002b596997d00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  2.0%  0.0%  0.0%  direct: 0.0%  skip:98.0%  L0:75.0% L1:22.4% BI: 2.5%&#xA;[libx264 @ 000002b596997d00] 8x8 transform intra:22.8% inter:38.2%&#xA;[libx264 @ 000002b596997d00] coded y,uvDC,uvAC intra: 57.3% 73.0% 56.4% inter: 1.0% 1.0% 0.1%&#xA;[libx264 @ 000002b596997d00] i16 v,h,dc,p: 31% 25% 32% 12%&#xA;[libx264 @ 000002b596997d00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 21% 42%  2%  2%  2%  2%  3%  3%&#xA;[libx264 @ 000002b596997d00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 31% 22%  2%  2%  2%  2%  2%  3%&#xA;[libx264 @ 000002b596997d00] i8c dc,h,v,p: 41% 32% 13% 13%&#xA;[libx264 @ 000002b596997d00] Weighted P-Frames: Y:0.3% UV:0.0%&#xA;[libx264 @ 000002b596997d00] ref P L0: 68.2%  7.2% 20.4%  4.2%  0.0%&#xA;[libx264 @ 000002b596997d00] ref B L0: 79.0% 18.8%  2.2%&#xA;[libx264 @ 000002b596997d00] ref B L1: 98.4%  1.6%&#xA;[libx264 @ 000002b596997d00] kb/s:1382.74&#xA;[aac @ 000002b596a4f680] Qavg: 21440.516&#xA;

    &#xA;

    But the new video is exactly the same as the first one. I also tried changing the 50dB number but that didn't work either... My question is "Why ?" and "How can I fix this ?"...

    &#xA;