blindbunny <[email protected]> added the comment:
> If you don't use -map 0, there is no guarantee that FFmpeg uses the
> first video stream
Yes, I am aware of that, I agree, and my examples do use that option (cf.
msg11610, lines 11/12 and msg11645, lines 6/7). This is assuming that -map 0:0
and -map 0.0 can be regarded as equivalent to the -map 0 you suggest (at least
the results I observe are the same)? msg11618 admittedly contains no -map
option, but adding -map 0 to that command line does not change the result.
That's why I am confused that I get feedback saying that I should use stream
mapping to demonstrate the bug. From all I can tell, that's exactly what I do.
> Since you somehow manage to remove the "Stream mapping:" part of
> the output
msg11610 and msg11618 contain the entire verbatim ffmpeg ouput. The "Stream
mapping:" part is missing because the crop filter makes ffmpeg abort its
operation before it would print its 'Stream mapping:' output.
Removing the crop filter leads to the result from msg11645, showing that the
stream mapping itself works correctly but the scale filter appears out of
nowhere. Appended here in full for completeness:
#> ffmpeg -y -i /tmp/misscaling-video.m2ts -vcodec ffv1 -an -sn /tmp/output.mkv
-map 0:0
FFmpeg version SVN-r24749, Copyright (c) 2000-2010 the FFmpeg developers
built on Aug 9 2010 15:03:12 with gcc 4.4.3
configuration: --enable-shared --enable-nonfree --enable-gpl --enable-postproc
--enable-avfilter --enable-pthreads --enable-libx264
--extra-ldflags=-L/usr/local/lib
libavutil 50.23. 0 / 50.23. 0
libavcore 0. 3. 0 / 0. 3. 0
libavcodec 52.84. 3 / 52.84. 3
libavformat 52.78. 1 / 52.78. 1
libavdevice 52. 2. 1 / 52. 2. 1
libavfilter 1.31. 0 / 1.31. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[dca @ 0x9a69c70] Didn't get subframe DSYNC
[dca @ 0x9a6a3e0] Didn't get subframe DSYNC
[dca @ 0x9a6ab50] Didn't get subframe DSYNC
[dca @ 0x9a6b2c0] Didn't get subframe DSYNC
[mpegts @ 0x9a645b0] Could not find codec parameters (Data: [162][0][0][0] /
0x00A2)
[NULL @ 0x9a6c1a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a6c910] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a6d080] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a7d9a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a7e0c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a7e7e0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a7ef00] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a7f6b0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a7fe20] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a80600] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a80d70] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a814e0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a81c50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a823c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a82b30] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a832a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a83a10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a841c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a84930] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a850a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a85810] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a85f80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a866f0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a86e60] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a875d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a87da0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a884c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9a893a0] start time is not set in av_estimate_timings_from_pts
Seems stream 36 codec frame rate differs from container frame rate: 47.95
(48000/1001) -> 23.98 (48000/2002)
Seems stream 37 codec frame rate differs from container frame rate: 47.95
(48000/1001) -> 23.98 (48000/2002)
Input #0, mpegts, from '/tmp/misscaling-video.m2ts':
Duration: 00:00:00.16, start: 11.608967, bitrate: 12571 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
23.98 tbr, 90k tbn, 47.95 tbc
Stream #0.1[0x1100]: Data: [134][0][0][0] / 0x0086
Stream #0.2[0x1101]: Audio: dca, 48000 Hz, 5.1, s16, 768 kb/s
Stream #0.3[0x1102]: Audio: dca, 48000 Hz, 5.1, s16, 768 kb/s
Stream #0.4[0x1103]: Audio: dca, 48000 Hz, 5.1, s16, 768 kb/s
Stream #0.5[0x1104]: Audio: dca, 48000 Hz, 5.1, s16, 768 kb/s
Stream #0.6[0x1105]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.7[0x1200]: Subtitle: pgssub
Stream #0.8[0x1201]: Subtitle: pgssub
Stream #0.9[0x1202]: Subtitle: pgssub
Stream #0.10[0x1203]: Subtitle: pgssub
Stream #0.11[0x1204]: Subtitle: pgssub
Stream #0.12[0x1205]: Subtitle: pgssub
Stream #0.13[0x1206]: Subtitle: pgssub
Stream #0.14[0x1207]: Subtitle: pgssub
Stream #0.15[0x1208]: Subtitle: pgssub
Stream #0.16[0x1209]: Subtitle: pgssub
Stream #0.17[0x120a]: Subtitle: pgssub
Stream #0.18[0x120b]: Subtitle: pgssub
Stream #0.19[0x120c]: Subtitle: pgssub
Stream #0.20[0x120d]: Subtitle: pgssub
Stream #0.21[0x120e]: Subtitle: pgssub
Stream #0.22[0x120f]: Subtitle: pgssub
Stream #0.23[0x1210]: Subtitle: pgssub
Stream #0.24[0x1211]: Subtitle: pgssub
Stream #0.25[0x1212]: Subtitle: pgssub
Stream #0.26[0x1213]: Subtitle: pgssub
Stream #0.27[0x1214]: Subtitle: pgssub
Stream #0.28[0x1215]: Subtitle: pgssub
Stream #0.29[0x1216]: Subtitle: pgssub
Stream #0.30[0x1217]: Subtitle: pgssub
Stream #0.31[0x1218]: Subtitle: pgssub
Stream #0.32[0x1219]: Subtitle: pgssub
Stream #0.33[0x121a]: Subtitle: pgssub
Stream #0.34[0x1a00]: Data: [162][0][0][0] / 0x00A2
Stream #0.35[0x1a01]: Data: [162][0][0][0] / 0x00A2
Stream #0.36[0x1b00]: Video: h264, yuv420p, 720x480 [PAR 40:33 DAR 20:11],
23.98 tbr, 90k tbn, 47.95 tbc
Stream #0.37[0x1b01]: Video: h264, yuv420p, 720x480 [PAR 40:33 DAR 20:11],
23.98 tbr, 90k tbn, 47.95 tbc
[buffer @ 0x9aa9c90] w:1920 h:1080 pixfmt:yuv420p
[scale @ 0x9aa7960] w:1920 h:1080 fmt:yuv420p -> w:720 h:480 fmt:yuv420p
flags:0xa0000004
Output #0, matroska, to '/tmp/output.mkv':
Metadata:
encoder : Lavf52.78.1
Stream #0.0: Video: ffv1, yuv420p, 720x480 [PAR 40:33 DAR 20:11], q=2-31,
200 kb/s, 1k tbn, 23.98 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 2 fps= 0 q=0.0 Lsize= 87kB time=0.12 bitrate=5761.1kbits/s
video:87kB audio:0kB global headers:0kB muxing overhead 0.626542%
#>
Sorry for all the noise :( I'm really just trying to get to the core of either
the technical problem or any potential misunderstanding in our exchange,
whatever it turns out to be.
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2156>
________________________________________________