Recherche avancée

Médias (91)

Autres articles (37)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

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

  • FFmpeg : Green images from TS file

    5 septembre 2017, par Tatsiana

    I use ffmpeg to generate images from a TS file and at some places it generates green images. I checked a couple of ffmpeg versions. The issue reproduces on
    3.3.3, 2.8.11, 2.7.7, but doesn’t on 2.6.9.
    What might be the reason ?

    For example, the output of 2.8.11 :

        $ ffmpeg -ss 00:42:20 -i video.ts -frames:v 1 out_42_20.jpg -loglevel debug
        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/x86_64-linux-=/usr/include/x86_64-linux-gnu —cc=cc —cxx=g++ —enable-gpl —enable-shared —disable-stripping —disable-decoder=libopenjpeg —disable-dhroedinger —enable-avresample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libbs2b —enab-enable-libcdio —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable—enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-librtmp —enable-libschroedinger —enable-libshine —enpy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvorbis —enable-libvpx —enable-linable-libwebp —enable-libx265 —enable-libxvid —enable-libzvbi —enable-openal —enable-opengl —enable-x11grab —enable-libdc1394 —enab83 —enable-libzmq —enable-frei0r —enable-libx264 —enable-libopencv
          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 ’-ss’ ... matched as option ’ss’ (set the start time offset) with argument ’00:42:20’.
        Reading option ’-i’ ... matched as input url with argument ’video.ts’.
        Reading option ’-frames:v’ ... matched as option ’frames’ (set the number of frames to output) with argument ’1’.
        Reading option ’out_42_20.jpg’ ... matched as output url.
        Reading option ’-loglevel’ ... matched as option ’loglevel’ (set logging level) with argument ’debug’.
        Finished splitting the commandline.
        Parsing a group of options : global .
        Applying option loglevel (set logging level) with argument debug.
        Successfully parsed a group of options.
        Parsing a group of options : input url video.ts.
        Applying option ss (set the start time offset) with argument 00:42:20.
        Successfully parsed a group of options.
        Opening an input file : video.ts.
        [mpegts @ 0x22ba400] Format mpegts probed with size=2048 and score=100
        [mpegts @ 0x22ba400] stream=0 stream_type=1b pid=1e1 prog_reg_desc=
        [mpegts @ 0x22ba400] stream=1 stream_type=f pid=1e2 prog_reg_desc=
        [mpegts @ 0x22ba400] stream=2 stream_type=6 pid=1e3 prog_reg_desc=
        [mpegts @ 0x22ba400] Before avformat_find_stream_info() pos : 0 bytes read:32768 seeks:0
        [h264 @ 0x22be840] no picture
        [mpegts @ 0x22ba400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
        [mpegts @ 0x22ba400] stream 0 : no PTS found at end of file, duration not set
        [mpegts @ 0x22ba400] After avformat_find_stream_info() pos : 0 bytes read:4026800 seeks:3 frames:550
        Input #0, mpegts, from ’video.ts’ :
          Duration : 02:15:27.97, start : 1.079989, bitrate : 4983 kb/s
          Program 1
            Stream #0:0[0x1e1], 216, 1/90000 : Video : h264 (High), 4 reference frames ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088)R 16:9], 1/50, 25 fps, 50 tbr, 90k tbn, 50 tbc
            Stream #0:1[0x1e2](und), 203, 1/90000 : Audio : aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
            Stream #0:2[0x1e3](und), 131, 1/90000 : Audio : ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s
        Successfully opened the file.
        Parsing a group of options : output url out_42_20.jpg.
        Applying option frames:v (set the number of frames to output) with argument 1.
        Successfully parsed a group of options.
        Opening an output file : out_42_20.jpg.
        Successfully opened the file.
        detected 1 logical cores
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’video_size’ to value ’1920x1080’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’pix_fmt’ to value ’0’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’time_base’ to value ’1/90000’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’pixel_aspect’ to value ’1/1’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’sws_param’ to value ’flags=2’
        [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’frame_rate’ to value ’25/1’
        [graph 0 input from stream 0:0 @ 0x22ba280] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2
        [format @ 0x2328360] compat : called with args=[yuvj420p|yuvj422p|yuvj444p]
        [format @ 0x2328360] Setting ’pix_fmts’ to value ’yuvj420p|yuvj422p|yuvj444p’
        [auto-inserted scaler 0 @ 0x2326600] Setting ’flags’ to value ’bicubic’
        [auto-inserted scaler 0 @ 0x2326600] w:iw h:ih flags :’bicubic’ interl:0
        [format @ 0x2328360] auto-inserting filter ’auto-inserted scaler 0’ between the filter ’Parsed_null_0’ and the filter ’format’
        [AVFilterGraph @ 0x2327ba0] query_formats : 5 queried, 3 merged, 1 already done, 0 delayed
        [auto-inserted scaler 0 @ 0x2326600] picking yuvj420p out of 3 ref:yuv420p alpha:0
        [swscaler @ 0x2310660] deprecated pixel format used, make sure you did set range correctly
        [auto-inserted scaler 0 @ 0x2326600] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuvj420p sar:1/1 flags:0x4
        [mjpeg @ 0x2327620] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multipl
        [mjpeg @ 0x2327620] intra_quant_bias = 96 inter_quant_bias = 0
        Output #0, image2, to ’out_42_20.jpg’ :
          Metadata :
            encoder : Lavf56.40.101
            Stream #0:0, 0, 1/25 : Video : mjpeg, 1 reference frame, yuvj420p(pc, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps tbc
            Metadata :
              encoder : Lavc56.60.100 mjpeg
        Stream mapping :
          Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
        Press [q] to stop, [?] for help
        [h264 @ 0x232a040] Missing reference picture, default is 0
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 0
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 0
        [h264 @ 0x232a040] decode_slice_header error
        timestamp discontinuity 0, new offset= -2541079989
        [h264 @ 0x232a040] no picture
        [h264 @ 0x232a040] illegal short term buffer state detected
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] Missing reference picture, default is 65537
        [h264 @ 0x232a040] decode_slice_header error
        [h264 @ 0x232a040] no picture
        *** 0 dup !
        [AVIOContext @ 0x2448c00] Statistics : 0 seeks, 2 writeouts
        No more output streams to write to, finishing.
        frame=    1 fps=0.0 q=2.2 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=1
        video:32kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown
        Input file #0 (video.ts) :
          Input stream #0:0 (video) : 9 packets read (261340 bytes) ; 3 frames decoded ;
          Input stream #0:1 (audio) : 0 packets read (0 bytes) ;
          Input stream #0:2 (audio) : 0 packets read (0 bytes) ;
          Total : 9 packets (261340 bytes) demuxed
        Output file #0 (out_42_20.jpg) :
          Output stream #0:0 (video) : 1 frames encoded ; 1 packets muxed (33209 bytes) ;
          Total : 1 packets (33209 bytes) muxed
        3 frames successfully decoded, 0 decoding errors
        [AVIOContext @ 0x22c2e40] Statistics : 8798032 bytes read, 36 seeks
    
  • Stream RTP to FFMPEG using SDP

    9 avril 2021, par Johnathan Kanarek

    I get RTP stream from WebRTC server (I used mediasoup) using node.js and I get the decrypted RTP packets raw data from the stream.
I want to forward this RTP data to ffmpeg and from there I can save it to file, or push it as RTMP stream to other media servers.
I guess that the best way would be to create SDP file that describes both the audio and video streams and send the packets through new sockets.

    



    The ffmpeg command is :

    



    ffmpeg -loglevel debug -protocol_whitelist file,crypto,udp,rtp -re -vcodec libvpx -acodec opus -i test.sdp -vcodec libx264 -acodec aac -y output.mp4

    



    I tried to send the packets through UDP :

    



    v=0
o=mediasoup 7199daf55e496b370e36cd1d25b1ef5b9dff6858 0 IN IP4 192.168.193.182
s=7199daf55e496b370e36cd1d25b1ef5b9dff6858
c=IN IP4 192.168.193.182
t=0 0
m=audio 33301 RTP/AVP 111
a=rtpmap:111 /opus/48000
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 transport-cc
a=sendrecv
m=video 33302 RTP/AVP 100
a=rtpmap:100 /VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=sendrecv


    



    But I always get (removed the boring parts) :

    



    Opening an input file: test.sdp.

[sdp @ 0x103dea0]
Format sdp probed with size=2048 and score=50
[sdp @ 0x103dea0] audio codec set to: (null)
[sdp @ 0x103dea0] audio samplerate set to: 44100
[sdp @ 0x103dea0] audio channels set to: 1
[sdp @ 0x103dea0] video codec set to: (null)
[udp @ 0x10402e0] end receive buffer size reported is 131072
[udp @ 0x10400c0] end receive buffer size reported is 131072
[sdp @ 0x103dea0] setting jitter buffer size to 500
[udp @ 0x1040740] bind failed: Address already in use
[AVIOContext @ 0x1046980] Statistics: 473 bytes read, 0 seeks
test.sdp: Invalid data found when processing input


    



    Note that I get it even if I don't open socket at all or send anything to this port, as if the ffmpeg itself tries to open these ports more than once.

    



    I tried also to open two (video and audio) TCP servers and define SDP with TCP :

    



    v=0
o=mediasoup 7199daf55e496b370e36cd1d25b1ef5b9dff6858 0 IN IP4 192.168.193.182
s=7199daf55e496b370e36cd1d25b1ef5b9dff6858
c=IN IP4 192.168.193.182
t=0 0
m=audio 33301 TCP 111
a=rtpmap:111 /opus/48000
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 transport-cc
a=setup:active
a=connection:new
a=sendrecv
m=video 33302 TCP 100
a=rtpmap:100 /VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=setup:active
a=connection:new
a=sendrecv


    



    However I don't see any incoming connection into my TCP servers and I get the following from ffmpeg :

    



    Opening an input file: test.sdp.

[sdp @ 0xdddea0]
Format sdp probed with size=2048 and score=50

[sdp @ 0xdddea0]
audio codec set to: (null)

[sdp @ 0xdddea0]
audio samplerate set to: 44100
[sdp @ 0xdddea0] audio channels set to: 1
[sdp @ 0xdddea0] video codec set to: (null)
[udp @ 0xde02e0] end receive buffer size reported is 131072
[udp @ 0xde00c0] end receive buffer size reported is 131072
[sdp @ 0xdddea0] setting jitter buffer size to 500
[udp @ 0xde0740] end receive buffer size reported is 131072

[udp @ 0xde0180] end receive buffer size reported is 131072
[sdp @ 0xdddea0] setting jitter buffer size to 500
[sdp @ 0xdddea0] Before avformat_find_stream_info() pos: 593 bytes read:593 seeks:0 nb_streams:2
[libvpx @ 0xdeea80] v1.3.0
[libvpx @ 0xdeea80] --target=x86_64-linux-gcc --enable-pic --disable-install-srcs --as=nasm --enable-shared --prefix=/usr --libdir=/usr/lib64

[sdp @ 0xdddea0] Could not find codec parameters for stream 1 (Video: vp8, 1 reference frame, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[sdp @ 0xdddea0] After avformat_find_stream_info() pos: 593 bytes read:593 seeks:0 frames:0
Input #0, sdp, from 'test.sdp':
  Metadata:
    title           : 7199daf55e496b370e36cd1d25b1ef5b9dff6858
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/90000: Audio: opus, 48000 Hz, mono, fltp
    Stream #0:1, 0, 1/90000: Video: vp8, 1 reference frame, none, 90k tbr, 90k tbn, 90k tbc
Successfully opened the file.
Parsing a group of options: output file output.mp4.
Successfully parsed a group of options.
Opening an output file: output.mp4.
[file @ 0xde3660] Setting default whitelist 'file,crypto'
Successfully opened the file.

detected 1 logical cores
[graph 0 input from stream 0:0 @ 0xde3940] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0xde3940] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0xde3940] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0xde3940] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:0 @ 0xde3940] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x4
[audio format for output stream 0:0 @ 0xe37900] Setting 'sample_fmts' to value 'fltp'
[audio format for output stream 0:0 @ 0xe37900] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[AVFilterGraph @ 0xde0220] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed

