Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (45)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (7313)

  • FFMPEG - Convert MKV to MP4 with all streams (subtitles) and watermark

    24 juillet 2016, par ShinJii

    I spent few hours researching and still have problem...
    I want to convert .mkv file to .mp4 with watermark and subtitles (from mkv).

    I tried few commands but always error or success with watermark without subtitles.
    Here are some commands I tried (not all) :

    Partial Success - some files are converted with subtitles, but I have 153 files that are converted without subtitles... (both from .mkv to .mp4) :

    ffmpeg -i 025.mkv -vf "movie=logovideo2.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10,subtitles=025.mkv [out]" 25.mp4

    ffmpeg -i 001.mkv -i logovideo2.png -filter_complex "[0:v][1:v]overlay=0:0,subtitles=001.mkv[out]" -map "[out]" -map 0:a -c:s ass 001.mp4

    Fail - command with error :

    ffmpeg -i 001.mkv -i logovideo2.png -filter_complex "[0:v][1:v]overlay=0:0[out]" -map "[out]" -map 0:a -map 0:s -c:s ass 001.mp4

    CODE (with error) :

    ffmpeg version N-81036-g2b14204 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
     configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libass
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 50.100 / 57. 50.100
     libavformat    57. 42.100 / 57. 42.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 47.100 /  6. 47.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from '001.mkv':
     Metadata:
       title           : DB
       encoder         : libebml v1.2.1 + libmatroska v1.1.1
       creation_time   : 2011-09-15 16:44:37
     Duration: 00:24:39.37, start: 0.000000, bitrate: 1429 kb/s
       Stream #0:0(jpn): Audio: vorbis, 48000 Hz, stereo, fltp (default)
       Stream #0:1: Video: h264 (High), yuv420p, 720x540 [SAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
       Stream #0:2(pol): Subtitle: ass (default)
       Metadata:
         title           : Grupa
    Input #1, png_pipe, from 'logovideo2.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, rgba(pc), 235x50 [SAR 2835:2835 DAR 47:10], 25 tbr, 25 tbn, 25 tbc
    File '001.mp4' already exists. Overwrite ? [y/N] y
    [libx264 @ 0x43c7a80] using SAR=1/1
    [libx264 @ 0x43c7a80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 0x43c7a80] profile High, level 3.0
    [libx264 @ 0x43c7a80] 264 - core 148 r2 3f5ed56 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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=12 lookahead_threads=2 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=23 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
    **[mp4 @ 0x442c9e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 2 times
    [mp4 @ 0x442c9e0] Could not find tag for codec ass in stream #2, codec not currently supported in container**
    Output #0, mp4, to '001.mp4':
     Metadata:
       title           : DB
       encoder         : Lavf57.42.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x540 [SAR 1:1 DAR 4:3], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
       Metadata:
         encoder         : Lavc57.50.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(jpn): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc57.50.100 aac
       Stream #0:2(pol): Subtitle: ass (default)
       Metadata:
         title           : Grupa
         encoder         : Lavc57.50.100 ass
    Stream mapping:
     Stream #0:1 (h264) -> overlay:main (graph 0)
     Stream #1:0 (png) -> overlay:overlay (graph 0)
     overlay (graph 0) -> Stream #0:0 (libx264)
     Stream #0:0 -> #0:1 (vorbis (native) -> aac (native))
     Stream #0:2 -> #0:2 (ass (ssa) -> ass (native))
    **Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument**
    [aac @ 0x43bf600] Qavg: -nan
  • Mp4 render result from ffmpeg not playable on android

    11 juillet 2019, par albert

    I’m using PHP to run ffmpeg(4.0.2) render out MP4 file.
    MP4 file playable on all of iOS device, and most laptop, but not playable on android device.

    Here is the ffmpeg code I use to render the video

    /usr/local/bin/ffmpeg -filter_complex "[0]reverse[r];[0][r]concat, loop=1:65, setpts=N/15/TB" -r 15 -f image2 -i /Source/0001_CAM%02d.jpg -c:v libx264 -preset fast -crf 19 -profile:v baseline -movflags +faststart -pix_fmt yuv420p /Result/output.mp4

    Here is the log

    [0] => ffmpeg version N-91590-geb1860e017-tessus Copyright (c) 2000-2018 the FFmpeg developers
       [1] =>   built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
       [2] =>   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
       [3] =>   libavutil      56. 18.102 / 56. 18.102
       [4] =>   libavcodec     58. 22.101 / 58. 22.101
       [5] =>   libavformat    58. 17.101 / 58. 17.101
       [6] =>   libavdevice    58.  4.101 / 58.  4.101
       [7] =>   libavfilter     7. 26.100 /  7. 26.100
       [8] =>   libswscale      5.  2.100 /  5.  2.100
       [9] =>   libswresample   3.  2.100 /  3.  2.100
       [10] =>   libpostproc    55.  2.100 / 55.  2.100
       [11] => Input #0, image2, from '/Source/0001_CAM%02d.jpg':
       [12] =>   Duration: 00:00:00.33, start: 0.000000, bitrate: N/A
       [13] =>     Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 3456x2304, 15 tbr, 15 tbn, 15 tbc
       [14] => Stream mapping:
       [15] =>   Stream #0:0 (mjpeg) -> reverse
       [16] =>   Stream #0:0 (mjpeg) -> concat:in0:v0
       [17] =>   setpts -> Stream #0:0 (libx264)
       [18] => Press [q] to stop, [?] for help
       [19] => [swscaler @ 0x1077f9000] deprecated pixel format used, make sure you did set range correctly
       [20] => [libx264 @ 0x7fd583800600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
       [21] => [libx264 @ 0x7fd583800600] profile Constrained Baseline, level 5.1, 4:2:0, 8-bit
       [22] => [libx264 @ 0x7fd583800600] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 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=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
       [23] => Output #0, mp4, to '/Result/output.mp4':
       [24] =>   Metadata:
       [25] =>     encoder         : Lavf58.17.101
       [26] =>     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 3456x2304, q=-1--1, 15 fps, 15360 tbn, 15 tbc (default)
       [27] =>     Metadata:
       [28] =>       encoder         : Lavc58.22.101 libx264
       [29] =>     Side data:
       [30] =>       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       [31] => frame=    8 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    [mp4 @ 0x7fd583804a00] Starting second pass: moving the moov atom to the beginning of the file
       [32] => frame=   20 fps=5.1 q=-1.0 Lsize=   10642kB time=00:00:01.26 bitrate=68823.6kbits/s speed=0.322x
       [33] => video:10641kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.009452%
       [34] => [libx264 @ 0x7fd583800600] frame I:4     Avg QP:17.92  size:895006
       [35] => [libx264 @ 0x7fd583800600] frame P:16    Avg QP:19.96  size:457246
       [36] => [libx264 @ 0x7fd583800600] mb I  I16..4: 11.5%  0.0% 88.5%
       [37] => [libx264 @ 0x7fd583800600] mb P  I16..4:  4.1%  0.0% 25.0%  P16..4: 27.7% 19.0%  6.8%  0.0%  0.0%    skip:17.3%
       [38] => [libx264 @ 0x7fd583800600] coded y,uvDC,uvAC intra: 92.9% 89.0% 56.0% inter: 51.3% 65.2% 3.9%
       [39] => [libx264 @ 0x7fd583800600] i16 v,h,dc,p: 28%  5% 14% 52%
       [40] => [libx264 @ 0x7fd583800600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 12% 15%  8%  9% 10%  7%  8%  6%
       [41] => [libx264 @ 0x7fd583800600] i8c dc,h,v,p: 47% 16% 29%  8%
       [42] => [libx264 @ 0x7fd583800600] ref P L0: 81.6% 18.4%
       [43] => [libx264 @ 0x7fd583800600] kb/s:65375.79
  • Inputing a List of Files for Concatenation with Node.js Module fluent-ffmpeg

    26 juin 2018, par carpiediem

    Version information

    • fluent-ffmpeg version : 2.1.2
    • ffmpeg version : 3.4.2
    • OS : Windows 10

    Code to reproduce

    ffmpeg('C:/path/to/list.txt').mergeToFile('C:/path/to/out.mp4', 'C:/path/to/temp');

    list.txt :

    file 'C:/path/to/chunk01.ts'
    file 'C:/path/to/chunk02.ts'
    file 'C:/path/to/chunk03.ts'
    file 'C:/path/to/chunk04.ts'

    Note : I’ve tried both absolute and relative paths, with the same result.

    Expected results

    A video file at C:/path/to/out.mp4 that matches the 4 files in list.txt, concatenated end-to-end.

    Observed results

    An empty file at C:/path/to/out.mp4 with 0 duration and only 15kB in size. No errors were thrown.

    This is the command that I’m trying to duplicate (it works as expected, with relative paths in list.txt) :

    C:/path/to> ffmpeg -f concat -i list.txt -c copy out.ts

    stdout & stderr

    stdout was empty. stderr is copied below (with file names modified to match the ones above) :

    ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --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-libmfx --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Input #0, tty, from 'C:/path/to/list.txt':
     Duration: 00:00:00.08, bitrate: 42 kb/s
       Stream #0:0: Video: ansi, pal8, 640x400, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 (ansi) -> concat
     concat -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    [libx264 @ 000001e385b45040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000001e385b45040] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
    [libx264 @ 000001e385b45040] 264 - core 155 r2901 7d0ff22 - 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=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=4 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 'C:/path/to/out.mp4':
     Metadata:
       encoder         : Lavf57.83.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 640x400, q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.107.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame=    2 fps=0.0 q=-1.0 Lsize=      15kB time=00:00:00.04 bitrate=3099.0kbits/s speed=1.55x
    video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.619430%
    [libx264 @ 000001e385b45040] frame I:1     Avg QP:12.71  size:  8083
    [libx264 @ 000001e385b45040] frame P:1     Avg QP:29.71  size:  5928
    [libx264 @ 000001e385b45040] mb I  I16..4: 87.9%  0.0% 12.1%
    [libx264 @ 000001e385b45040] mb P  I16..4:  9.3%  0.0%  0.0%  P16..4:  0.4%  0.0%  0.0%  0.0%  0.0% skip:90.3%
    [libx264 @ 000001e385b45040] coded y,u,v intra: 17.9% 0.0% 0.0% inter: 0.1% 0.0% 0.0%
    [libx264 @ 000001e385b45040] i16 v,h,dc,p: 88%  8%  4%  0%
    [libx264 @ 000001e385b45040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 31% 19%  3%  2%  3%  7%  4%  3%
    [libx264 @ 000001e385b45040] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000001e385b45040] kb/s:1401.10