Recherche avancée

Médias (91)

Autres articles (50)

  • 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 ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (9375)

  • FFmpeg Time Skipping after concat

    18 septembre 2017, par Manul Hüttinger

    i am trying to concatenate videos and in my resulting Videos i have the issue that at the concat edges my video is skipping/glitching.


    General Workflow

    in general my workflow looks like this

    1. Stream via ffmpeg
    2. capture stream and segment all 2 mins in to TS files
    3. concat TS file to MP4 video
    4. cut MP4 video at the desired Timestamps

    Detailed Look at Step 4

    as i am handling 2-hours+ videos i don’t want to re-encode the whole video. So i am looking for the closest I Frames to my In and Outpoint and cut 1 Frame before/after. As my result i get 3 Videos (front/middle/back). Now it is only needed to re-encode front and back and concat all three Videos.
    So far the theory


    General Observations

    As i look at my resulting video, i obeservated the following.
    frontpart duration is e.g. 3.2 secs. i skip framewise through the Video and get nice and clean timestamps ( 00:00:02.620, 00:00:02:660 )
    As soon as i get to my cutting edge the timestamps are skipping some frames and changing (00:00:03.200, 00:00:03.408 ,00:00:03.409). When i look only at the single frame images, their are no missing/dropped frames

    when i concat my TS files, the results contains a messed up frame rate e.g from constant 25 F/s to 25.0096 F/s


    FFMPEG instructions

    FRONT Video

    ffmpeg -ss 232.52 -i src.mp4 -t 3.24 -filter_complex "setpts=PTS-STARTPTS" -vcodec libx264 -profile:v baseline -level 31 -bf 0  -f mp4 -y front.mp4
    ffmpeg version n3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libssh --enable-openssl
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf55.33.100
     Duration: 01:06:00.33, start: 0.000000, bitrate: 610 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x464 [SAR 1:1 DAR 80:29], 537 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 (h264) -> setpts (graph 0)
     setpts (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 0x31ea160] using SAR=1/1
    [libx264 @ 0x31ea160] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX LZCNT
    [libx264 @ 0x31ea160] profile Constrained Baseline, level 3.1
    [libx264 @ 0x31ea160] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 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 'front.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.71.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x464 [SAR 1:1 DAR 80:29], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc57.89.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 69 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
         encoder         : Lavc57.89.100 aac
    frame=   81 fps= 31 q=-1.0 Lsize=     151kB time=00:00:03.25 bitrate= 379.5kbits/s speed=1.23x
    video:119kB audio:28kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.531915%
    [libx264 @ 0x31ea160] frame I:1     Avg QP:17.43  size: 38268
    [libx264 @ 0x31ea160] frame P:80    Avg QP:21.05  size:  1038
    [libx264 @ 0x31ea160] mb I  I16..4: 71.4%  0.0% 28.6%
    [libx264 @ 0x31ea160] mb P  I16..4:  0.2%  0.0%  0.0%  P16..4:  7.8%  1.8%  0.6%  0.0%  0.0%    skip:89.6%
    [libx264 @ 0x31ea160] coded y,uvDC,uvAC intra: 21.8% 40.8% 23.1% inter: 1.6% 4.2% 0.2%
    [libx264 @ 0x31ea160] i16 v,h,dc,p: 66% 25%  5%  4%
    [libx264 @ 0x31ea160] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 28% 15%  4%  4%  5%  4%  5%  4%
    [libx264 @ 0x31ea160] i8c dc,h,v,p: 51% 24% 21%  4%
    [libx264 @ 0x31ea160] ref P L0: 74.3% 15.2% 10.5%
    [libx264 @ 0x31ea160] kb/s:299.56
    [aac @ 0x31edfa0] Qavg: 123.323

    MIDDLE Video

    ffmpeg -ss 235.88 -i src.mp4 -c copy -t 1492.96 -f mp4 -y middle.mp4
    ffmpeg version n3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libssh --enable-openssl
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf55.33.100
     Duration: 01:06:00.33, start: 0.000000, bitrate: 610 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x464 [SAR 1:1 DAR 80:29], 537 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to 'middle.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.71.100
       Stream #0:0(und): Video: h264 (Main) ([33][0][0][0] / 0x0021), yuv420p, 1280x464 [SAR 1:1 DAR 80:29], q=2-31, 537 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 65 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=37329 fps=16333 q=-1.0 Lsize=  113774kB time=00:24:52.95 bitrate= 624.3kbits/s speed= 653x
    video:100359kB audio:12095kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.173957%

    BACK Video

    ffmpeg -ss 1728.88 -i 'src.mp4' -t 3.9199999999998 -filter_complex "setpts=PTS-STARTPTS" -vcodec libx264 -profile:v baseline -level 31 -bf 0  -f mp4 -y back.mp4
    ffmpeg version n3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libssh --enable-openssl
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf55.33.100
     Duration: 01:06:00.33, start: 0.000000, bitrate: 610 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x464 [SAR 1:1 DAR 80:29], 537 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 (h264) -> setpts (graph 0)
     setpts (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 0x2672160] using SAR=1/1
    [libx264 @ 0x2672160] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX LZCNT
    [libx264 @ 0x2672160] profile Constrained Baseline, level 3.1
    [libx264 @ 0x2672160] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 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 'back.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.71.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x464 [SAR 1:1 DAR 80:29], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc57.89.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 69 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
         encoder         : Lavc57.89.100 aac
    frame=   98 fps= 27 q=-1.0 Lsize=     268kB time=00:00:03.92 bitrate= 559.2kbits/s speed=1.07x
    video:230kB audio:33kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.538479%
    [libx264 @ 0x2672160] frame I:1     Avg QP:19.57  size:112129
    [libx264 @ 0x2672160] frame P:97    Avg QP:21.68  size:  1270
    [libx264 @ 0x2672160] mb I  I16..4: 35.4%  0.0% 64.6%
    [libx264 @ 0x2672160] mb P  I16..4:  0.2%  0.0%  0.1%  P16..4:  6.9%  2.0%  0.8%  0.0%  0.0%    skip:90.1%
    [libx264 @ 0x2672160] coded y,uvDC,uvAC intra: 54.4% 69.1% 54.2% inter: 2.0% 3.6% 0.3%
    [libx264 @ 0x2672160] i16 v,h,dc,p: 63% 23%  8%  6%
    [libx264 @ 0x2672160] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 17% 11%  6%  8%  9%  7%  8%  8%
    [libx264 @ 0x2672160] i8c dc,h,v,p: 50% 18% 24%  7%
    [libx264 @ 0x2672160] ref P L0: 81.8% 11.5%  6.7%
    [libx264 @ 0x2672160] kb/s:480.15
    [aac @ 0x2675fa0] Qavg: 119.994

    CONCAT Videos

    ffmpeg -f concat -safe 0 -i concat.txt -c copy -r 25 -y /concat.mp4
    ffmpeg version n3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libssh --enable-openssl
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, concat, from 'concat.txt':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x464 [SAR 1:1 DAR 80:29], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1(und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 74 kb/s
    Output #0, mp4, to 'concat.mp4':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0: Video: h264 (Constrained Baseline) ([33][0][0][0] / 0x0021), yuv420p(progressive), 1280x464 [SAR 1:1 DAR 80:29], q=2-31, 25 fps, 25 tbr, 12800 tbn, 25 tbc
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 74 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=37508 fps=7256 q=-1.0 Lsize=  114285kB time=00:25:00.59 bitrate= 623.9kbits/s speed= 290x
    video:100672kB audio:12598kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.896435%

    thank you very much.
    If needed i can provide samples

    Manu

  • Cutting with ffmpeg a video (recorded with Kodi) gives no image

    1er octobre 2017, par Laure

    I am trying to cut videos I get from a IPTV add-on in Kodi. The original video can be watched with VLC, Mplayer, xine, etc, but after being copied there is no image. According to mediainfo there is a video stream but nothing can be seen. The command I use is :

    ffmpeg -y -i test-1.mpeg  -scodec copy -vcodec copy -c:a copy -map 0 -ss 00:00:10.000 -t 00:00:10.000 test-1-cut.mpeg

    I suppose there is something wrong with the original videos recorded by Kodi, but they give no problem with any player. A short example video is this one :

    https://drive.google.com/open?id=0B0WC80aT-4WrSDNENzhxRUxkOXc

    The output with the -report option is this one :

    ffmpeg started on 2017-09-10 at 02:27:38
    Report written to "ffmpeg-20170910-022738.log"
    Command line:
    ffmpeg -y -report -i test-1.mpeg -scodec copy -vcodec copy -c:a copy -map 0 -ss 00:00:10.000 -t 00:00:10.000 test-1-cut.mpeg
    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/i386-linux-gnu --incdir=/usr/include/i386-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enabl  libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Splitting the commandline.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-i' ... matched as input url with argument 'test-1.mpeg'.
    Reading option '-scodec' ... matched as option 'scodec' (force subtitle codec ('copy' to copy stream)) with argument 'copy'.
    Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
    Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
    Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
    Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '00:00:10.000'.
    Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '00:00:10.000'.
    Reading option 'test-1-cut.mpeg' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option y (overwrite output files) with argument 1.
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url test-1.mpeg.
    Successfully parsed a group of options.
    Opening an input file: test-1.mpeg.
    [mpegts @ 0x8292960] Format mpegts probed with size=2048 and score=100
    [mpegts @ 0x8292960] stream=0 stream_type=1b pid=65 prog_reg_desc=
    [mpegts @ 0x8292960] stream=1 stream_type=3 pid=c9 prog_reg_desc=
    [mpegts @ 0x8292960] stream=2 stream_type=3 pid=ca prog_reg_desc=
    [mpegts @ 0x8292960] stream=3 stream_type=6 pid=191 prog_reg_desc=
    [mpegts @ 0x8292960] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 14
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 14
    [h264 @ 0x8296880] Frame num gap 190 185
    [h264 @ 0x8296880] Frame num gap 190 186
    [h264 @ 0x8296880] Frame num gap 190 187
    [h264 @ 0x8296880] Frame num gap 190 188
    [h264 @ 0x8296880] mmco: unref short failure
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] Increasing reorder buffer to 2
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] Increasing reorder buffer to 3
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] no picture ooo
    [h264 @ 0x8296880] no picture
    [h264 @ 0x8296880] mmco: unref short failure
    [h264 @ 0x8296880] no picture
    [h264 @ 0x8296880] no picture
    [mpegts @ 0x8292960] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
    [NULL @ 0x8298500] start time for stream 3 is not set in estimate_timings_from_pts
    [mpegts @ 0x8292960] PES packet size mismatch
    [mpegts @ 0x8292960] After avformat_find_stream_info() pos: 0 bytes read:4378768 seeks:2 frames:529
    Input #0, mpegts, from 'test-1.mpeg':
     Duration: 00:01:21.19, start: 74380.458944, bitrate: 6510 kb/s
     Program 3102
       Stream #0:0[0x65], 127, 1/90000: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0xc9](esp), 204, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
       Stream #0:2[0xca](vo), 198, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
       Stream #0:3[0x191](esp), 0, 1/90000: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Successfully opened the file.
    Parsing a group of options: output url test-1-cut.mpeg.
    Applying option scodec (force subtitle codec ('copy' to copy stream)) with argument copy.
    Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
    Applying option c:a (codec name) with argument copy.
    Applying option map (set input stream mapping) with argument 0.
    Applying option ss (set the start time offset) with argument 00:00:10.000.
    Applying option t (record or transcode "duration" seconds of audio/video) with argument 00:00:10.000.
    Successfully parsed a group of options.
    Opening an output file: test-1-cut.mpeg.
    Successfully opened the file.
    [mpeg @ 0x829a0e0] 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 'test-1-cut.mpeg':
     Metadata:
       encoder         : Lavf56.40.101
       Stream #0:0, 0, 1/90000: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
       Stream #0:1(esp), 0, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s (clean effects)
       Stream #0:2(vo), 0, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 128 kb/s (clean effects)
       Stream #0:3(esp), 0, 1/90000: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    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
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 14
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 14
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 1 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 1 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 1
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 1
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 5 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 5 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 5
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 5
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 10 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 10 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 10
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 10
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 5 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 5 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 5
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 5
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 1 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 1 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 1
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 1
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 3 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 3 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 3
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 3
    frame=  231 fps=0.0 q=-1.0 size=       0kB time=00:00:10.03 bitrate=   0.0kbits/s    
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 13 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 13 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 13
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 13
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 0 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 0 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 0
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 0
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 10 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 9 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 9
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 10
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 6 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 6 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 6
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 6
    frame=  231 fps=231 q=-1.0 size=       0kB time=00:00:10.03 bitrate=   0.0kbits/s    
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 0 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 0 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 0
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 0
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 2 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 1 got 7
    [mpegts @ 0x8292960] Continuity check failed for pid 100 expected 8 got 1
    [mpegts @ 0x8292960] Continuity check failed for pid 0 expected 8 got 2
    [mpegts @ 0x8292960] PES packet size mismatch
    No more output streams to write to, finishing.
    [mpeg @ 0x829a0e0] First SCR: 0 First DTS: 45000
    frame=  231 fps=149 q=-1.0 Lsize=    7344kB time=00:00:10.03 bitrate=5995.5kbits/s    
    video:6918kB audio:391kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.483494%
    Input file #0 (test-1.mpeg):
     Input stream #0:0 (video): 2016 packets read (60807549 bytes);
     Input stream #0:1 (audio): 3360 packets read (1935360 bytes);
     Input stream #0:2 (audio): 3363 packets read (1291096 bytes);
     Input stream #0:3 (subtitle): 0 packets read (0 bytes);
     Total: 8739 packets (64034005 bytes) demuxed
    Output file #0 (test-1-cut.mpeg):
     Output stream #0:0 (video): 231 packets muxed (7083751 bytes);
     Output stream #0:1 (audio): 417 packets muxed (240192 bytes);
     Output stream #0:2 (audio): 417 packets muxed (160128 bytes);
     Output stream #0:3 (subtitle): 0 packets muxed (0 bytes);
     Total: 1065 packets (7484071 bytes) muxed
    0 frames successfully decoded, 0 decoding errors
    [AVIOContext @ 0x82f9860] Statistics: 0 seeks, 3672 writeouts
    [AVIOContext @ 0x829b1a0] Statistics: 70457008 bytes read, 2 seeks

    Following a suggestion from a comment, I have tried a static build of the last version of ffmpeg. The resulting file again has a video stream but the player cannot play it. The log is the following :

    ffmpeg started on 2017-09-18 at 00:14:22
    Report written to "ffmpeg-20170918-001422.log"
    Command line:
    ./ffmpeg -y -report -i test-1.mpeg -scodec copy -vcodec copy -c:a copy -map 0 -ss 00:00:10.000 -t 00:00:10.000 test-1-cut.mpeg
    ffmpeg version N-87286-g6ce4a635ed-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-4) 20170820
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 74.100 / 55. 74.100
     libavcodec     57.105.100 / 57.105.100
     libavformat    57. 82.100 / 57. 82.100
     libavdevice    57.  8.100 / 57.  8.100
     libavfilter     6.105.100 /  6.105.100
     libswscale      4.  7.103 /  4.  7.103
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Splitting the commandline.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-i' ... matched as input url with argument 'test-1.mpeg'.
    Reading option '-scodec' ... matched as option 'scodec' (force subtitle codec ('copy' to copy stream)) with argument 'copy'.
    Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
    Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
    Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
    Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '00:00:10.000'.
    Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '00:00:10.000'.
    Reading option 'test-1-cut.mpeg' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option y (overwrite output files) with argument 1.
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url test-1.mpeg.
    Successfully parsed a group of options.
    Opening an input file: test-1.mpeg.
    [NULL @ 0x4e6d900] Opening 'test-1.mpeg' for reading
    [file @ 0x4e6e1a0] Setting default whitelist 'file,crypto'
    [mpegts @ 0x4e6d900] Format mpegts probed with size=2048 and score=50
    [mpegts @ 0x4e6d900] stream=0 stream_type=1b pid=65 prog_reg_desc=
    [mpegts @ 0x4e6d900] stream=1 stream_type=3 pid=c9 prog_reg_desc=
    [mpegts @ 0x4e6d900] stream=2 stream_type=3 pid=ca prog_reg_desc=
    [mpegts @ 0x4e6d900] stream=3 stream_type=6 pid=191 prog_reg_desc=
    [mpegts @ 0x4e6d900] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:4
    [mpegts @ 0x4e6d900] Continuity check failed for pid 0 expected 8 got 14
    [mpegts @ 0x4e6d900] Continuity check failed for pid 100 expected 8 got 14
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [AVBSFContext @ 0x4f23c80] nal_unit_type: 9, nal_ref_idc: 0
    [AVBSFContext @ 0x4f23c80] nal_unit_type: 7, nal_ref_idc: 3
    [AVBSFContext @ 0x4f23c80] nal_unit_type: 8, nal_ref_idc: 3
    [AVBSFContext @ 0x4f23c80] nal_unit_type: 6, nal_ref_idc: 0
    [AVBSFContext @ 0x4f23c80] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 7, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] Reinit context to 1920x1088, pix_fmt: yuv420p
    [h264 @ 0x4e72500] Frame num gap 190 185
    [h264 @ 0x4e72500] Frame num gap 190 186
    [h264 @ 0x4e72500] Frame num gap 190 187
    [h264 @ 0x4e72500] Frame num gap 190 188
    [h264 @ 0x4e72500] mmco: unref short failure
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] no picture ooo
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] Increasing reorder buffer to 2
    [h264 @ 0x4e72500] no picture ooo
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 0
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] Increasing reorder buffer to 3
    [h264 @ 0x4e72500] no picture ooo
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] no picture ooo
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    ................. a lot of similar lines .......................
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x4e72500] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 0x4e72500] nal_unit_type: 1, nal_ref_idc: 0
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    .......... a lot of similar lines...........
    [h264 @ 0x4e72500] ct_type:0 pic_struct:3
    [mpegts @ 0x4e6d900] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
    [mpegts @ 0x4e6d900] start time for stream 3 is not set in estimate_timings_from_pts
    [mpegts @ 0x4e6d900] PES packet size mismatch
    [mpegts @ 0x4e6d900] After avformat_find_stream_info() pos: 0 bytes read:4378768 seeks:2 frames:529
    Input #0, mpegts, from 'test-1.mpeg':
     Duration: 00:01:21.19, start: 74380.458944, bitrate: 6510 kb/s
     Program 3102
       Stream #0:0[0x65], 127, 1/90000: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0xc9](esp), 204, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
       Stream #0:2[0xca](vo), 198, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
       Stream #0:3[0x191](esp), 0, 1/90000: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Successfully opened the file.
    Parsing a group of options: output url test-1-cut.mpeg.
    Applying option scodec (force subtitle codec ('copy' to copy stream)) with argument copy.
    Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
    Applying option c:a (codec name) with argument copy.
    Applying option map (set input stream mapping) with argument 0.
    Applying option ss (set the start time offset) with argument 00:00:10.000.
    Applying option t (record or transcode "duration" seconds of audio/video) with argument 00:00:10.000.
    Successfully parsed a group of options.
    Opening an output file: test-1-cut.mpeg.
    [file @ 0x4eb6020] Setting default whitelist 'file,crypto'
    Successfully opened the file.
    [mpeg @ 0x4ea6560] 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 'test-1-cut.mpeg':
     Metadata:
       encoder         : Lavf57.82.100
       Stream #0:0, 0, 1/90000: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
       Stream #0:1(esp), 0, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
       Stream #0:2(vo), 0, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
       Stream #0:3(esp), 0, 1/90000: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    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
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [NULL @ 0x4e72500] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 0x4e72500] nal_unit_type: 8, nal_ref_idc: 3
    [mpegts @ 0x4e6d900] Continuity check failed for pid 0 expected 8 got 14
    [mpegts @ 0x4e6d900] Continuity check failed for pid 100 expected 8 got 14
    [NULL @ 0x4e72500] ct_type:0 pic_struct:3
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [NULL @ 0x4e72500] ct_type:0 pic_struct:3
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    ........... a lot of similar lines .............
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [NULL @ 0x4e72500] ct_type:0 pic_struct:3
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [mpegts @ 0x4e6d900] PES packet size mismatch
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [NULL @ 0x4e72500] ct_type:0 pic_struct:3
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    No more output streams to write to, finishing.
    [mpeg @ 0x4ea6560] First SCR: 0 First DTS: 45000
    frame=  231 fps=0.0 q=-1.0 Lsize=    7344kB time=00:00:09.99 bitrate=6019.5kbits/s speed=42.1x    
    video:6918kB audio:391kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.483494%
    Input file #0 (test-1.mpeg):
     Input stream #0:0 (video): 2016 packets read (60807549 bytes);
     Input stream #0:1 (audio): 3360 packets read (1935360 bytes);
     Input stream #0:2 (audio): 3363 packets read (1291096 bytes);
     Input stream #0:3 (subtitle): 0 packets read (0 bytes);
     Total: 8739 packets (64034005 bytes) demuxed
    Output file #0 (test-1-cut.mpeg):
     Output stream #0:0 (video): 231 packets muxed (7083751 bytes);
     Output stream #0:1 (audio): 417 packets muxed (240192 bytes);
     Output stream #0:2 (audio): 417 packets muxed (160128 bytes);
     Output stream #0:3 (subtitle): 0 packets muxed (0 bytes);
     Total: 1065 packets (7484071 bytes) muxed
    0 frames successfully decoded, 0 decoding errors
    [AVIOContext @ 0x4ef6300] Statistics: 0 seeks, 3672 writeouts
    [AVIOContext @ 0x4e6e040] Statistics: 70457008 bytes read, 2 seeks
  • How can we install FFMPEG for Ruby app on heroku ?

    8 septembre 2017, par Biswa

    I am trying to install FFMPEG for a Ruby app(Web framework- Sinatra) on Heroku. I have tried heroku-buildpack-multi (github.com/ddollar/heroku-buildpack-multi.git) plugin, but seems it’s stopped working from Jan 01,2017 as it threw error with same message. I followed steps from this link https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg

    There is not much information regarding FFMPEG installation on Heroku. Can any one suggest some solution ?

    Attaching error from heroku