Command line: ffmpeg-2014-02-03 -y -i TestFiles/BBC3HD_Sherlock_Cut.mpg -vcodec copy -acodec copy -map 0:0 -map 0:15 -map 0:1 test.mkv Only encodes the first 8 seconds, stopping just before the Sherlock advert. ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers built on Feb 3 2014 17:36:04 with gcc 4.3.2 (Debian 4.3.2-1.1) configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --disable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --disable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libfreetype --disable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --enable-libzvbi --extra-cflags='-I/home/justin/ffmpeg/x264-2014-01-04/ -I/home/justin/ffmpeg/xvidcore-2014-01-04/src/ -I/home/justin/ffmpeg/libogg-1.3.1/include -I/home/justin/ffmpeg/libtheora-1.1.1/include -I/home/justin/ffmpeg/libvorbis-1.3.3/include -I/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-ldflags='-L/home/justin/ffmpeg/x264-2014-01-04/ -L/home/justin/ffmpeg/xvidcore-2014-01-04/build/generic/=build/ -L/home/justin/ffmpeg/libogg-1.3.1/src/.libs/ -L/home/justin/ffmpeg/libtheora-1.1.1/lib/.libs/ -L/home/justin/ffmpeg/libvorbis-1.3.3/lib/.libs/ -L/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-libs=-ldl libavutil 52. 63.100 / 52. 63.100 libavcodec 55. 49.101 / 55. 49.101 libavformat 55. 29.100 / 55. 29.100 libavdevice 55. 7.100 / 55. 7.100 libavfilter 4. 1.102 / 4. 1.102 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [h264 @ 0x93bdc00] non-existing PPS referenced [h264 @ 0x93bdc00] non-existing PPS 0 referenced [h264 @ 0x93bdc00] decode_slice_header error [h264 @ 0x93bdc00] no frame! [mpegts @ 0x93b9de0] Stream #3: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #4: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #5: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #6: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #7: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #8: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #9: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #10: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #11: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #12: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #13: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #14: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #16: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x93b9de0] Stream #17: not enough frames to estimate rate; consider increasing probesize [NULL @ 0x93bf520] start time is not set in estimate_timings_from_pts [NULL @ 0x93bfd80] start time is not set in estimate_timings_from_pts [NULL @ 0x93c05e0] start time is not set in estimate_timings_from_pts [NULL @ 0x93c16e0] start time is not set in estimate_timings_from_pts [NULL @ 0x93c1f40] start time is not set in estimate_timings_from_pts [NULL @ 0x93d48e0] start time is not set in estimate_timings_from_pts [NULL @ 0x93d5100] start time is not set in estimate_timings_from_pts [NULL @ 0x93d5960] start time is not set in estimate_timings_from_pts [NULL @ 0x93d61c0] start time is not set in estimate_timings_from_pts [NULL @ 0x93d6a20] start time is not set in estimate_timings_from_pts [NULL @ 0x93d72c0] start time is not set in estimate_timings_from_pts [NULL @ 0x93d8400] start time is not set in estimate_timings_from_pts [NULL @ 0x93d8d00] start time is not set in estimate_timings_from_pts [mpegts @ 0x93b9de0] PES packet size mismatch Last message repeated 1 times [mpegts @ 0x93b9de0] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 8 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 9 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 11 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 12 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 13 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 14 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 16 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x93b9de0] Could not find codec parameters for stream 17 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'TestFiles/BBC3HD_Sherlock_Cut.mpg': Duration: 00:00:14.26, start: 39086.002622, bitrate: 11765 kb/s Program 1 Stream #0:0[0x15e0]: 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[0x15e2](NAR): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s Stream #0:2[0x15e3](eng,eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250 Stream #0:3[0xf06]: Unknown: none ([11][0][0][0] / 0x000B) Stream #0:4[0xf07]: Unknown: none ([11][0][0][0] / 0x000B) Stream #0:5[0xf09]: Unknown: none ([11][0][0][0] / 0x000B) Stream #0:6[0x15e4](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:7[0xf00]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:8[0xf01]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:9[0xf02]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:10[0xf03]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:11[0xf04]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:12[0x911]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:13[0x912]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:14[0x913]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:15[0x15e1](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s Stream #0:16[0x15e5]: Unknown: none ([5][0][0][0] / 0x0005) Stream #0:17[0x15e6]: Unknown: none ([5][0][0][0] / 0x0005) Output #0, matroska, to 'test.mkv': Metadata: encoder : Lavf55.29.100 Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s Stream #0:2(NAR): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 256 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:15 -> #0:1 (copy) Stream #0:1 -> #0:2 (copy) Press [q] to stop, [?] for help [matroska @ 0x93d9dc0] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument [matroska @ 0x93d9dc0] Can't write packet with unknown timestamp frame= 173 fps=0.0 q=-1.0 Lsize= 6494kB time=00:00:08.06 bitrate=6594.1kbits/s video:7021kB audio:395kB subtitle:0 data:0 global headers:0kB muxing overhead -12.425578%