Recherche avancée

Médias (91)

Autres articles (103)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (12173)

  • avcodec/adpcm_ima_{apc, ssi, oki} : replace while() with for()

    18 avril 2020, par Zane van Iperen
    avcodec/adpcm_ima_apc, ssi, oki : replace while() with for()
    

    Per discussion at https://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/260854.html

    Signed-off-by : Zane van Iperen <zane@zanevaniperen.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/adpcm.c
  • adding delay to an audio stream of a live feed in ffmpeg

    19 avril 2020, par blackirishman

    I am currently capturing video via a Blackmagic decklink card on macOS. My audio and video are out of sync. The audio is ahead about a second. I suspect the video is slower on account of encoding latency. My solution is to retard the audio using the ffmpeg adelay filter. I originally added a -af "adelay=1000|1000" to my command to delay the audio by 1000ms but I found that this audio filter did nothing. Consequently, I tried to build a complex_filter, but this failed. My command is producing too many streams that ffmpeg can't route them to the proper rtp endpoint. So what is the best way to delay the audio and can I select which streams map to rtp endpoints ?

    &#xA;&#xA;

    ffmpeg \&#xA;-format_code 23ps \&#xA;-f decklink \&#xA;-i "DeckLink HD Extreme 3" \&#xA;-filter_complex "[0:a] adelay=2s|2s [delayed]" \&#xA;-map [delayed] -map 0:v \&#xA;-r 24 \&#xA;-g 1 \&#xA;-s 1920x1080 \&#xA;-quality realtime \&#xA;-speed 8 \&#xA;-threads 8 \&#xA;-row-mt 1 \&#xA;-tile-columns 2 \&#xA;-frame-parallel 1 \&#xA;-qmin 30 \&#xA;-qmax 35 \&#xA;-b:v 2000k \&#xA;-pix_fmt yuv420p \&#xA;-c:v libvpx-vp9 \&#xA;-strict experimental \&#xA;-an -f rtp rtp://myurl.com:5004?pkt_size=1300 \&#xA;-c:a libopus \&#xA;-b:a 128k \&#xA;-vn -f rtp rtp://myurl.com:5002?pkt_size=1300&#xA;

    &#xA;&#xA;

    adding a full log when running the command with out any delay :

    &#xA;&#xA;

    -filter_complex "[0:a] adelay=2s|2s [delayed]" \&#xA;-map [delayed] -map 0:v \&#xA;&#xA;ffmpeg version N-97362-g889ad93c88 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple LLVM version 9.0.0 (clang-900.0.39.2)&#xA;  configuration: --prefix=/usr/local --pkg-config-flags=--static --extra-cflags=&#x27;-fno-stack-check -I/Users/admin/Documents/ffmpeg_build/include -I/Users/admin/Documents/BDS/Mac/include&#x27; --extra-ldflags=-L/Users/admin/Documents/ffmpeg_build/lib --extra-libs=&#x27;-lpthread -lm&#x27; --bindir=/Users/admin/Documents/ffmpeg_build/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-decklink&#xA;  libavutil      56. 42.102 / 56. 42.102&#xA;  libavcodec     58. 80.100 / 58. 80.100&#xA;  libavformat    58. 42.100 / 58. 42.100&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 77.101 /  7. 77.101&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;[decklink @ 0x7fcfb2000000] Found Decklink mode 1920 x 1080 with rate 23.98&#xA;[decklink @ 0x7fcfb2000000] Frame received (#2) - No input signal detected - Frames dropped 1&#xA;Guessed Channel Layout for Input Stream #0.0 : stereo&#xA;Input #0, decklink, from &#x27;DeckLink HD Extreme 3&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 797002 kb/s&#xA;    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;    Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422(progressive), 1920x1080, 795466 kb/s, 23.98 tbr, 1000k tbn, 1000k tbc&#xA;[decklink @ 0x7fcfb2000000] Frame received (#3) - Input returned - Frames dropped 2&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))&#xA;  Stream #0:0 -> #1:0 (pcm_s16le (native) -> opus (libopus))&#xA;Press [q] to stop, [?] for help&#xA;[libvpx-vp9 @ 0x7fcfb180d200] v1.8.2&#xA;Output #0, rtp, to &#x27;rtp://myurl.com.com:5004?pkt_size=1300&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.42.100&#xA;    Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 1920x1080, q=30-35, 2000 kb/s, 24 fps, 90k tbn, 24 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.80.100 libvpx-vp9&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;Output #1, rtp, to &#x27;rtp://myrul.com:5002?pkt_size=1300&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.42.100&#xA;    Stream #1:0: Audio: opus (libopus), 48000 Hz, stereo, s16, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.80.100 libopus&#xA;SDP:&#xA;v=0&#xA;o=- 0 0 IN IP4 127.0.0.1&#xA;s=No Name&#xA;t=0 0&#xA;a=tool:libavformat 58.42.100&#xA;m=video 5004 RTP/AVP 96&#xA;c=IN IP4 54.183.58.143&#xA;b=AS:2000&#xA;a=rtpmap:96 VP9/90000&#xA;m=audio 5002 RTP/AVP 97&#xA;c=IN IP4 54.183.58.143&#xA;b=AS:128&#xA;a=rtpmap:97 opus/48000/2&#xA;a=fmtp:97 sprop-stereo=1&#xA;&#xA;frame=  434 fps= 24 q=0.0 size=   37063kB time=00:00:18.09 bitrate=16780.7kbits/s speed=1.01x   &#xA;

    &#xA;

  • FFmpeg concatenate video and add watermark

    18 avril 2020, par user7356972

    I have command to overlay two video one on other.

    &#xA;&#xA;

    ffmpeg -i input.mp4 -vf "movie= overlay.mov [a]; [1][a]scale2ref[2nd][ref];[2nd][ref]overlay=0:0 [c]"  output.mp4 &#xA;

    &#xA;&#xA;

    Now I want to add water watermark and concatenate a new video append.mov in above command. I have found a command to add watermark.

    &#xA;&#xA;

    ffmpeg -i output.mp4 -i watermark.png -filter_complex "overlay=10:10" outputwatermark.mp4&#xA;

    &#xA;&#xA;

    But I want to merge both the command and also need to concatenate append.mov to output.mp4.

    &#xA;&#xA;

    Also above overlay two video command takes too long time to process if video size is large. Any suggestion on that(should not affect quality of video) ?

    &#xA;&#xA;

    I tried following command to concatenate video.

    &#xA;&#xA;

    ffmpeg -i abc.mp4 -i ../input/overlay2.mov append.mp4&#xA;

    &#xA;&#xA;

    The video was not concatenate, below is the output.

    &#xA;&#xA;

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;abc.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;  Duration: 00:00:37.40, start: 0.000000, bitrate: 474 kb/s&#xA;    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x540 [SAR 3:4 DAR 4:3], 324 kb/s, 1k fps, 1k tbr, 16k tbn, 2k tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;../input/overlay2.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 537199360&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2020-03-27T16:32:23.000000Z&#xA;  Duration: 00:00:37.44, start: 0.000000, bitrate: 3519 kb/s&#xA;    Stream #1:0(eng): Video: qtrle (rle  / 0x20656C72), argb(progressive), 640x352, 3295 kb/s, SAR 1:1 DAR 20:11, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-03-27T16:32:23.000000Z&#xA;      handler_name    : Apple Video Media Handler&#xA;      encoder         : Animation&#xA;      timecode        : 00:00:00:00&#xA;    Stream #1:1(eng): Data: none (tmcd / 0x64636D74) (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-03-27T16:32:23.000000Z&#xA;      handler_name    : Time Code Media Handler&#xA;      timecode        : 00:00:00:00&#xA;File &#x27;append.mp4&#x27; already exists. Overwrite ? [y/N] y&#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 @ 0x7ff35a012200] using SAR=3/4&#xA;[libx264 @ 0x7ff35a012200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7ff35a012200] profile High, level 5.2&#xA;[libx264 @ 0x7ff35a012200] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=6 lookahead_threads=1 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;append.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 960x540 [SAR 3:4 DAR 4:3], q=-1--1, 1k fps, 16k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      encoder         : Lavc58.54.100 aac&#xA;frame=37399 fps=378 q=-1.0 Lsize=    2138kB time=00:00:37.39 bitrate= 468.4kbits/s speed=0.378x    &#xA;video:1454kB audio:221kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 27.624002%&#xA;[libx264 @ 0x7ff35a012200] frame I:150   Avg QP:11.47  size:  1655&#xA;[libx264 @ 0x7ff35a012200] frame P:9423  Avg QP:14.43  size:    52&#xA;[libx264 @ 0x7ff35a012200] frame B:27826 Avg QP:17.67  size:    27&#xA;[libx264 @ 0x7ff35a012200] consecutive B-frames:  0.8%  0.0%  0.0% 99.2%&#xA;[libx264 @ 0x7ff35a012200] mb I  I16..4: 94.0%  4.3%  1.7%&#xA;[libx264 @ 0x7ff35a012200] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:99.8%&#xA;[libx264 @ 0x7ff35a012200] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:54.5% L1:45.5% BI: 0.1%&#xA;[libx264 @ 0x7ff35a012200] 8x8 transform intra:4.8% inter:84.4%&#xA;[libx264 @ 0x7ff35a012200] coded y,uvDC,uvAC intra: 1.6% 2.3% 2.0% inter: 0.0% 0.0% 0.0%&#xA;[libx264 @ 0x7ff35a012200] i16 v,h,dc,p: 96%  0%  3%  0%&#xA;[libx264 @ 0x7ff35a012200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 58%  9% 28%  1%  1%  1%  1%  1%  1%&#xA;[libx264 @ 0x7ff35a012200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 22% 15%  4%  4%  5%  5%  4%  4%&#xA;[libx264 @ 0x7ff35a012200] i8c dc,h,v,p: 97%  1%  1%  0%&#xA;[libx264 @ 0x7ff35a012200] Weighted P-Frames: Y:1.9% UV:1.9%&#xA;[libx264 @ 0x7ff35a012200] ref P L0: 86.3%  8.4%  4.5%  0.8%  0.0%&#xA;[libx264 @ 0x7ff35a012200] ref B L0: 75.4% 24.0%  0.5%&#xA;[libx264 @ 0x7ff35a012200] ref B L1: 98.1%  1.9%&#xA;[libx264 @ 0x7ff35a012200] kb/s:318.42&#xA;[aac @ 0x7ff35a013a00] Qavg: 152.336&#xA;

    &#xA;