Output #0, mp4, to 'output.mp4':

  Metadata:

    title           :
7199daf55e496b370e36cd1d25b1ef5b9dff6858


    encoder         :
Lavf57.56.100


    Stream #0:0
, 0, 1/48000
: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, mono, fltp, delay 1024, 69 kb/s


    Metadata:

      encoder         :
Lavc57.64.100 aac


Stream mapping:

  Stream #0:0 -> #0:0 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)

test.sdp: Connection timed out
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)
[output stream 0:0 @ 0xde3b40] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
[aac @ 0xde2b00] Trying to remove 1024 samples, but the queue is empty
[aac @ 0xde2b00] Trying to remove 1024 more samples than there are in the queue
[mp4 @ 0xe6a540] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 0xe6a540] Encoder did not produce proper pts, making some up.
[aac @ 0xde2b00] Trying to remove 1024 samples, but the queue is empty
[aac @ 0xde2b00] Trying to remove 1024 more samples than there are in the queue
size=       1kB time=00:00:00.04 bitrate= 157.9kbits/s speed=0.00426x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3268.000000%
Input file #0 (test.sdp):
  Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples);
  Input stream #0:1 (video): 0 packets read (0 bytes);
  Total: 0 packets (0 bytes) demuxed
Output file #0 (output.mp4):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 2 packets muxed (25 bytes);
  Total: 2 packets (25 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0xde37a0] Statistics: 30 seeks, 25 writeouts
[aac @ 0xde2b00] Qavg: 47249.418

[AVIOContext @ 0xde6980] Statistics: 593 bytes read, 0 seeks


    



    Note to the "Connection timed out" in the log above.

    



    I guess that both my SDPs are wrong, any suggestions ?

    



    Alternatives to SDP are also most welcomed.

    


  • 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