Command line: ffmpeg-2.1.3 -y -i TestFiles/BBC3HD_Sherlock_Cut.mpg -vcodec copy -acodec copy -map 0:0 -map 0:15 -map 0:1 test.mp4 Result is a 13 second file which includes an advert for Sherlock. ffmpeg version 2.1.3 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2014 17:04:07 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. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [h264 @ 0x932aba0] non-existing PPS referenced [h264 @ 0x932aba0] non-existing PPS 0 referenced [h264 @ 0x932aba0] decode_slice_header error [h264 @ 0x932aba0] no frame! [mpegts @ 0x9326de0] Stream #3: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #4: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #5: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #6: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #7: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #8: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #9: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #10: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #11: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #12: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #13: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #14: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #16: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x9326de0] Stream #17: not enough frames to estimate rate; consider increasing probesize [NULL @ 0x932c540] start time is not set in estimate_timings_from_pts [NULL @ 0x932cde0] start time is not set in estimate_timings_from_pts [NULL @ 0x932d680] start time is not set in estimate_timings_from_pts [NULL @ 0x932e7a0] start time is not set in estimate_timings_from_pts [NULL @ 0x932f040] start time is not set in estimate_timings_from_pts [NULL @ 0x93419e0] start time is not set in estimate_timings_from_pts [NULL @ 0x9342260] start time is not set in estimate_timings_from_pts [NULL @ 0x9342b00] start time is not set in estimate_timings_from_pts [NULL @ 0x9343380] start time is not set in estimate_timings_from_pts [NULL @ 0x9343c20] start time is not set in estimate_timings_from_pts [NULL @ 0x93444a0] start time is not set in estimate_timings_from_pts [NULL @ 0x93455c0] start time is not set in estimate_timings_from_pts [NULL @ 0x9345e60] start time is not set in estimate_timings_from_pts [mpegts @ 0x9326de0] PES packet size mismatch Last message repeated 1 times [mpegts @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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 @ 0x9326de0] 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): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) 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) [mp4 @ 0x93477c0] track 1: codec frame size is not set Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 90k tbn, 90k tbc Stream #0:1(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 192 kb/s Stream #0:2(NAR): Audio: mp2 (i[0][0][0] / 0x0069), 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 [mp4 @ 0x93477c0] pts has no value Last message repeated 22 times [mpegts @ 0x9326de0] PES packet size mismatch [mp4 @ 0x93477c0] pts has no value [mpegts @ 0x9326de0] PES packet size mismatch [mp4 @ 0x93477c0] pts has no value Last message repeated 11 times frame= 346 fps=0.0 q=-1.0 Lsize= 14156kB time=00:00:13.74 bitrate=8435.2kbits/s video:13444kB audio:696kB subtitle:0 global headers:0kB muxing overhead 0.114576%