Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (94)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (10578)

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

    



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


    



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

    



    -filter_complex "[0:a] adelay=2s|2s [delayed]" \
-map [delayed] -map 0:v \

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

frame=  434 fps= 24 q=0.0 size=   37063kB time=00:00:18.09 bitrate=16780.7kbits/s speed=1.01x   


    


  • 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
  • ffmpeg overlay timing issue

    22 avril 2020, par Mario Iannotta

    I'm trying to add a png as overlay to a mov video with ffmpeg (version 4.2.2) using the following command :

    &#xA;&#xA;

    ffmpeg -i ./input.mov -i ./overlay.png -y -filter_complex "overlay=enable=&#x27;between(t,1,4)&#x27;" ./output.mp4

    &#xA;&#xA;

    Now my understanding of overlay=enable=&#x27;between(t,1,4) is that the overlay will be added at one second and will be removed at 4 seconds since the begin of the video but the output is somehow different.

    &#xA;&#xA;

    The overlay is added at roughly 2:66 and it is removed at 5:14.

    &#xA;&#xA;

    Trying with different values result in even more confusing outputs.

    &#xA;&#xA;

    eg :

    &#xA;&#xA;

      &#xA;
    • between(t,3,10) —> 3:12 | 11:05

    • &#xA;

    • between(t,2,7) —> 2:65 | 7:22

    • &#xA;

    • between(t,1,2) —> the overlay is not added ad all

    • &#xA;

    &#xA;&#xA;

    The metadata of the input video are the following

    &#xA;&#xA;

      Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    creation_time   : 2020-04-19T08:09:00.000000Z&#xA;  Duration: 00:00:14.84, start: 0.053333, bitrate: 849 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt709/unknown), 828x1792 [SAR 1:1 DAR 207:448], 848 kb/s, 23.34 fps, 600 tbr, 600 tbn, 1200 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-19T08:09:00.000000Z&#xA;      handler_name    : Core Media Video&#xA;      encoder         : H.264&#xA;

    &#xA;&#xA;

    I also tried to convert the video to mp4 (with ffmpeg -i input.mov -vcodec copy -acodec copy out.mp4) before applying the overlay but the issue is still there.

    &#xA;&#xA;

    Edit : I downloaded a test mp4 video and the command is working as expected so it is definitely something wrong with my input video. Any idea what it is ?

    &#xA;&#xA;

    Edit 2 : Here's the output of ffmpeg command :

    &#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;./input.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    creation_time   : 2020-04-22T07:49:31.000000Z&#xA;  Duration: 00:00:17.80, start: 0.051667, bitrate: 1097 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/unknown/unknown), 750x1334 [SAR 1:1 DAR 375:667], 1097 kb/s, 12.96 fps, 60 tbr, 600 tbn, 1200 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-04-22T07:49:31.000000Z&#xA;      handler_name    : Core Media Video&#xA;      encoder         : H.264&#xA;Input #1, png_pipe, from &#x27;./overlay.png&#x27;:&#xA;  Duration: N/A, bitrate: N/A&#xA;    Stream #1:0: Video: png, rgba(pc), 83x128, 25 tbr, 25 tbn, 25 tbc&#xA;Stream mapping:&#xA;  Stream #0:0 (h264) -> overlay:main&#xA;  Stream #1:0 (png) -> overlay:overlay&#xA;  overlay -> Stream #0:0 (libx264)&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x7fcad0001200] using SAR=1/1&#xA;[libx264 @ 0x7fcad0001200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7fcad0001200] profile High, level 4.0&#xA;[libx264 @ 0x7fcad0001200] 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=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;./output.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 750x1334 [SAR 1:1 DAR 375:667], q=-1--1, 60 fps, 15360 tbn, 60 tbc (default)&#xA;    Metadata:&#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;frame=  326 fps=0.0 q=31.0 size=       0kB time=00:00:04.35 bitrate=   0.1kbits/frame=  499 fps=461 q=31.0 size=     256kB time=00:00:07.23 bitrate= 290.0kbits/frame=  830 fps=494 q=31.0 size=     512kB time=00:00:12.75 bitrate= 329.0kbits/frame=  956 fps=491 q=-1.0 Lsize=     593kB time=00:00:15.88 bitrate= 306.0kbits/s dup=726 drop=0 speed=8.16x&#xA;video:581kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.030694%&#xA;[libx264 @ 0x7fcad0001200] frame I:6     Avg QP:18.73  size: 30783&#xA;[libx264 @ 0x7fcad0001200] frame P:288   Avg QP:21.57  size:  1150&#xA;[libx264 @ 0x7fcad0001200] frame B:662   Avg QP:30.94  size:   119&#xA;[libx264 @ 0x7fcad0001200] consecutive B-frames:  4.9%  6.9%  4.1% 84.1%&#xA;[libx264 @ 0x7fcad0001200] mb I  I16..4: 19.1% 64.5% 16.4%&#xA;[libx264 @ 0x7fcad0001200] mb P  I16..4:  0.8%  0.9%  0.5%  P16..4:  2.4%  0.4%  0.1%  0.0%  0.0%    skip:94.9%&#xA;[libx264 @ 0x7fcad0001200] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8:  1.8%  0.0%  0.0%  direct: 0.0%  skip:98.0%  L0:43.8% L1:55.9% BI: 0.3%&#xA;[libx264 @ 0x7fcad0001200] 8x8 transform intra:53.9% inter:64.1%&#xA;[libx264 @ 0x7fcad0001200] coded y,uvDC,uvAC intra: 18.2% 20.8% 13.9% inter: 0.1% 0.4% 0.1%&#xA;[libx264 @ 0x7fcad0001200] i16 v,h,dc,p: 35% 63%  1%  1%&#xA;[libx264 @ 0x7fcad0001200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 17% 29%  1%  1%  1%  1%  1%  1%&#xA;[libx264 @ 0x7fcad0001200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 15%  3%  4%  4%  3%  3%  3%&#xA;[libx264 @ 0x7fcad0001200] i8c dc,h,v,p: 71% 21%  7%  1%&#xA;[libx264 @ 0x7fcad0001200] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x7fcad0001200] ref P L0: 74.6%  4.0% 13.4%  8.0%&#xA;[libx264 @ 0x7fcad0001200] ref B L0: 80.0% 17.6%  2.3%&#xA;[libx264 @ 0x7fcad0001200] ref B L1: 97.6%  2.4%&#xA;[libx264 @ 0x7fcad0001200] kb/s:298.58&#xA;

    &#xA;