Recherche avancée

Médias (91)

Autres articles (50)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (4560)

  • Trying to concatenate multiple videos with multiple audio streams using ffmpeg

    25 avril 2019, par Toto

    I’m trying to concatenate 3 mp4 videos, each contains 3 audio streams using ffmpeg, since I couldn’t merge them with other software because of differences in the codecs private data.

    Since the files have different codecs I’m trying to use the concat video filter but I can’t seem to get it to work. The output turns out to be an unplayable file. I’m trying to specify the input files, and every media stream, then telling the software to concatenate it and copy it to the output file.

    ffmpeg -i A.mp4 -i B.mp4 -i C.mp4 -filter_complex  '[0:0] [0:1] [0:2] [0:3] [1:0] [1:1] [1:2] [1:3] [2:0] [2:1] [2:2] [2:3] concat=n=3:v=1:a=3 [v] [a1] [a2] [a3]'  -map '[v]' -map '[a1]' -map '[a2]'-map '[a3]' output.mp4

    The complete log :

    ffmpeg -i A.mp4 -i B.mp4 -i C.mp4 -filter_complex  '[0:0] [0:1] [0:2] [0:3] [1:0] [1:1] [1:2] [1:3] [2:0] [2:1] [2:2] [2:3] concat=n=3:v=1:a=3 [v] [a1] [a2] [a3]'  -map '[v]' -map '[a1]' -map '[a2]'-map '[a3]' output.mp4
    ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --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-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'A.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : HandBrake 0.10.1 2015030800
     Duration: 01:59:10.12, start: 0.000000, bitrate: 6868 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 6017 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 320 kb/s (default)
       Metadata:
         handler_name    : Stereo
       Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 320 kb/s
       Metadata:
         handler_name    : Surround
       Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s
       Metadata:
         handler_name    : Stereo
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'B.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : HandBrake 0.10.1 2015030800
     Duration: 01:12:28.48, start: 0.000000, bitrate: 6846 kb/s
       Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 6001 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 320 kb/s (default)
       Metadata:
         handler_name    : Stereo
       Stream #1:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 320 kb/s
       Metadata:
         handler_name    : Surround
       Stream #1:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s
       Metadata:
         handler_name    : Stereo
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'C.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : HandBrake 0.10.1 2015030800
     Duration: 00:58:55.53, start: 0.000000, bitrate: 6850 kb/s
       Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 6005 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 319 kb/s (default)
       Metadata:
         handler_name    : Stereo
       Stream #2:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 319 kb/s
       Metadata:
         handler_name    : Surround
       Stream #2:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s
       Metadata:
         handler_name    : Stereo
    Stream mapping:
     Stream #0:0 (h264) -> concat:in0:v0
     Stream #0:1 (aac) -> concat:in0:a0
     Stream #0:2 (aac) -> concat:in0:a1
     Stream #0:3 (aac) -> concat:in0:a2
     Stream #1:0 (h264) -> concat:in1:v0
     Stream #1:1 (aac) -> concat:in1:a0
     Stream #1:2 (aac) -> concat:in1:a1
     Stream #1:3 (aac) -> concat:in1:a2
     Stream #2:0 (h264) -> concat:in2:v0
     Stream #2:1 (aac) -> concat:in2:a0
     Stream #2:2 (aac) -> concat:in2:a1
     Stream #2:3 (aac) -> concat:in2:a2
     concat:out:v0 -> Stream #0:0 (libx264)
     concat:out:a0 -> Stream #0:1 (aac)
     concat:out:a1 -> Stream #0:2 (aac)
     concat:out:a2 -> Stream #0:3 (aac)
    Press [q] to stop, [?] for help
    [libx264 @ 000001930c898980] using SAR=1/1
    [libx264 @ 000001930c898980] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 000001930c898980] profile High, level 4.0, 4:2:0, 8-bit
    [libx264 @ 000001930c898980] 264 - core 157 r2935 545de2f - 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=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=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 'output.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.20.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
       Metadata:
         encoder         : Lavc58.35.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
       Metadata:
         encoder         : Lavc58.35.100 aac
       Stream #0:2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 341 kb/s
       Metadata:
         encoder         : Lavc58.35.100 aac
       Stream #0:3: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc58.35.100 aac
    [aac @ 000001930d3a88c0] skip_data_stream_element: Input buffer exhausted before END element found
    Error while decoding stream #0:1: Invalid data found when processing input
    [aac @ 000001930c89a4c0] Number of bands (48) exceeds limit (47).ate=6048.4kbits/s dup=1 drop=0 speed=0.916x
    Error while decoding stream #2:1: Invalid data found when processing input
    frame=450571 fps= 28 q=-1.0 Lsize=11204203kB time=04:10:34.13 bitrate=6105.1kbits/s dup=1 drop=0 speed=0.939x
    video:10071486kB audio:1099256kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.299544%
    [libx264 @ 000001930c898980] frame I:4679  Avg QP:20.30  size:103274
    [libx264 @ 000001930c898980] frame P:125629 Avg QP:22.82  size: 41052
    [libx264 @ 000001930c898980] frame B:320263 Avg QP:25.08  size: 14590
    [libx264 @ 000001930c898980] consecutive B-frames:  2.3%  6.0%  8.8% 83.0%
    [libx264 @ 000001930c898980] mb I  I16..4: 16.4% 78.4%  5.2%
    [libx264 @ 000001930c898980] mb P  I16..4:  7.0% 17.1%  1.1%  P16..4: 43.0%  9.7%  4.9%  0.0%  0.0%    skip:17.3%
    [libx264 @ 000001930c898980] mb B  I16..4:  0.8%  1.7%  0.1%  B16..8: 39.4%  3.6%  0.7%  direct: 4.3%  skip:49.4%  L0:43.8% L1:50.2% BI: 6.0%
    [libx264 @ 000001930c898980] 8x8 transform intra:68.6% inter:84.9%
    [libx264 @ 000001930c898980] coded y,uvDC,uvAC intra: 40.3% 64.9% 17.2% inter: 12.9% 24.2% 0.4%
    [libx264 @ 000001930c898980] i16 v,h,dc,p: 40% 22% 10% 28%
    [libx264 @ 000001930c898980] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 15% 23%  5%  6%  7%  5%  6%  5%
    [libx264 @ 000001930c898980] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 16%  6%  9%  9%  7%  6%  5%
    [libx264 @ 000001930c898980] i8c dc,h,v,p: 48% 20% 26%  6%
    [libx264 @ 000001930c898980] Weighted P-Frames: Y:8.6% UV:6.4%
    [libx264 @ 000001930c898980] ref P L0: 58.8% 12.5% 19.8%  8.4%  0.4%
    [libx264 @ 000001930c898980] ref B L0: 88.5%  9.1%  2.4%
    [libx264 @ 000001930c898980] ref B L1: 96.9%  3.1%
    [libx264 @ 000001930c898980] kb/s:5487.92
    [aac @ 000001930c899280] Qavg: 212.043
    [aac @ 000001930d1cfbc0] Qavg: 211.329
    [aac @ 000001930d1ce080] Qavg: 228.685

    This is the output when trying the concat demuxer, which also produces an unplayable file.

    ffmpeg -f concat -safe 0 -i mylist.txt -map 0 -c copy concat2.mp4
    ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --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-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000025ca95f2dc0] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'mylist.txt':
     Duration: N/A, start: 0.000000, bitrate: 6850 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 6017 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 320 kb/s
       Metadata:
         handler_name    : Stereo
       Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 320 kb/s
       Metadata:
         handler_name    : Surround
       Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s
       Metadata:
         handler_name    : Stereo
    Output #0, mp4, to 'concat2.mp4':
     Metadata:
       encoder         : Lavf58.20.100
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 6017 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 320 kb/s
       Metadata:
         handler_name    : Stereo
       Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 320 kb/s
       Metadata:
         handler_name    : Surround
       Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s
       Metadata:
         handler_name    : Stereo
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
     Stream #0:2 -> #0:2 (copy)
     Stream #0:3 -> #0:3 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000025ca95f9480] Auto-inserting h264_mp4toannexb bitstream filter4x
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000025ca95f9480] Auto-inserting h264_mp4toannexb bitstream filter5x
    frame=450570 fps=1251 q=-1.0 Lsize=12591157kB time=04:10:34.11 bitrate=6860.8kbits/s speed=41.7x
    video:11029679kB audio:1527897kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.267411%
  • FFmpeg retrieve a specific program from TS file

    8 mai 2017, par chang jc

    I tried to retrieve a specific program from a TS file.
    Said :

    Input #0, mpegts, from 'DVB_T_good.ts':
     Duration: 00:00:48.04, start: 55045.888000, bitrate: 14521 kb/s
     Program 300
       Metadata:
         service_name    : ?l?��}�TS�
         service_provider: ?l?��
       Stream #0:0[0xbb9]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:1[0xbba]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
       Stream #0:2[0xbbb]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
     Program 301
       Metadata:
         service_name    : ?l?��N��?S�
         service_provider: ?l?��
       Stream #0:3[0xbc3]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:9[0xbc4]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
       Stream #0:10[0xbc5]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
     Program 302
       Metadata:
         service_name    : ?l?��e��^S�
         service_provider: ?l?��
       Stream #0:5[0xbcd]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:6[0xbce]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
     Program 304
       Metadata:
         service_name    : ?l?��S�pcS�
         service_provider: ?l?��
       Stream #0:4[0xbe1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
       Stream #0:7[0xbe2]: Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
       Stream #0:8[0xbe3]: Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp

    Then I tried to retrieve a specific program as :

    ffmpeg -i INPUT -map 0:p:1344 OUTPUT

    It succeeds greatly but the only thing I noticed is :

    it seems to apply transcode (decode & encode again) to the output implicitely ?

    ffmpeg version N-85693-g8de3458 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/home/john/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/john/ffmpeg_build/include --extra-ldflags=-L/home/john/ffmpeg_build/lib --bindir=/home/john/bin --enable-gpl --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --disable-ffplay --disable-ffserver --disable-doc --disable-libopus
     libavutil      55. 61.100 / 55. 61.100
     libavcodec     57. 93.100 / 57. 93.100
     libavformat    57. 72.101 / 57. 72.101
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 87.100 /  6. 87.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [NULL @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [NULL @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] SPS unavailable in decode_picture_timing
    [h264 @ 0x33eb3a0] non-existing PPS 0 referenced
    [h264 @ 0x33eb3a0] decode_slice_header error
    [h264 @ 0x33eb3a0] no frame!
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0x33ea200] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
       Last message repeated 2 times
    [mpeg2video @ 0x33ec540] Invalid frame dimensions 0x0.
    [mpeg2video @ 0x33b7680] Invalid frame dimensions 0x0.
    [mpegts @ 0x33af360] PES packet size mismatch
       Last message repeated 9 times
    Input #0, mpegts, from 'DVB_T_good.ts':
     Duration: 00:00:48.04, start: 55045.888000, bitrate: 14521 kb/s
     Program 300
       Metadata:
         service_name    : ?l?��}�TS�
         service_provider: ?l?��
       Stream #0:0[0xbb9]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:1[0xbba]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
       Stream #0:2[0xbbb]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
     Program 301
       Metadata:
         service_name    : ?l?��N��?S�
         service_provider: ?l?��
       Stream #0:3[0xbc3]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:9[0xbc4]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
       Stream #0:10[0xbc5]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
     Program 302
       Metadata:
         service_name    : ?l?��e��^S�
         service_provider: ?l?��
       Stream #0:5[0xbcd]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:6[0xbce]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
     Program 304
       Metadata:
         service_name    : ?l?��S�pcS�
         service_provider: ?l?��
       Stream #0:4[0xbe1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
       Stream #0:7[0xbe2]: Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
       Stream #0:8[0xbe3]: Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
    map 0:p:304
    File '304_1800.ts' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:4 -> #0:0 (h264 (native) -> mpeg2video (native))
     Stream #0:7 -> #0:1 (aac_latm (native) -> mp2 (native))
     Stream #0:8 -> #0:2 (aac_latm (native) -> mp2 (native))
    Press [q] to stop, [?] for help
    [h264 @ 0x33d6d20] mmco: unref short failure
       Last message repeated 1 times
    [h264 @ 0x33d6d20] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
    [h264 @ 0x33d6d20] reference picture missing during reorder
    [h264 @ 0x33d6d20] Missing reference picture, default is 65784
    [h264 @ 0x33d6d20] reference picture missing during reorder
    [h264 @ 0x33d6d20] Missing reference picture, default is 65785
    Output #0, mpegts, to '304_1800.ts':
     Metadata:
       encoder         : Lavf57.72.101
       Stream #0:0: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc57.93.100 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
       Metadata:
         encoder         : Lavc57.93.100 mp2
       Stream #0:2: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
       Metadata:
         encoder         : Lavc57.93.100 mp2
    [h264 @ 0x33d6d20] mmco: unref short failureime=00:00:44.34 bitrate=3506.2kbits/s speed=1.43x    
       Last message repeated 1 times
    [h264 @ 0x33d6d20] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
    [mpegts @ 0x33af360] PES packet size mismatch
    [aac_latm @ 0x3587360] Number of bands (59) exceeds limit (45).
    Error while decoding stream #0:7: Invalid data found when processing input
       Last message repeated 1 times
    [h264 @ 0x33d6d20] mmco: unref short failure
       Last message repeated 1 times
    [h264 @ 0x33d6d20] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
    [h264 @ 0x33d6d20] mmco: unref short failureime=00:00:45.05 bitrate=3491.2kbits/s speed=1.43x    
       Last message repeated 1 times
    [h264 @ 0x33d6d20] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
    [h264 @ 0x33d6d20] mmco: unref short failure
       Last message repeated 1 times
    [h264 @ 0x33d6d20] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
    [mpegts @ 0x33af360] PES packet size mismatchme=00:00:47.74 bitrate=3470.1kbits/s speed=1.43x    
       Last message repeated 1 times
    [h264 @ 0x33d6d20] error while decoding MB 97 35, bytestream -12
    Error while decoding stream #0:7: Invalid data found when processing input
    Error while decoding stream #0:8: Invalid data found when processing input
    frame= 1404 fps= 42 q=31.0 Lsize=   20396kB time=00:00:47.88 bitrate=3489.5kbits/s speed=1.42x    
    video:14144kB audio:4429kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.813825%

    You could notice by following message :

    **

    Output #0, mpegts, to '304_1800.ts':
     Metadata:
       encoder         : Lavf57.72.101
       Stream #0:0: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc57.93.100 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
       Metadata:
         encoder         : Lavc57.93.100 mp2
       Stream #0:2: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
       Metadata:
         encoder         : Lavc57.93.100 mp2

    **

    If so, could I avoid the transcoding by command ? Or it is a necessary ?
    It it is a need, WHY ?

  • ffmpeg concatenation after using drawtext filter

    12 août 2016, par Sven Hoskens

    I’m fairly new to ffmpeg, but after a few days of searching on this issue, I’ve completely hit a brick wall. Any help would be appreciated.

    My use case : Our client wants to upload videos for multiple regions. Each video will be the same format, 1920x1080, mp4. For each region, they want to add a different image at the end of the video, for a few seconds. This image contains their logo, some additional info, and a variable code. They will enter this code alongside the uploaded video. The image stays the same, so is already present on the server.
    So basically, I have an input video, a video of an image, and a small code. I need to add this code to the video of the image (in a predefined position), and then I need to add the resulting video to the end of the input video. Once that is complete, I just need to output the video in 1920x1080 and in 1024x576.

    I have tried several things, but the concatenation step always fails with the manipulated video’s.

    Attempt 1

    In my first attempt, I used ffmpeg to create a video from an image, and add the text in the designated area.

    ffmpeg -y -f lavfi -i image.png -r 30 -t 10 -pix_fmt yuv420p -map 0:v -vf drawtext="fontfile=HelveticaNeue.dfont: text='GLNS/TEST/1234b': fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=7: x=179: y=805" imageVideo.mp4

    This command creates a .mp4 video of the correct size, with a duration of 10 seconds, and adds the text ’GLNS/TEST/1234b’ in the correct location.

    Next, I use the following command to concatenate the two videos. Both have the same resolution and codec.

    ffmpeg -f concat -safe 0 -i config.txt -vf scale=1920:1080 outputHD.mp4 -vf scale=1024:576 outputSD.mp4

    config.txt contains following :

    file my_input_file.mp4
    file ImageVideo.mp4

    This concatenation works with regular videos. However, when I use it with ImageVideo.mp4 (the one created by the first command) I get this error log :

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f86dc924600] Auto-inserting h264_mp4toannexb bitstream filtereed=0.509x    
    [aac @ 0x7f86dc019e00] Number of bands (31) exceeds limit (5).
    Error while decoding stream #0:1: Invalid data found when processing input
    [aac @ 0x7f86dc019e00] Number of bands (27) exceeds limit (8).
    Error while decoding stream #0:1: Invalid data found when processing input
    [h264 @ 0x7f86dd857200] Error splitting the input into NAL units.
    [h264 @ 0x7f86dd829400] Invalid NAL unit size.
    [h264 @ 0x7f86dd829400] Error splitting the input into NAL units.
    [aac @ 0x7f86dc019e00] Number of bands (10) exceeds limit (1).
    Error while decoding stream #0:1: Invalid data found when processing input
    [h264 @ 0x7f86dd816800] Invalid NAL unit size.
    [h264 @ 0x7f86dd816800] Error splitting the input into NAL units.
    [aac @ 0x7f86dc019e00] Number of bands (24) exceeds limit (1).
    Error while decoding stream #0:1: Invalid data found when processing input

    #this goes on for a few hundred lines

    The resulting output is identical to the input video, but does not contain the desired image video at the end.

    Attempt 2

    Since the above attempt didn’t work, I tried concatenating a video I let our designer make of the image with Adobe After Effects. This video was also saved as a .mp4 with the H264 codec. If I concatenate the input video and this one, I get a correct result. However, as soon as I add the code in the designated area with this command :

    ffmpeg -i new_image_video.mp4 -vf drawtext="fontfile=HelveticaNeue.dfont: text='GLNS/TEST/1234b': fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=7: x=179: y=805" -c:v libx264 imageVideo.mp4

    I get this error :

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff94c800000] Auto-inserting h264_mp4toannexb bitstream filter97x    
    [h264 @ 0x7ff94b053800] top block unavailable for requested intra mode -1
    [h264 @ 0x7ff94b053800] error while decoding MB 0 0, bytestream 49526
    [h264 @ 0x7ff94b053e00] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
    [h264 @ 0x7ff94b053e00] chroma_log2_weight_denom 28 is out of range
    [h264 @ 0x7ff94b053e00] illegal long ref in memory management control operation 2
    [h264 @ 0x7ff94b053e00] cabac_init_idc 32 overflow
    [h264 @ 0x7ff94b053e00] decode_slice_header error
    [h264 @ 0x7ff94b053e00] no frame!
    [h264 @ 0x7ff94b053800] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
    [h264 @ 0x7ff94b072a00] reference overflow 22 > 15 or 0 > 15
    [h264 @ 0x7ff94b072a00] decode_slice_header error
    [h264 @ 0x7ff94b072a00] no frame!
    [h264 @ 0x7ff94b01a400] illegal modification_of_pic_nums_idc 20
    [h264 @ 0x7ff94b01a400] decode_slice_header error
    [h264 @ 0x7ff94b01a400] no frame!
    [h264 @ 0x7ff94b01aa00] illegal modification_of_pic_nums_idc 20
    [h264 @ 0x7ff94b01aa00] decode_slice_header error
    [h264 @ 0x7ff94b01aa00] no frame!
    Error while decoding stream #0:0: Invalid data found when processing input
    [h264 @ 0x7ff94b053800] deblocking_filter_idc 8 out of range
    [h264 @ 0x7ff94b053800] decode_slice_header error
    [h264 @ 0x7ff94b053800] no frame!
    Error while decoding stream #0:0: Invalid data found when processing input
    [h264 @ 0x7ff94b053e00] illegal memory management control operation 8
    [h264 @ 0x7ff94b053e00] co located POCs unavailable
    [h264 @ 0x7ff94b053e00] error while decoding MB 2 0, bytestream -35
    [h264 @ 0x7ff94b053e00] concealing 8160 DC, 8160 AC, 8160 MV errors in B frame
    [h264 @ 0x7ff94b072a00] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one

    # this goes on for a while...

    [h264 @ 0x7ff94b01a400] concealing 4962 DC, 4962 AC, 4962 MV errors in B frame
    Error while decoding stream #0:0: Invalid data found when processing input
    frame= 2553 fps= 17 q=-1.0 Lsize=   26995kB time=00:01:42.16 bitrate=2164.6kbits/s dup=0 drop=60 speed=0.697x    
    video:25258kB audio:1661kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.285236%
    [libx264 @ 0x7ff94b810400] frame I:35    Avg QP:17.45  size: 55070
    [libx264 @ 0x7ff94b810400] frame P:711   Avg QP:19.73  size: 18712
    [libx264 @ 0x7ff94b810400] frame B:1807  Avg QP:21.53  size:  5884
    [libx264 @ 0x7ff94b810400] consecutive B-frames:  3.4%  5.0%  4.9% 86.6%
    [libx264 @ 0x7ff94b810400] mb I  I16..4: 38.2% 49.3% 12.5%
    [libx264 @ 0x7ff94b810400] mb P  I16..4: 12.4% 14.0%  1.0%  P16..4: 29.6%  4.8%  1.9%  0.0%  0.0%    skip:36.2%
    [libx264 @ 0x7ff94b810400] mb B  I16..4:  1.5%  1.2%  0.1%  B16..8: 27.3%  1.6%  0.1%  direct: 1.8%  skip:66.4%  L0:45.8% L1:51.4% BI: 2.8%
    [libx264 @ 0x7ff94b810400] 8x8 transform intra:49.5% inter:85.4%
    [libx264 @ 0x7ff94b810400] coded y,uvDC,uvAC intra: 21.2% 22.3% 2.5% inter: 4.6% 7.0% 0.0%
    [libx264 @ 0x7ff94b810400] i16 v,h,dc,p: 23% 26% 10% 41%
    [libx264 @ 0x7ff94b810400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 19% 35%  3%  3%  3%  3%  3%  2%
    [libx264 @ 0x7ff94b810400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 20% 16%  5%  7%  6%  5%  5%  4%
    [libx264 @ 0x7ff94b810400] i8c dc,h,v,p: 67% 16% 15%  2%
    [libx264 @ 0x7ff94b810400] Weighted P-Frames: Y:7.3% UV:4.2%
    [libx264 @ 0x7ff94b810400] ref P L0: 66.3%  8.7% 17.9%  7.0%  0.1%
    [libx264 @ 0x7ff94b810400] ref B L0: 88.2% 10.1%  1.7%
    [libx264 @ 0x7ff94b810400] ref B L1: 94.9%  5.1%
    [libx264 @ 0x7ff94b810400] kb/s:2026.12
    [aac @ 0x7ff94b072400] Qavg: 635.626

    The resulting output is identical to the input video, but does not contain the desired image video at the end.

    One thing I have noticed : When I inspect the video files on mac (Get info) they always contain these lines at ’More info’ :

    Dimensions: 1920 x 1080
    Codecs: H.264, AAC
    Color profile: HD(1-1-1)
    Duration: 01:42
    Audio channels: 2
    Last opened: Today 11:02

    However, the video’s which pass through the drawtext filter have this :

    Dimensions: 1920 x 1080
    Codecs: AAC, H.264
    Duration: 00:10
    Audio channels: 2
    Last opened: Today 11:07

    As you can see, there is no color profile entry, and the codecs have switched places. I assume this is related to my issue, but I can’t seem to find a fix for it.

    PS : The application will run in a php environment (Symfony). I noticed the concat command wasn’t available in the Symfony bundle for ffmpeg, so I’m using the regular terminal commands. I’ll execute these using php.

    EDIT
    Attempt 3

    On advise of a coworker, I tried converting the video to .avi and reconverting to .mp4, in the hopes this would lose any corrupted or extra info included by the drawtext filter. This spits out a completely different error.

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f812413da00] Auto-inserting h264_mp4toannexb bitstream filtereed=0.516x    
    [concat @ 0x7f8124009a00] DTS 1569260 < 2551000 out of order
    [h264 @ 0x7f8124846800] left block unavailable for requested intra4x4 mode -1
    [h264 @ 0x7f8124846800] error while decoding MB 0 0, bytestream 47919
    [h264 @ 0x7f8124846800] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
    [aac @ 0x7f8125809a00] Queue input is backward in time
    [aac @ 0x7f8125815a00] Queue input is backward in time
    [h264 @ 0x7f8124846e00] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
    [h264 @ 0x7f8124846e00] chroma_log2_weight_denom 26 is out of range
    [h264 @ 0x7f8124846e00] deblocking_filter_idc 32 out of range
    [h264 @ 0x7f8124846e00] decode_slice_header error
    [h264 @ 0x7f8124846e00] no frame!
    [mp4 @ 0x7f8124802200] Non-monotonous DTS in output stream 0:1; previous: 4902912, current: 4505491; changing to 4902913. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f8125813000] Non-monotonous DTS in output stream 1:1; previous: 4902912, current: 4505491; changing to 4902913. This may result in incorrect timestamps in the output file.
    [h264 @ 0x7f8124803400] reference overflow 20 > 15 or 0 > 15
    [h264 @ 0x7f8124803400] decode_slice_header error
    [h264 @ 0x7f8124803400] no frame!
    [mp4 @ 0x7f8124802200] Non-monotonous DTS in output stream 0:1; previous: 4902913, current: 4506515; changing to 4902914. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f8125813000] Non-monotonous DTS in output stream 1:1; previous: 4902913, current: 4506515; changing to 4902914. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f8124802200] Non-monotonous DTS in output stream 0:1; previous: 4902914, current: 4507539; changing to 4902915. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f8125813000] Non-monotonous DTS in output stream 1:1; previous: 4902914, current: 4507539; changing to 4902915. This may result in incorrect timestamps in the output file.

    # Again, this continues for quite a while.