New submission from blindbunny <[email protected]>:

I am trying to convert a Bluray title with ffmpeg. On this particular file,
ffmpeg automatically adds a scaling filter, which I cannot get rid of, to scale
the 1080p video stream down to 720x480. Interestingly, the file contains further
video streams that have frame dimensions of 720x480 so maybe that plays a role.
This issue occurs with a current SVN checkout of ffmpeg from 2010-08-09.

On the following command, note that there is no scaling filter specified
explicitely but the ffmpeg output clearly shows that ffmpeg applies a scaling
filter:

#> ffmpeg -i /tmp/misscaling-video.m2ts -vf crop=0:0:1920:1080 -vcodec libx264
-f h264 /tmp/output.h264 -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 @ 0x9ebec70] Didn't get subframe DSYNC
[dca @ 0x9ebf3e0] Didn't get subframe DSYNC
[dca @ 0x9ebfb50] Didn't get subframe DSYNC
[dca @ 0x9ec02c0] Didn't get subframe DSYNC
[mpegts @ 0x9eb95b0] Could not find codec parameters (Data: [162][0][0][0] / 
0x00A2)
[NULL @ 0x9ec11a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ec1910] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ec2080] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed29a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed30c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed37e0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed3f00] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed46b0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed4e20] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed5600] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed5d70] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed64e0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed6c50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed73c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed7b30] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed82a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed8a10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed91c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ed9930] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9eda0a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9eda810] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9edaf80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9edb6f0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9edbe60] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9edc5d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9edcda0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9edd4c0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x9ede3a0] 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 @ 0x9efc5d0] w:1920 h:1080 pixfmt:yuv420p
[scale @ 0x9efc920] w:1920 h:1080 fmt:yuv420p -> w:720 h:480 fmt:yuv420p
flags:0xa0000004
[crop @ 0x9efcd00] x:0 y:0 w:1920 h:1080
[crop @ 0x9efcd00] Output area 0:0:1920:1080 not within the input area
0:0:720:480 or zero-sized
Error opening filters!

The issue remains when I use exlicit stream mapping by appending '-map 0.0' to
the command line.

I'll upload the input file misscaling-video.m2ts to
upload.ffmpeg.org/MPlayer/incoming/issue<issue nr>/

----------
messages: 11610
priority: normal
status: new
substatus: new
title: Incorrect video scaling on file with multiple video streams
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2156>
________________________________________________

Reply via email to