Recherche avancée

Médias (91)

Autres articles (75)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (10529)

  • amix filter is causing audio to disappear

    21 novembre 2019, par Mason

    I’m trying overlay audio onto a video. I have a very simple ffmpeg command (auido.mp3 is much longer than the video)

    ffmpeg -i video.mp4 -i audio.mp3 -filter_complex "[0:a] [1:a] amix=duration=shortest [a]" -map 0:v -map [a] test.mp4

    This produces a silent video. However, when not mapping the video stream

    ffmpeg -i video.mp4 -i audio.mp3 -filter_complex "[0:a] [1:a] amix=duration=shortest [a]" -map [a] test.mp4

    The resulting audio file is as expected.

    What could be causing this issues ?

    (Is there a better way to overlay audio onto a video via ffmpeg ?)

    Edit : log

    ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.1.1 (GCC) 20190807
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2019-11-15T05:28:05.000000Z
     Duration: 00:00:00.53, start: 0.000000, bitrate: 9463 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9546 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
       Metadata:
         creation_time   : 2019-11-15T05:28:05.000000Z
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
       Metadata:
         creation_time   : 2019-11-15T05:28:05.000000Z
         handler_name    : #Mainconcept MP4 Sound Media Handler
    [mp3 @ 000001fdf5f7f040] Estimating duration from bitrate, this may be inaccurate
    Input #1, mp3, from 'audio.mp3':
     Metadata:
       date            : 2019-11-14 23:31
       id3v2_priv.XMP  : &lt;?xpacket begin="\xef\xbb\xbf" id="W5M0MpCehiHzreSzNTczkc9d"?>\x0a\x0a \x0a  <rdf 256="256" kb="kb"></rdf>s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 256 kb/s
    Stream mapping:
     Stream #0:1 (aac) -> amix:input0 (graph 0)
     Stream #1:0 (mp3float) -> amix:input1 (graph 0)
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     amix (graph 0) -> Stream #0:1 (aac)
    Press [q] to stop, [?] for help
    [libx264 @ 000001fdf64ab700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000001fdf64ab700] profile High, level 4.0, 4:2:0, 8-bit
    [libx264 @ 000001fdf64ab700] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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
    Output #0, mp4, to 'test.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       encoder         : Lavf58.29.100
       Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
       Metadata:
         creation_time   : 2019-11-15T05:28:05.000000Z
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : Lavc58.54.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.54.100 aac
    frame=   15 fps=0.0 q=-1.0 Lsize=     695kB time=00:00:00.40 bitrate=14232.7kbits/s speed=0.437x    
    video:693kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.226150%
    [libx264 @ 000001fdf64ab700] frame I:1     Avg QP:30.52  size:101545
    [libx264 @ 000001fdf64ab700] frame P:7     Avg QP:28.22  size: 44755
    [libx264 @ 000001fdf64ab700] frame B:7     Avg QP:30.76  size: 42074
    [libx264 @ 000001fdf64ab700] consecutive B-frames: 20.0% 40.0% 40.0%  0.0%
    [libx264 @ 000001fdf64ab700] mb I  I16..4: 68.3% 10.5% 21.2%
    [libx264 @ 000001fdf64ab700] mb P  I16..4: 17.6%  4.8%  4.3%  P16..4: 28.5%  4.5%  2.8%  0.0%  0.0%    skip:37.6%
    [libx264 @ 000001fdf64ab700] mb B  I16..4: 17.6%  2.4%  1.3%  B16..8: 37.9%  6.7%  1.3%  direct: 4.9%  skip:27.8%  L0:40.5% L1:54.3% BI: 5.2%
    [libx264 @ 000001fdf64ab700] 8x8 transform intra:13.9% inter:59.5%
    [libx264 @ 000001fdf64ab700] coded y,uvDC,uvAC intra: 54.5% 53.3% 42.3% inter: 15.3% 27.8% 21.6%
    [libx264 @ 000001fdf64ab700] i16 v,h,dc,p:  5% 88%  5%  2%
    [libx264 @ 000001fdf64ab700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 53% 29%  1%  1%  1%  2%  1%  2%
    [libx264 @ 000001fdf64ab700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 80%  9%  1%  1%  0%  1%  0%  2%
    [libx264 @ 000001fdf64ab700] i8c dc,h,v,p: 16% 80%  3%  1%
    [libx264 @ 000001fdf64ab700] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000001fdf64ab700] ref P L0: 40.3%  4.9% 11.0% 43.8%
    [libx264 @ 000001fdf64ab700] ref B L0: 80.0% 11.1%  8.9%
    [libx264 @ 000001fdf64ab700] kb/s:11349.57
    [aac @ 000001fdf64ac600] Qavg: 41522.195
  • avcodec/adpcm_ima_swf : fix frame size to 4096

    6 novembre 2020, par Zane van Iperen
    avcodec/adpcm_ima_swf : fix frame size to 4096
    

    SWF File Format Specification, Version 19 says this is 1 raw
    sample + 4095 nibbles.

    https://www.adobe.com/content/dam/acom/en/devnet/pdf/swf-file-format-spec.pdf

    Signed-off-by : Zane van Iperen <zane@zanevaniperen.com>

    • [DH] libavcodec/adpcmenc.c
    • [DH] tests/ref/acodec/adpcm-swf
    • [DH] tests/ref/acodec/adpcm-swf-trellis
    • [DH] tests/ref/acodec/adpcm-swf-wav
    • [DH] tests/ref/seek/acodec-adpcm-swf
    • [DH] tests/ref/seek/acodec-adpcm-swf-trellis
  • Getting a lot of Tail Silence when combining an image and audio into mp4 movie

    1er avril 2023, par Meryan

    As it can be seen from this snapshot the audio HELLO.mp3 combined with bitmap HELLO.jpg produced a movie HELLO_aac.mp4 that has a huge amount of tail silence

    &#xA;

    enter image description here

    &#xA;

    The command line I was helped to put together is the following

    &#xA;

    ======================== &#xA;IN_FILES=-i ".\HELLO.JPG" -i ".\HELLO.MP3"    &#xA;OUT_FILE=".\HELLO_aac.MP4"   &#xA;EXE="S:\_BINS\FFmpeg 4.2.1 20200112\bin\ffmpeg.exe"  &#xA;OPTIONS= -loop 1   -i ".\HELLO.JPG" -i ".\HELLO.MP3"    -vf "scale=-1:1080,pad=1920:1080:(1920-iw)/2:(1080-ih)/2,setsar=1"  -c:v libx264 -profile:v main -pix_fmt yuv420p -r 24 -video_track_timescale 24000    -c:a aac    -shortest -y ".\HELLO_aac.MP4"     &#xA;======================== &#xA;&#xA;

    &#xA;

    Here is the captured output from FFmpeg

    &#xA;

    ffmpeg version git-2020-01-10-3d894db Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.2.1 (GCC) 20191125&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 38.100 / 56. 38.100&#xA;  libavcodec     58. 65.103 / 58. 65.103&#xA;  libavformat    58. 35.101 / 58. 35.101&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 70.101 /  7. 70.101&#xA;  libswscale      5.  6.100 /  5.  6.100&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;Input #0, image2, from &#x27;.\HELLO.JPG&#x27;:&#xA;  Duration: 00:00:00.04, start: 0.000000, bitrate: 23923 kb/s&#xA;    Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1600x1200 [SAR 120:120 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 25 tbc&#xA;[mp3 @ 000002019015d4c0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #1, mp3, from &#x27;.\HELLO.MP3&#x27;:&#xA;  Metadata:&#xA;    genre           : Blues&#xA;    id3v2_priv.XMP  : &lt;?xpacket begin="\xef\xbb\xbf" id="W5M0MpCehiHzreSzNTczkc9d"?>\x0a\x0a \x0a  s&#xA;    Stream #1:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))&#xA;  Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0000020190b10380] deprecated pixel format used, make sure you did set range correctly&#xA;[swscaler @ 0000020190b10380] Warning: data is not aligned! This can lead to a speed loss&#xA;[libx264 @ 0000020190759300] using SAR=1/1&#xA;[libx264 @ 0000020190759300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0000020190759300] profile Main, level 4.0, 4:2:0, 8-bit&#xA;[libx264 @ 0000020190759300] 264 - core 158 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=34 lookahead_threads=5 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=24 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;.\HELLO_aac.MP4&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.35.101&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24 fps, 24k tbn, 24 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.65.103 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 69 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.65.103 aac&#xA;frame=   69 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=1 speed=   0x    &#xA;frame=   97 fps=0.0 q=-1.0 Lsize=     128kB time=00:00:03.91 bitrate= 267.1kbits/s dup=0 drop=2 speed=5.04x    &#xA;video:119kB audio:6kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.208101%&#xA;[libx264 @ 0000020190759300] frame I:1     Avg QP:12.88  size:103994&#xA;[libx264 @ 0000020190759300] frame P:24    Avg QP:14.05  size:   224&#xA;[libx264 @ 0000020190759300] frame B:72    Avg QP:12.67  size:   160&#xA;[libx264 @ 0000020190759300] consecutive B-frames:  1.0%  0.0%  0.0% 99.0%&#xA;[libx264 @ 0000020190759300] mb I  I16..4: 61.7%  0.0% 38.3%&#xA;[libx264 @ 0000020190759300] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  0.5%  0.1%  0.0%  0.0%  0.0%    skip:99.3%&#xA;[libx264 @ 0000020190759300] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.6%  0.0%  0.0%  direct: 0.0%  skip:98.4%  L0:81.1% L1:18.9% BI: 0.0%&#xA;[libx264 @ 0000020190759300] coded y,uvDC,uvAC intra: 34.5% 17.3% 15.6% inter: 0.0% 0.1% 0.0%&#xA;[libx264 @ 0000020190759300] i16 v,h,dc,p: 70% 19%  7%  3%&#xA;[libx264 @ 0000020190759300] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 22% 12%  4%  5%  5%  3%  5%  4%&#xA;[libx264 @ 0000020190759300] i8c dc,h,v,p: 80%  8% 10%  2%&#xA;[libx264 @ 0000020190759300] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0000020190759300] ref P L0: 97.6%  0.3%  1.5%  0.6%&#xA;[libx264 @ 0000020190759300] ref B L0:  1.8% 98.2%&#xA;[libx264 @ 0000020190759300] ref B L1: 99.9%  0.1%&#xA;[libx264 @ 0000020190759300] kb/s:239.28&#xA;[aac @ 000002019075bf40] Qavg: 8004.814&#xA;======================== &#xA;

    &#xA;

    I have also tried the following command line

    &#xA;

    "S:\_BINS\ffmpeg-2023-03-20\bin\ffmpeg.exe" -loop 1 -i "HELLO.JPG" -i "HELLO.MP3" -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -y -shortest "HELLO_aac.mp4"    &#xA;

    &#xA;

    With similar long dead tail silence ???

    &#xA;