Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (82)

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

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • merge (video and sound) with (background music)

    27 novembre 2016, par Nir di

    i have video file vid.mpg that contain video and audio(speaking) and audio file aud.wav that contain background music.

    now, i want to merge them together.

    here is the command that i use :

    ffmpeg -i vid.mpg -i aud.mp3 -c:v copy  -filter_complex "[0:a]aformat = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a][1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg

    and this is the error that i get as response :

    [Parsed_amerge_4 @ 00000000003a36e0] No channel layout for input 1
    [Parsed_amerge_4 @ 00000000003a36e0] Input channel layouts overlap: output layou
    t will be determined by the number of distinct input channels
    [mpeg @ 000000000289a4e0] VBV buffer size not set, using default size of 130KB
    If you want the mpeg file to be compliant to some specification
    Like DVD, VCD or others, make sure you set the correct buffer size

    in addition i add the full log :

    C:\bina\ffmpeg\bin>ffmpeg -i vid.mpg -i
    aud.mp3 -c:v copy  -filter_complex "[1:a]aform
    at = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a]
    [1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg
    ffmpeg version N-78949-g6f5048f Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopenc
    ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable
    -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
    ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
    264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
    -lzma --enable-decklink --enable-zlib
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 27.101 / 57. 27.101
     libavformat    57. 28.100 / 57. 28.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.100 /  6. 39.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mpeg, from 'vid.mpg':
     Duration: 00:00:33.62, start: 0.529978, bitrate: 22407 kb/s
       Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:
    1 DAR 16:9], max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
    [mp3 @ 00000000003e3c20] Skipping 0 bytes of junk at 253.
    Input #1, mp3, from 'aud.mp3':
     Metadata:
       encoder         : Lavf57.28.100
     Duration: 00:01:03.03, start: 0.025057, bitrate: 128 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc57.27
    File 'out.mpg' already exists. Overwrite
    ? [y/N] y
    [Parsed_amerge_4 @ 00000000003a36e0] No channel layout for input 1
    [Parsed_amerge_4 @ 00000000003a36e0] Input channel layouts overlap: output layou
    t will be determined by the number of distinct input channels
    [mpeg @ 000000000289a4e0] VBV buffer size not set, using default size of 130KB
    If you want the mpeg file to be compliant to some specification
    Like DVD, VCD or others, make sure you set the correct buffer size
    Output #0, mpeg, to 'out.mpg':
     Metadata:
       encoder         : Lavf57.28.100
       Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-3
    1, max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
       Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s (default)
       Metadata:
         encoder         : Lavc57.27.101 mp2
    Stream mapping:
     Stream #1:0 (mp3) -> aformat
     Stream #1:0 (mp3) -> aformat
     Stream #0:0 -> #0:0 (copy)
     amerge -> Stream #0:1 (mp2)
    Press [q] to stop, [?] for help
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=234676 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=234676 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=236705 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=236705 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=238746 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=238746 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=240787 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=240787 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=242828 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=242828 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=244869 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=244869 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=246910 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=246910 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=248951 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=248951 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=250992 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=250992 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=253033 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=253033 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=255074 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=255074 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=257115 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=257115 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=259156 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=259156 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=261197 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=261197 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=263238 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=263238 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=265279 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=265279 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=267320 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=267320 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=269361 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=269361 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=271402 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=271402 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=273443 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=273443 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=275484 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=275484 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=277525 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=277525 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=279566 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=279566 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=281607 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=281607 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=283648 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=283648 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=285689 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=285689 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=287730 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=287730 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=289771 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=289771 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=291812 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=291812 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=293853 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=293853 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=295894 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=295894 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=297935 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=297935 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=299976 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=299976 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=302017 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=302017 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=304058 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=304058 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=306099 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=306099 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=308140 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=308140 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=310181 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=310181 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=312222 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=312222 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=314263 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=314263 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=316304 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=316304 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=318345 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=318345 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=320386 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=320386 size=322616
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=322427 size=322616
    [mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
    [mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=322427 size=322616
    frame=    1 fps=0.0 q=-1.0 Lsize=     318kB time=00:00:00.00 bitrate=N/A speed=
     0x
    video:315kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
    verhead: 0.934858%

    C:\bina\ffmpeg\bin>ffmpeg -i vid.mpg -i
    aud.mp3 -c:v copy  -filter_complex "[0:a]aform
    at = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a]
    [1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg

    what am i doing wrong ? and how can i solve it ?

    please help.

  • ffmpeg : Combine/merge multiple mp4 videos - not working

    9 juin 2016, par dtbaker

    Here is the command I am using to combine multiple videos :

    ffmpeg -i 75_540_38HQ2.mp4 -i 76_70_20.mp4 -i 76_173_80.mp4 -i 81_186_35.mp4 -vcodec copy -acodec copy Mux1.mp4

    The resulting Mux1.mp4 does not contain all videos. Only the first video (75_540_38HQ2.mp4). The file size of the source and resulting video is below (as you can see, resulting video is slightly larger than first vid) :

    $ ls -lh
    
    - rw-r—r— 1 dbaker dbaker 42M 2011-03-24 11:59 75_540_38HQ2.mp4
    - rw-r—r— 1 dbaker dbaker 236M 2011-03-24 12:09 76_173_80.mp4
    - rw-r—r— 1 dbaker dbaker 26M 2011-03-24 12:05 76_70_20.mp4
    - rw-r—r— 1 dbaker dbaker 54M 2011-03-24 12:15 81_186_35.mp4
    - rw-r—r— 1 dbaker dbaker 44M 2011-03-24 14:48 Mux1.mp4

    Here is the output of the ffmpeg command. To me it looks ok, showing the multiple source inputs and the single output.

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
      built on Mar 21 2011 18:05:32 with gcc 4.4.5
      configuration : —enable-gpl —enable-version3 —enable-nonfree —enable-postproc —enable-libfaac —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libtheora —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libxvid —enable-x11grab
      libavutil     50.36. 0 / 50.36. 0
      libavcore      0.16. 1 /  0.16. 1
      libavcodec    52.108. 0 / 52.108. 0
      libavformat   52.93. 0 / 52.93. 0
      libavdevice   52. 2. 3 / 52. 2. 3
      libavfilter    1.74. 0 /  1.74. 0
      libswscale     0.12. 0 /  0.12. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’75_540_38HQ2.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:00:29.99, start : 0.000000, bitrate : 11517 kb/s
        Stream #0.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 11575 kb/s, 29.94 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 127 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from ’76_70_20.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:00:19.98, start : 0.000000, bitrate : 10901 kb/s
        Stream #1.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10804 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #1.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from ’76_173_80.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:03:09.99, start : 0.000000, bitrate : 10393 kb/s
        Stream #2.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10321 kb/s, 29.96 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #2.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    

    Seems stream 0 codec frame rate differs from container frame rate : 119.88 (120000/1001) -> 30000.00 (30000/1)
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from ’81_186_35.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Duration : 00:00:35.00, start : 0.000000, bitrate : 12700 kb/s
    Stream #3.0(eng) : Video : h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 12620 kb/s, 59.91 fps, 30k tbr, 60k tbn, 119.88 tbc
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream #3.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Output #0, mp4, to ’Mux1.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Stream #0.0(eng) : Video : libx264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], q=2-31, 11575 kb/s, 30k tbn, 29.97 tbc
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream #0.1(eng) : Audio : libfaac, 48000 Hz, stereo, 128 kb/s
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream mapping :
    Stream #0.0 -> #0.0
    Stream #2.1 -> #0.1
    Press [q] to stop encoding
    frame= 883 fps=632 q=-1.0 Lsize= 44730kB time=29.40 bitrate=12465.1kbits/s
    video:41678kB audio:2969kB global headers:0kB muxing overhead 0.184548%

    Am I doing something blindingly stupid here ?

    The source videos came from a video camera, and are small snippets taken with ffmpeg -i bigfile.mp4 -ss 20 -t 10 -vcodec copy etc..

    Thanks heaps !!
    Dave


    Edit : couldn’t solve it so I just use avidemux GUI tool. It seemed to append the MP4’s just fine.

    Must be a problem with MP4’s or just the ones that come off a gopro camera.

  • Problems with FFMPEG concat and/or MP4BOX

    11 novembre 2016, par user3730954

    I’ve been searching for a reliable way to concat a large (>30) number of mp4 files.

    My methods so far have been trying the MP4BOX concat CLI, and FFMPEG’s concat filter (such as ffmpeg -auto_convert 1 -y -f concat -i files.txt -c copy out.mp4).

    Both tools produce the same problem : joining 2 or 3 files seems to work great, but any greater number produces a corrupted mp4 file (such as https://drive.google.com/file/d/0B_mWxBuwYcSgQjQtUnpQeUxVTm8/view). I can create a workaround where I join only 2 videos at a time, until all videos have been joined, but this does not work for an odd number of joins (i.e. 13).

    Why do these methods work on some files, but not others ?

    FFPROBE produces errors as you would expect on these corrupted files :

    error while decoding MB x y, bytestream z
    Reference 2 >= 2
    top block unavailable for requested intra mode

    example FFMPEG output :

    ffmpeg version N-80901-gfebc862 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 47.100 /  6. 47.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x36b3a80] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'twitter-files.txt':
     Duration: N/A, start: 0.000000, bitrate: 415 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 284 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s
       Metadata:
         handler_name    : SoundHandler
    [mp4 @ 0x36b7dc0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, mp4, to 'twitter-tmp.mp4':
     Metadata:
       encoder         : Lavf57.41.100
       Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=2-31, 284 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 130 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3733160] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 1 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3733140] Auto-inserting h264_mp4toannexb bitstream filter
    [mp4 @ 0x36b7dc0] Packet with invalid duration -512 in stream 1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3733140] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 2 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x36ba960] Auto-inserting h264_mp4toannexb bitstream filter
    [mp4 @ 0x36b7dc0] Packet with invalid duration -512 in stream 1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x36ba960] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 4 times
    [mp4 @ 0x36b7dc0] Non-monotonous DTS in output stream 0:0; previous: 306957, current: 306445; changing to 306958. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x36b7dc0] Non-monotonous DTS in output stream 0:0; previous: 306958, current: 306957; changing to 306959. This may result in incorrect timestamps in the output file.
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x36ba960] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 1 times
    frame=  750 fps=0.0 q=-1.0 Lsize=    1088kB time=00:00:30.04 bitrate= 296.6kbits/s speed= 366x

    OSX output :

    ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 7.3.0 (clang-703.0.31)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libvpx --enable-vda
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49808c00] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'twitter-files.txt':
     Duration: N/A, start: 0.000000, bitrate: 415 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 284 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to 'tmp-twitter.mp4':
     Metadata:
       encoder         : Lavf57.25.100
       Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=2-31, 284 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 130 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c4a005400] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c4a800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mp4 @ 0x7f9c4a000c00] Packet with invalid duration -512 in stream 1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c4a800000] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 1 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mp4 @ 0x7f9c4a000c00] Packet with invalid duration -512 in stream 1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c4a800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c4a005400] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c4a800e00] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mp4 @ 0x7f9c4a000c00] Non-monotonous DTS in output stream 0:0; previous: 306957, current: 306445; changing to 306958. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f9c4a000c00] Non-monotonous DTS in output stream 0:0; previous: 306958, current: 306957; changing to 306959. This may result in incorrect timestamps in the output file.
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49800000] Auto-inserting h264_mp4toannexb bitstream filter
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9c49010e00] Auto-inserting h264_mp4toannexb bitstream filter
    frame=  750 fps=0.0 q=-1.0 Lsize=    1146kB time=00:00:30.04 bitrate= 312.4kbits/s speed= 192x