Opened 2 weeks ago

Closed 2 weeks ago

Last modified 2 weeks ago

#6817 closed defect (fixed)

scale2ref produce stuttering with HD MPEG (HD-DVD, EVO)

Reported by: Sami32 Owned by:
Priority: minor Component: avfilter
Version: git-master Keywords: scale2ref
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Rescaling the DVBSUB for burning it in a HD MPEG file, give a video that play with stuttering. It doesn't do that with MKV.
Doesn't give issue if scale2ref is removed, but the subtitle is then not correctly sized. -canvas_size didn't worked.

How to reproduce:
% ffmpeg -i "F:\!MEDIA_TEST_FILES\UMS Video Testing Suite (20150121)\TESTS\INTERNAL SUBTITLES\DVBSUB_.mkv" -filter_complex [0:v]scale=iw*min(1920/iw\,1080/ih):ih*min(1920/iw\,1080/ih)[0v];[0:s:0][0v]scale2ref[sub][video];[video][sub]overlay -sn -an -map_metadata -1 -bufsize 1835k -maxrate 9800k -muxrate 9800k -g 25 -qmax 7 -qmin 2 -c:v mpeg2video -f mpeg NUL

[Parsed_scale_0 @ 07970100] Setting 'w' to value 'iw*min(1920/iw,1080/ih)'
[Parsed_scale_0 @ 07970100] Setting 'h' to value 'ih*min(1920/iw,1080/ih)'
[Parsed_scale_0 @ 07970100] w:iw*min(1920/iw,1080/ih) h:ih*min(1920/iw,1080/ih) flags:'bilinear' interl:0
[Parsed_scale2ref_1 @ 07970a60] w:iw h:ih flags:'bilinear' interl:0
[graph 0 input from stream 0:0 @ 07990d80] Setting 'video_size' to value '720x576'
[graph 0 input from stream 0:0 @ 07990d80] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 07990d80] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 07990d80] Setting 'pixel_aspect' to value '64/45'
[graph 0 input from stream 0:0 @ 07990d80] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 07990d80] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 07990d80] w:720 h:576 pixfmt:yuv420p tb:1/1000 fr:25/1 sar:64/45 sws_param:flags=2
[matroska,webm @ 07941a40] sub2video: using 720x576 canvas
[graph 0 input from stream 0:2 @ 0799f840] Setting 'video_size' to value '720x576'
[graph 0 input from stream 0:2 @ 0799f840] Setting 'pix_fmt' to value '28'
[graph 0 input from stream 0:2 @ 0799f840] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:2 @ 0799f840] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:2 @ 0799f840] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:2 @ 0799f840] w:720 h:576 pixfmt:bgra tb:1/1000 fr:0/1 sar:0/1 sws_param:flags=2
[format @ 079a0220] Setting 'pix_fmts' to value 'yuv420p|yuv422p'
[AVFilterGraph @ 07941800] query_formats: 7 queried, 7 merged, 0 already done, 0 delayed
[Parsed_scale_0 @ 07970100] w:720 h:576 fmt:yuv420p sar:64/45 -> w:1350 h:1080 fmt:yuv420p sar:64/45 flags:0x2
[Parsed_scale2ref_1 @ 07970a60] w:1350 h:1080 fmt:yuv420p sar:64/45 -> w:1350 h:1080 fmt:yuva420p sar:0/1 flags:0x2
[Parsed_overlay_2 @ 07990bc0] main w:1350 h:1080 fmt:yuv420p overlay w:1350 h:1080 fmt:yuva420p
[Parsed_overlay_2 @ 07990bc0] [framesync @ 07970b00] Selected 1/1000 time base
[Parsed_overlay_2 @ 07990bc0] [framesync @ 07970b00] Sync level 2
[mpeg2video @ 07947ac0] intra_quant_bias = 96 inter_quant_bias = 0
Output #0, vob, to 'NUL':
  Metadata:
    encoder         : Lavf58.0.100
    Stream #0:0, 0, 1/90000: Video: mpeg2video (Main), 1 reference frame, yuv420p, 1350x1080 [SAR 64:45 DAR 16:9], 0/1, q=2-7, 200 kb/s, 0.75 fps, 90k tbn, 0.75 tbc (default)
    Metadata:
      encoder         : Lavc58.0.100 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/200000 buffer size: 1835000 vbv_delay: -1
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_overlay_2 @ 07990bc0] n:1.000000 t:0.403000 pos:10316.000000 x:0.000000 xi:0 y:0.000000 yi:0
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_overlay_2 @ 07990bc0] n:2.000000 t:0.443000 pos:105819.000000 x:0.000000 xi:0 y:0.000000 yi:0
[vob @ 079b4100] First SCR: 0 First DTS: 45000
[Parsed_overlay_2 @ 07990bc0] n:3.000000 t:0.483000 pos:129782.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:4.000000 t:0.523000 pos:81686.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 0
[Parsed_overlay_2 @ 07990bc0] n:5.000000 t:0.563000 pos:177115.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 0
frame=    2 fps=0.0 q=6.2 size=      46kB time=--1.33 bitrate=N/A dup=0 drop=2 speed=N/A    
[Parsed_overlay_2 @ 07990bc0] n:6.000000 t:0.603000 pos:201078.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 0
[Parsed_overlay_2 @ 07990bc0] n:7.000000 t:0.643000 pos:152982.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 0
[Parsed_overlay_2 @ 07990bc0] n:8.000000 t:0.683000 pos:248395.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 0
[Parsed_overlay_2 @ 07990bc0] n:9.000000 t:0.723000 pos:272542.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:10.000000 t:0.763000 pos:224446.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:11.000000 t:0.803000 pos:361332.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:12.000000 t:0.843000 pos:363398.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
frame=    2 fps=1.8 q=6.2 size=      46kB time=--1.33 bitrate=N/A dup=0 drop=9 speed=N/A    
[Parsed_overlay_2 @ 07990bc0] n:13.000000 t:0.883000 pos:295744.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:14.000000 t:0.923000 pos:391039.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:15.000000 t:0.963000 pos:415186.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:16.000000 t:1.003000 pos:367078.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:17.000000 t:1.043000 pos:462503.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:18.000000 t:1.083000 pos:486478.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
frame=    2 fps=1.2 q=6.2 size=      46kB time=--1.33 bitrate=N/A dup=0 drop=15 speed=N/A    
[Parsed_overlay_2 @ 07990bc0] n:19.000000 t:1.123000 pos:438554.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:20.000000 t:1.163000 pos:533799.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:21.000000 t:1.203000 pos:557786.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:22.000000 t:1.243000 pos:509846.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 2 from stream 0 at ts 1
[vob @ 079b4100] buffer underflow st=0 bufi=1713 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=3737 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=5761 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=7785 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=9809 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=11833 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=13857 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=15881 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=17905 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=19929 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=21953 size=24665
[vob @ 079b4100] buffer underflow st=0 bufi=23977 size=24665
[Parsed_overlay_2 @ 07990bc0] n:23.000000 t:1.283000 pos:646772.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:24.000000 t:1.323000 pos:648834.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
frame=    3 fps=1.4 q=2.0 size=      70kB time=0.00 bitrate=52130909.1kbits/s dup=0 drop=20 speed=4.99e-006x    
[Parsed_overlay_2 @ 07990bc0] n:25.000000 t:1.363000 pos:581172.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:26.000000 t:1.403000 pos:676467.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:27.000000 t:1.443000 pos:700610.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:28.000000 t:1.483000 pos:652514.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:29.000000 t:1.523000 pos:747931.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:30.000000 t:1.563000 pos:771911.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:31.000000 t:1.603000 pos:723794.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
frame=    3 fps=1.1 q=2.0 size=      70kB time=0.00 bitrate=52130909.1kbits/s dup=0 drop=27 speed=4.06e-006x    
[Parsed_overlay_2 @ 07990bc0] n:32.000000 t:1.643000 pos:819228.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:33.000000 t:1.683000 pos:843211.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:34.000000 t:1.723000 pos:795279.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:35.000000 t:1.763000 pos:932229.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:36.000000 t:1.803000 pos:934295.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:37.000000 t:1.843000 pos:866605.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:38.000000 t:1.883000 pos:961924.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
frame=    3 fps=0.9 q=2.0 size=      70kB time=0.00 bitrate=52130909.1kbits/s dup=0 drop=34 speed=3.36e-006x    
[Parsed_overlay_2 @ 07990bc0] n:39.000000 t:1.923000 pos:986067.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:40.000000 t:1.963000 pos:937975.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:41.000000 t:2.003000 pos:1033388.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 1
[Parsed_overlay_2 @ 07990bc0] n:42.000000 t:2.043000 pos:1057347.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:43.000000 t:2.083000 pos:1009255.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:44.000000 t:2.123000 pos:1104668.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:45.000000 t:2.163000 pos:1128639.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:46.000000 t:2.203000 pos:1080715.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
*** dropping frame 3 from stream 0 at ts 2
frame=    3 fps=0.8 q=2.0 size=      70kB time=0.00 bitrate=52130909.1kbits/s dup=0 drop=42 speed=2.85e-006x    
[Parsed_overlay_2 @ 07990bc0] n:47.000000 t:2.243000 pos:1217633.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:48.000000 t:2.283000 pos:1219699.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:49.000000 t:2.323000 pos:1152029.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:50.000000 t:2.363000 pos:1247328.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:51.000000 t:2.403000 pos:1271471.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:52.000000 t:2.443000 pos:1223375.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:53.000000 t:2.483000 pos:1318629.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
frame=    3 fps=0.7 q=2.0 size=      70kB time=0.00 bitrate=52130909.1kbits/s dup=0 drop=49 speed=2.45e-006x    
[Parsed_overlay_2 @ 07990bc0] n:54.000000 t:2.523000 pos:1342772.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:55.000000 t:2.563000 pos:1294655.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 3 from stream 0 at ts 2
[vob @ 079b4100] buffer underflow st=0 bufi=1326 size=7158
[vob @ 079b4100] buffer underflow st=0 bufi=3350 size=7158
[vob @ 079b4100] buffer underflow st=0 bufi=5374 size=7158
[Parsed_overlay_2 @ 07990bc0] n:56.000000 t:2.603000 pos:1390093.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:57.000000 t:2.643000 pos:1414073.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:58.000000 t:2.683000 pos:1366144.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:59.000000 t:2.723000 pos:1503059.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
frame=    4 fps=0.8 q=2.0 size=      76kB time=1.33 bitrate= 466.5kbits/s dup=0 drop=54 speed=0.266x    
[Parsed_overlay_2 @ 07990bc0] n:60.000000 t:2.763000 pos:1505121.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:61.000000 t:2.803000 pos:1437463.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:62.000000 t:2.843000 pos:1532779.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:63.000000 t:2.883000 pos:1556926.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:64.000000 t:2.923000 pos:1508826.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:65.000000 t:2.963000 pos:1604084.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:66.000000 t:3.003000 pos:1628231.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
frame=    4 fps=0.7 q=2.0 size=      76kB time=1.33 bitrate= 466.5kbits/s dup=0 drop=61 speed=0.239x    
[Parsed_overlay_2 @ 07990bc0] n:67.000000 t:3.043000 pos:1580110.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:68.000000 t:3.083000 pos:1708876.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:69.000000 t:3.123000 pos:1712043.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:70.000000 t:3.163000 pos:1651411.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:71.000000 t:3.203000 pos:1801709.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:72.000000 t:3.243000 pos:1806739.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
frame=    4 fps=0.7 q=2.0 size=      76kB time=1.33 bitrate= 466.5kbits/s dup=0 drop=67 speed=0.218x    
[Parsed_overlay_2 @ 07990bc0] n:73.000000 t:3.283000 pos:1739665.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:74.000000 t:3.323000 pos:1821319.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
[Parsed_overlay_2 @ 07990bc0] n:75.000000 t:3.363000 pos:1843986.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:76.000000 t:3.403000 pos:1810058.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 2
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:77.000000 t:3.443000 pos:1889655.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:78.000000 t:3.483000 pos:1913614.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
frame=    4 fps=0.6 q=2.0 size=      76kB time=1.33 bitrate= 466.5kbits/s dup=0 drop=73 speed=0.202x    
[Parsed_overlay_2 @ 07990bc0] n:79.000000 t:3.523000 pos:1865514.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:80.000000 t:3.563000 pos:1986326.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:81.000000 t:3.603000 pos:2002184.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:82.000000 t:3.643000 pos:1936978.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:83.000000 t:3.683000 pos:2092150.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:84.000000 t:3.723000 pos:2106544.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
frame=    4 fps=0.6 q=2.0 size=      76kB time=1.33 bitrate= 466.5kbits/s dup=0 drop=79 speed=0.186x    
[Parsed_overlay_2 @ 07990bc0] n:85.000000 t:3.763000 pos:2017294.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:86.000000 t:3.803000 pos:2180912.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:87.000000 t:3.843000 pos:2196226.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:88.000000 t:3.883000 pos:2121632.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 4 from stream 0 at ts 3
*** dropping frame 4 from stream 0 at ts 3
[vob @ 079b4100] buffer underflow st=0 bufi=230 size=4246
[vob @ 079b4100] buffer underflow st=0 bufi=2254 size=4246
[Parsed_overlay_2 @ 07990bc0] n:89.000000 t:3.923000 pos:2240782.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:90.000000 t:3.963000 pos:2255941.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
frame=    5 fps=0.6 q=2.0 size=      80kB time=2.67 bitrate= 245.5kbits/s dup=0 drop=84 speed=0.345x    
[Parsed_overlay_2 @ 07990bc0] n:91.000000 t:4.003000 pos:2210758.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:92.000000 t:4.043000 pos:2301053.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:93.000000 t:4.083000 pos:2316931.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:94.000000 t:4.123000 pos:2271577.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:95.000000 t:4.163000 pos:2405533.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:96.000000 t:4.203000 pos:2420479.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
frame=    5 fps=0.6 q=2.0 size=      80kB time=2.67 bitrate= 245.5kbits/s dup=0 drop=90 speed=0.324x    
[Parsed_overlay_2 @ 07990bc0] n:97.000000 t:4.243000 pos:2331301.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:98.000000 t:4.283000 pos:2466171.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:99.000000 t:4.323000 pos:2483685.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:100.000000 t:4.363000 pos:2434123.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:101.000000 t:4.403000 pos:2530665.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:102.000000 t:4.443000 pos:2545787.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
frame=    5 fps=0.6 q=2.0 size=      80kB time=2.67 bitrate= 245.5kbits/s dup=0 drop=96 speed=0.305x    
[Parsed_overlay_2 @ 07990bc0] n:103.000000 t:4.483000 pos:2500089.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:104.000000 t:4.523000 pos:2590903.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:105.000000 t:4.563000 pos:2606213.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:106.000000 t:4.603000 pos:2560875.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:107.000000 t:4.643000 pos:2696607.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:108.000000 t:4.683000 pos:2712101.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 3
[Parsed_overlay_2 @ 07990bc0] n:109.000000 t:4.723000 pos:2620399.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
frame=    5 fps=0.5 q=2.0 size=      80kB time=2.67 bitrate= 245.5kbits/s dup=0 drop=103 speed=0.288x    
[Parsed_overlay_2 @ 07990bc0] n:110.000000 t:4.763000 pos:2759421.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:111.000000 t:4.803000 pos:2776579.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:112.000000 t:4.843000 pos:2726085.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:113.000000 t:4.883000 pos:2824271.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:114.000000 t:4.923000 pos:2839413.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:115.000000 t:4.963000 pos:2792771.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:116.000000 t:5.003000 pos:2885073.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
frame=    5 fps=0.5 q=2.0 size=      80kB time=2.67 bitrate= 245.5kbits/s dup=0 drop=110 speed=0.271x    
[Parsed_overlay_2 @ 07990bc0] n:117.000000 t:5.043000 pos:2900755.000000 x:0.000000 xi:0 y:0.000000 yi:0
[Parsed_overlay_2 @ 07990bc0] n:118.000000 t:5.083000 pos:2854869.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:119.000000 t:5.123000 pos:2992613.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:120.000000 t:5.163000 pos:3008475.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:121.000000 t:5.203000 pos:2915309.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[Parsed_overlay_2 @ 07990bc0] n:122.000000 t:5.243000 pos:3059655.000000 x:0.000000 xi:0 y:0.000000 yi:0
*** dropping frame 5 from stream 0 at ts 4
[vob @ 079b4100] buffer underflow st=0 bufi=7 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=2031 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=4055 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=6079 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=8103 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=10127 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=12151 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=14175 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=16199 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=18223 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=20247 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=22271 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=24295 size=94303
[vob @ 079b4100] buffer underflow st=0 bufi=26319 size=94303

