Recherche avancée

Médias (91)

Autres articles (29)

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

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (3955)

  • 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
  • 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
  • FFMPEG - Convert MKV to MP4 with all streams (subtitles) and watermark

    13 mars 2024, 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