Opened 6 years ago

Closed 6 years ago

#2700 closed defect (invalid)

Stream mapping not predictable when using -ss option

Reported by: claudelepoisson Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mpegps
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

What I want to do:
Extract many short clips from a few .mpg movies I filmed and edit a movie only using a bash script and ffmpeg.

Summary of the bug:
When extracting a clip from a longer movie, the order of streams may be different from what is expected.

This causes a problem because the concatenate format expects the streams to be exactly the same and in the same order. There is no problem when concatenating clips that were extracted with the -an option.

How to reproduce:

#!/bin/bash
for s in {0..10}; do
    for d in {0..30}; do
        ffmpeg \
            -i input.mpg \
            -c copy \
            -ss $s.$d \
            -t 1 \
            -map 0:v \
            -map 0:a \
            -y \
            test/$(printf %02d $s).$(printf %02d $d).mpg
    done
done

# Check the result
for f in test/*; do
    echo -n $x
    ffprobe $x |& grep "Stream #0:0"
done

This is the output from below the "# Check the result" line. It seems to show a pattern, my intuition tells me it's the multiplexing:

test/00.00.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.01.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.02.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.03.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.04.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.05.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.06.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.07.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.08.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.09.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.10.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.11.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.12.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.13.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.14.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.15.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.16.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.17.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.18.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.19.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.20.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.21.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.22.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.23.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.24.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.25.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/00.26.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.27.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.28.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.29.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/00.30.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/01.00.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.01.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.02.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.03.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/01.04.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/01.05.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.06.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.07.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.08.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/01.09.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/01.10.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.11.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.12.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.13.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.14.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.15.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.16.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.17.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.18.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.19.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.20.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.21.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.22.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.23.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.24.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.25.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.26.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.27.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.28.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/01.29.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/01.30.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.00.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.01.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.02.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.03.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.04.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.05.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.06.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.07.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.08.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.09.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.10.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.11.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.12.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.13.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.14.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.15.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.16.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.17.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.18.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.19.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.20.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.21.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.22.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.23.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.24.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.25.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.26.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.27.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/02.28.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.29.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/02.30.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.00.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.01.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.02.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.03.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.04.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.05.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.06.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.07.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.08.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.09.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.10.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.11.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.12.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.13.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.14.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.15.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.16.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.17.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.18.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.19.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.20.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.21.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.22.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.23.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.24.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.25.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.26.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/03.27.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.28.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.29.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/03.30.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.00.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.01.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.02.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.03.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.04.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.05.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.06.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.07.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.08.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.09.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.10.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.11.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.12.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.13.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.14.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.15.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.16.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.17.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.18.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.19.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.20.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.21.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.22.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.23.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.24.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.25.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/04.26.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.27.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.28.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.29.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/04.30.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/05.00.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.01.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.02.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.03.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/05.04.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/05.05.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.06.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.07.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.08.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/05.09.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/05.10.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.11.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.12.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.13.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.14.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.15.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.16.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.17.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.18.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.19.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.20.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.21.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.22.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.23.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.24.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.25.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.26.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.27.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.28.mpg    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
test/05.29.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
test/05.30.mpg    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

This is the -report from an ffmpeg command that correctly assigns the "Video" stream the number 0:

ffmpeg started on 2013-06-24 at 01:30:21
Report written to "ffmpeg-20130624-013021.log"
Command line:
ffmpeg -i 1/M2U00075.mpg -c copy -map 0:v -map 0:a -ss 4.28 -t 1 -report test2/04.28.mpg
ffmpeg version N-54166-g5dba888 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 24 2013 00:34:31 with gcc 4.8.1 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument '1/M2U00075.mpg'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:v'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:a'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '4.28'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '1'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option 'test2/04.28.mpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file 1/M2U00075.mpg.
Successfully parsed a group of options.
Opening an input file: 1/M2U00075.mpg.
[mpeg @ 0x20ff4c0] Format mpeg probed with size=8192 and score=52
[mpeg @ 0x20ff4c0] File position before avformat_find_stream_info() is 0
[mpeg @ 0x20ff4c0] probing stream 0 pp:2500
[mpeg @ 0x20ff4c0] Probe with size=2012, packets=1 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2499
[mpeg @ 0x20ff4c0] Probe with size=4037, packets=2 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2498
[mpeg @ 0x20ff4c0] Probe with size=6062, packets=3 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2497
[mpeg @ 0x20ff4c0] probing stream 0 pp:2496
[mpeg @ 0x20ff4c0] Probe with size=10112, packets=5 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2495
[mpeg @ 0x20ff4c0] probing stream 0 pp:2494
[mpeg @ 0x20ff4c0] probing stream 0 pp:2493
[mpeg @ 0x20ff4c0] probing stream 0 pp:2492
[mpeg @ 0x20ff4c0] Probe with size=18212, packets=9 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2491
[mpeg @ 0x20ff4c0] probing stream 0 pp:2490
[mpeg @ 0x20ff4c0] probing stream 0 pp:2489
[mpeg @ 0x20ff4c0] probing stream 0 pp:2488
[mpeg @ 0x20ff4c0] probing stream 0 pp:2487
[mpeg @ 0x20ff4c0] probing stream 0 pp:2486
[mpeg @ 0x20ff4c0] probing stream 0 pp:2485
[mpeg @ 0x20ff4c0] probing stream 0 pp:2484
[mpeg @ 0x20ff4c0] Probe with size=34412, packets=17 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2483
[mpeg @ 0x20ff4c0] probing stream 0 pp:2482
[mpeg @ 0x20ff4c0] probing stream 0 pp:2481
[mpeg @ 0x20ff4c0] probing stream 0 pp:2480
[mpeg @ 0x20ff4c0] probing stream 0 pp:2479
[mpeg @ 0x20ff4c0] probing stream 0 pp:2478
[mpeg @ 0x20ff4c0] probing stream 0 pp:2477
[mpeg @ 0x20ff4c0] probing stream 0 pp:2476
[mpeg @ 0x20ff4c0] probing stream 0 pp:2475
[mpeg @ 0x20ff4c0] probing stream 0 pp:2474
[mpeg @ 0x20ff4c0] probing stream 0 pp:2473
[mpeg @ 0x20ff4c0] probing stream 0 pp:2472
[mpeg @ 0x20ff4c0] probing stream 0 pp:2471
[mpeg @ 0x20ff4c0] probing stream 0 pp:2470
[mpeg @ 0x20ff4c0] probing stream 0 pp:2469
[mpeg @ 0x20ff4c0] probing stream 0 pp:2468
[mpeg @ 0x20ff4c0] Probe with size=66812, packets=33 detected mpegvideo with score=25
[mpeg @ 0x20ff4c0] probing stream 0 pp:2467
[mpeg @ 0x20ff4c0] probing stream 0 pp:2466
[mpeg @ 0x20ff4c0] probing stream 0 pp:2465
[mpeg @ 0x20ff4c0] probing stream 0 pp:2464
[mpeg @ 0x20ff4c0] probing stream 0 pp:2463
[mpeg @ 0x20ff4c0] probing stream 0 pp:2462
[mpeg @ 0x20ff4c0] probing stream 0 pp:2461
[mpeg @ 0x20ff4c0] probing stream 0 pp:2460
[mpeg @ 0x20ff4c0] probing stream 0 pp:2459
[mpeg @ 0x20ff4c0] probing stream 0 pp:2458
[mpeg @ 0x20ff4c0] probing stream 0 pp:2457
[mpeg @ 0x20ff4c0] probing stream 0 pp:2456
[mpeg @ 0x20ff4c0] probing stream 0 pp:2455
[mpeg @ 0x20ff4c0] probing stream 0 pp:2454
[mpeg @ 0x20ff4c0] probing stream 0 pp:2453
[mpeg @ 0x20ff4c0] probing stream 0 pp:2452
[mpeg @ 0x20ff4c0] probing stream 0 pp:2451
[mpeg @ 0x20ff4c0] probing stream 0 pp:2450
[mpeg @ 0x20ff4c0] probing stream 0 pp:2449
[mpeg @ 0x20ff4c0] probing stream 0 pp:2448
[mpeg @ 0x20ff4c0] probing stream 0 pp:2447
[mpeg @ 0x20ff4c0] probing stream 0 pp:2446
[mpeg @ 0x20ff4c0] probing stream 0 pp:2445
[mpeg @ 0x20ff4c0] probing stream 0 pp:2444
[mpeg @ 0x20ff4c0] probing stream 0 pp:2443
[mpeg @ 0x20ff4c0] probing stream 0 pp:2442
[mpeg @ 0x20ff4c0] probing stream 0 pp:2441
[mpeg @ 0x20ff4c0] probing stream 0 pp:2440
[mpeg @ 0x20ff4c0] probing stream 0 pp:2439
[mpeg @ 0x20ff4c0] probing stream 0 pp:2438
[mpeg @ 0x20ff4c0] probing stream 0 pp:2437
[mpeg @ 0x20ff4c0] probing stream 0 pp:2436
[mpeg @ 0x20ff4c0] Probe with size=131592, packets=65 detected mpegvideo with score=51
[mpeg @ 0x20ff4c0] probed stream 0
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 12935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 21575 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 30215 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 38855 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 47495 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 56135 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 64775 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 73415 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 87815 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 96455 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 105095 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 113735 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 122375 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 131015 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 139655 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 148295 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 156935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 165575 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 174215 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 182855 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 191495 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 200135 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 208775 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 223175 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 231815 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 240455 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 249095 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 257735 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 266375 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 275015 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 283655 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 292295 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 300935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 315335 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 323975 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 332615 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 341255 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 349895 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 358535 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 367175 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 375815 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 384455 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 393095 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 401735 in the queue
[mpeg @ 0x20ff4c0] Probe buffer size limit of 5000000 bytes reached
[mpeg @ 0x20ff4c0] File position after avformat_find_stream_info() is 0
Input #0, mpeg, from '1/M2U00075.mpg':
  Duration: 00:10:25.11, start: 0.111722, bitrate: 9334 kb/s
    Stream #0:0[0x1e0], 136, 1/90000: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80], 138, 1/90000: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Successfully opened the file.
Parsing a group of options: output file test2/04.28.mpg.
Applying option c (codec name) with argument copy.
Applying option map (set input stream mapping) with argument 0:v.
Applying option map (set input stream mapping) with argument 0:a.
Applying option ss (set the start time offset) with argument 4.28.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 1.
Successfully parsed a group of options.
Opening an output file: test2/04.28.mpg.
Successfully opened the file.
Output #0, mpeg, to 'test2/04.28.mpg':
  Metadata:
    encoder         : Lavf55.9.100
    Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
    Stream #0:1, 0, 1/90000: Audio: ac3, 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 12935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 21575 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 30215 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 38855 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 47495 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 56135 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 64775 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 73415 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 87815 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 96455 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 105095 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 113735 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 122375 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 131015 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 139655 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 148295 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 156935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 165575 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 174215 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 182855 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 191495 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 200135 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 208775 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 223175 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 231815 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 240455 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 249095 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 257735 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 266375 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 275015 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 283655 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 292295 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 300935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 315335 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 323975 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 332615 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 341255 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 349895 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 358535 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 367175 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 375815 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 384455 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 393095 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 401735 in the queue
[mpeg @ 0x21220c0] First SCR: 0 First DTS: 45000
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 410375 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 419015 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 427655 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 436295 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 444935 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 453575 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 462215 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 470855 in the queue
[mpeg @ 0x20ff4c0] first_dts 10055 not matching first dts 479495 in the queue
No more output streams to write to, finishing.
frame=   24 fps=0.0 q=-1.0 Lsize=     926kB time=00:00:01.00 bitrate=7541.1kbits/s    
video:890kB audio:31kB subtitle:0 global headers:0kB muxing overhead 0.597501%
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x21239a0] Statistics: 0 seeks, 463 writeouts
[AVIOContext @ 0x2107b00] Statistics: 11817104 bytes read, 2 seeks

This is the -report from an ffmpeg command that incorrectly assigns the "Audio" stream the number 0:

ffmpeg started on 2013-06-24 at 01:31:21
Report written to "ffmpeg-20130624-013121.log"
Command line:
ffmpeg -i 1/M2U00075.mpg -c copy -map 0:v -map 0:a -ss 5.19 -t 1 -report test2/05.19.mpg
ffmpeg version N-54166-g5dba888 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 24 2013 00:34:31 with gcc 4.8.1 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument '1/M2U00075.mpg'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:v'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:a'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '5.19'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '1'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option 'test2/05.19.mpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file 1/M2U00075.mpg.
Successfully parsed a group of options.
Opening an input file: 1/M2U00075.mpg.
[mpeg @ 0x19334c0] Format mpeg probed with size=8192 and score=52
[mpeg @ 0x19334c0] File position before avformat_find_stream_info() is 0
[mpeg @ 0x19334c0] probing stream 0 pp:2500
[mpeg @ 0x19334c0] Probe with size=2012, packets=1 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2499
[mpeg @ 0x19334c0] Probe with size=4037, packets=2 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2498
[mpeg @ 0x19334c0] Probe with size=6062, packets=3 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2497
[mpeg @ 0x19334c0] probing stream 0 pp:2496
[mpeg @ 0x19334c0] Probe with size=10112, packets=5 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2495
[mpeg @ 0x19334c0] probing stream 0 pp:2494
[mpeg @ 0x19334c0] probing stream 0 pp:2493
[mpeg @ 0x19334c0] probing stream 0 pp:2492
[mpeg @ 0x19334c0] Probe with size=18212, packets=9 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2491
[mpeg @ 0x19334c0] probing stream 0 pp:2490
[mpeg @ 0x19334c0] probing stream 0 pp:2489
[mpeg @ 0x19334c0] probing stream 0 pp:2488
[mpeg @ 0x19334c0] probing stream 0 pp:2487
[mpeg @ 0x19334c0] probing stream 0 pp:2486
[mpeg @ 0x19334c0] probing stream 0 pp:2485
[mpeg @ 0x19334c0] probing stream 0 pp:2484
[mpeg @ 0x19334c0] Probe with size=34412, packets=17 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2483
[mpeg @ 0x19334c0] probing stream 0 pp:2482
[mpeg @ 0x19334c0] probing stream 0 pp:2481
[mpeg @ 0x19334c0] probing stream 0 pp:2480
[mpeg @ 0x19334c0] probing stream 0 pp:2479
[mpeg @ 0x19334c0] probing stream 0 pp:2478
[mpeg @ 0x19334c0] probing stream 0 pp:2477
[mpeg @ 0x19334c0] probing stream 0 pp:2476
[mpeg @ 0x19334c0] probing stream 0 pp:2475
[mpeg @ 0x19334c0] probing stream 0 pp:2474
[mpeg @ 0x19334c0] probing stream 0 pp:2473
[mpeg @ 0x19334c0] probing stream 0 pp:2472
[mpeg @ 0x19334c0] probing stream 0 pp:2471
[mpeg @ 0x19334c0] probing stream 0 pp:2470
[mpeg @ 0x19334c0] probing stream 0 pp:2469
[mpeg @ 0x19334c0] probing stream 0 pp:2468
[mpeg @ 0x19334c0] Probe with size=66812, packets=33 detected mpegvideo with score=25
[mpeg @ 0x19334c0] probing stream 0 pp:2467
[mpeg @ 0x19334c0] probing stream 0 pp:2466
[mpeg @ 0x19334c0] probing stream 0 pp:2465
[mpeg @ 0x19334c0] probing stream 0 pp:2464
[mpeg @ 0x19334c0] probing stream 0 pp:2463
[mpeg @ 0x19334c0] probing stream 0 pp:2462
[mpeg @ 0x19334c0] probing stream 0 pp:2461
[mpeg @ 0x19334c0] probing stream 0 pp:2460
[mpeg @ 0x19334c0] probing stream 0 pp:2459
[mpeg @ 0x19334c0] probing stream 0 pp:2458
[mpeg @ 0x19334c0] probing stream 0 pp:2457
[mpeg @ 0x19334c0] probing stream 0 pp:2456
[mpeg @ 0x19334c0] probing stream 0 pp:2455
[mpeg @ 0x19334c0] probing stream 0 pp:2454
[mpeg @ 0x19334c0] probing stream 0 pp:2453
[mpeg @ 0x19334c0] probing stream 0 pp:2452
[mpeg @ 0x19334c0] probing stream 0 pp:2451
[mpeg @ 0x19334c0] probing stream 0 pp:2450
[mpeg @ 0x19334c0] probing stream 0 pp:2449
[mpeg @ 0x19334c0] probing stream 0 pp:2448
[mpeg @ 0x19334c0] probing stream 0 pp:2447
[mpeg @ 0x19334c0] probing stream 0 pp:2446
[mpeg @ 0x19334c0] probing stream 0 pp:2445
[mpeg @ 0x19334c0] probing stream 0 pp:2444
[mpeg @ 0x19334c0] probing stream 0 pp:2443
[mpeg @ 0x19334c0] probing stream 0 pp:2442
[mpeg @ 0x19334c0] probing stream 0 pp:2441
[mpeg @ 0x19334c0] probing stream 0 pp:2440
[mpeg @ 0x19334c0] probing stream 0 pp:2439
[mpeg @ 0x19334c0] probing stream 0 pp:2438
[mpeg @ 0x19334c0] probing stream 0 pp:2437
[mpeg @ 0x19334c0] probing stream 0 pp:2436
[mpeg @ 0x19334c0] Probe with size=131592, packets=65 detected mpegvideo with score=51
[mpeg @ 0x19334c0] probed stream 0
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 12935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 21575 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 30215 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 38855 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 47495 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 56135 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 64775 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 73415 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 87815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 96455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 105095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 113735 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 122375 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 131015 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 139655 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 148295 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 156935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 165575 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 174215 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 182855 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 191495 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 200135 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 208775 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 223175 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 231815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 240455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 249095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 257735 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 266375 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 275015 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 283655 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 292295 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 300935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 315335 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 323975 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 332615 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 341255 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 349895 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 358535 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 367175 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 375815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 384455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 393095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 401735 in the queue
[mpeg @ 0x19334c0] Probe buffer size limit of 5000000 bytes reached
[mpeg @ 0x19334c0] File position after avformat_find_stream_info() is 0
Input #0, mpeg, from '1/M2U00075.mpg':
  Duration: 00:10:25.11, start: 0.111722, bitrate: 9334 kb/s
    Stream #0:0[0x1e0], 136, 1/90000: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80], 138, 1/90000: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Successfully opened the file.
Parsing a group of options: output file test2/05.19.mpg.
Applying option c (codec name) with argument copy.
Applying option map (set input stream mapping) with argument 0:v.
Applying option map (set input stream mapping) with argument 0:a.
Applying option ss (set the start time offset) with argument 5.19.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 1.
Successfully parsed a group of options.
Opening an output file: test2/05.19.mpg.
Successfully opened the file.
Output #0, mpeg, to 'test2/05.19.mpg':
  Metadata:
    encoder         : Lavf55.9.100
    Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
    Stream #0:1, 0, 1/90000: Audio: ac3, 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 12935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 21575 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 30215 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 38855 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 47495 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 56135 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 64775 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 73415 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 87815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 96455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 105095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 113735 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 122375 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 131015 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 139655 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 148295 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 156935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 165575 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 174215 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 182855 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 191495 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 200135 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 208775 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 223175 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 231815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 240455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 249095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 257735 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 266375 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 275015 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 283655 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 292295 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 300935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 315335 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 323975 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 332615 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 341255 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 349895 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 358535 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 367175 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 375815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 384455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 393095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 401735 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 410375 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 419015 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 427655 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 436295 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 444935 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 453575 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 462215 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 470855 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 479495 in the queue
[mpeg @ 0x19560c0] First SCR: 0 First DTS: 45000
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 493895 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 502535 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 511175 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 519815 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 528455 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 537095 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 545735 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 554375 in the queue
[mpeg @ 0x19334c0] first_dts 10055 not matching first dts 563015 in the queue
No more output streams to write to, finishing.
frame=   22 fps=0.0 q=-1.0 Lsize=     832kB time=00:00:01.03 bitrate=6615.9kbits/s    
video:796kB audio:31kB subtitle:0 global headers:0kB muxing overhead 0.577516%
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x19579a0] Statistics: 0 seeks, 416 writeouts
[AVIOContext @ 0x193bb00] Statistics: 12898448 bytes read, 2 seeks

Change History (3)

comment:1 Changed 6 years ago by cehoyos

  • Component changed from FFmpeg to undetermined
  • Keywords mpegps added; stream mapping seek -ss removed

comment:2 Changed 6 years ago by cehoyos

$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -qscale 15 -t 3 out.mpg
$ ffmpeg -i out.mpg -acodec copy -vcodec copy -t 1 -ss 2 av.mpg
ffmpeg version N-54166-g5dba888 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 24 2013 08:54:40 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from 'out.mpg':
  Duration: 00:00:02.98, start: 0.522422, bitrate: 297 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
Output #0, mpeg, to 'av.mpg':
  Metadata:
    encoder         : Lavf55.9.100
    Stream #0:0: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 104857 kb/s, 30 fps, 90k tbn, 30 tbc
    Stream #0:1: Audio: mp2, 44100 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   18 fps=0.0 q=-1.0 Lsize=      34kB time=00:00:01.00 bitrate= 277.4kbits/s
video:17kB audio:16kB subtitle:0 global headers:0kB muxing overhead 3.637554%
$ ffmpeg -i out.mpg -acodec copy -vcodec copy -t 1 -ss 1 va.mpg
ffmpeg version N-54166-g5dba888 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 24 2013 08:54:40 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from 'out.mpg':
  Duration: 00:00:02.98, start: 0.522422, bitrate: 297 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
Output #0, mpeg, to 'va.mpg':
  Metadata:
    encoder         : Lavf55.9.100
    Stream #0:0: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 104857 kb/s, 30 fps, 90k tbn, 30 tbc
    Stream #0:1: Audio: mp2, 44100 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   25 fps=0.0 q=-1.0 Lsize=      34kB time=00:00:01.01 bitrate= 275.4kbits/s
video:17kB audio:16kB subtitle:0 global headers:0kB muxing overhead 5.570211%
$ ffmpeg -i av.mpg -i va.mpg
ffmpeg version N-54166-g5dba888 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 24 2013 08:54:40 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from 'av.mpg':
  Duration: 00:00:00.89, start: 0.500000, bitrate: 313 kb/s
    Stream #0:0[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
    Stream #0:1[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc
Input #1, mpeg, from 'va.mpg':
  Duration: 00:00:00.99, start: 0.500000, bitrate: 280 kb/s
    Stream #1:0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc
    Stream #1:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
At least one output file must be specified

comment:3 Changed 6 years ago by michael

  • Resolution set to invalid
  • Status changed from new to closed

There is no such thing as a order of streams in mpeg-ps. What you see is the order of the packets

Note: See TracTickets for help on using tickets.