Note: Full log in attachment.

Attachments (1)

ffmpeg-20171108-020346.log (201.6 KB) - added by Sami32 2 weeks ago.
Full_log_#6817

Download all attachments as: .zip

Change History (7)

Changed 2 weeks ago by Sami32

Full_log_#6817

comment:1 Changed 2 weeks ago by Sami32

Worked fine with standard VOB (pal-dvd). Using "-f vob" or "-f mpeg" didn't make any difference.
That could come from my ignorance though.

Source media used: (20 MB, DVBSUB only start around half the sample)
http://wikisend.com/download/218576/DVBSUB_.mkv (link valid for 7 days)

EDIT: The workaround that i found was to not use "scale2ref", but to apply the same scaling filter to the picture subtitle stream ([0:s:0]scale=...).

Last edited 2 weeks ago by Sami32 (previous) (diff)

comment:2 Changed 2 weeks ago by Sami32

Using only "[0:s:0][0:v]scale2ref[sub][video];[video][sub]overlay" without the main video scaling give the same video stuttering output.

comment:3 Changed 2 weeks ago by cehoyos

  • Keywords vob removed

What is your command line supposed to show?

comment:4 follow-up: Changed 2 weeks ago by Sami32

That the following shorter command line without the first scaling filter give the same stuttering video output: (as it will with only:% ffmpeg -i INPUT -filter_complex [0:s:0][0v]scale2ref[sub][video];[video][sub]overlay VOB_OR_MPEG_OR_MPEGTS_OUTPUT parameters)

% ffmpeg -i "F:\!MEDIA_TEST_FILES\UMS Video Testing Suite (20150121)\TESTS\INTERNAL SUBTITLES\DVBSUB_.mkv" -filter_complex [0:s:0][0v]scale2ref[sub][video];[video][sub]overlay -sn -an -map_metadata -1 -bufsize 1835k -maxrate 9800k -muxrate 9800k -g 25 -qmax 7 -qmin 2 -c:v mpeg2video -f mpeg NUL

EDIT: In fact stuttering seem happen as soon as HD MPEG-2 have to be dealed with.

Last edited 2 weeks ago by Sami32 (previous) (diff)

comment:5 in reply to: ↑ 4 Changed 2 weeks ago by cehoyos

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

Replying to Sami32:

That the following shorter command line without the first scaling filter give the same stuttering video output: (as it will with only:% ffmpeg -i INPUT -filter_complex [0:s:0][0v]scale2ref[sub][video];[video][sub]overlay VOB_OR_MPEG_OR_MPEGTS_OUTPUT parameters)

% ffmpeg -i "F:\!MEDIA_TEST_FILES\UMS Video Testing Suite (20150121)\TESTS\INTERNAL SUBTITLES\DVBSUB_.mkv" -filter_complex [0:s:0][0v]scale2ref[sub][video];[video][sub]overlay -sn -an -map_metadata -1 -bufsize 1835k -maxrate 9800k -muxrate 9800k -g 25 -qmax 7 -qmin 2 -c:v mpeg2video -f mpeg NUL

How can a command line that does not produce an output file allow to reproduce a stuttering issue? (Even more so if the console output that explains the issue very well is missing.)

Should be fixed in da99b3f0c90a47210cb802a15366babad22f2c70

comment:6 Changed 2 weeks ago by Sami32

Great. Thank you +1

Note:
I was just sharing more infos, hoping that could help and that the people wanting test it will set the output by themself, as i've already tested it, i only posted one log, thinking that with the sample provided that should be meaning and suffisant.
Ok, i will remember to avoid additional infos or make it more explicit. Thanks for pointing me to my imperfection.

Note: See TracTickets for help on using tickets.