[FFmpeg-trac] #5825(avcodec:closed): Vobsub subtitles won't overlay with some MKV

FFmpeg trac at avcodec.org
Fri Sep 30 04:14:31 EEST 2016


#5825: Vobsub subtitles won't overlay with some MKV
-------------------------------------+-------------------------------------
             Reporter:  edumj        |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:  fixed
             Keywords:  dvdsub       |               Blocked By:
  regression                         |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by edumj):

 Any way, I found another bug with VobSubs in this same file.

 Subtitles dissapear again if I use '''crop''' filter, even with no
 cropping:

 {{{
 "ffmpeg" -canvas_size 720x384 -i "%~1" -filter_complex
 "[0:v]crop=720:384:0:0[video];[0:s:0]crop=720:384:0:0[subs];[video][subs]overlay[out]"
 -map "[out]" -map 0:a -f avi -c:v libxvid -b:v 1500k -vtag XVID -c:a
 libmp3lame -b:a 128k "%~n1 crop vobsubs.avi"
 }}}

 and the output:
 {{{
 ffmpeg version N-81696-gd38dff8e Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-
 bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-
 gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b
 --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex
 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-
 amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-
 libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
   libavutil      55. 29.100 / 55. 29.100
   libavcodec     57. 57.100 / 57. 57.100
   libavformat    57. 49.100 / 57. 49.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 62.100 /  6. 62.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, matroska,webm, from 'C:\Users\Edumj\Videos\Pa Probar\DVDRip
 (MKV) con VobSub's\Francis en la Marina (1955) DVDRip DUAL SE by El
 enmascarado del Barça (copy).mkv':
   Metadata:
     ENCODER         : Lavf56.40.101
   Duration: 00:03:02.97, start: 0.000000, bitrate: 1386 kb/s
     Chapter #0:0: start 0.000000, end 84.897000
     Metadata:
       title           : Chapter 1
     Chapter #0:1: start 84.897000, end 180.000000
     Metadata:
       title           : Chapter 2
     Stream #0:0(eng): Video: h264 (Main), yuv420p(tv,
 smpte170m/smpte170m/bt709), 720x384 [SAR 16:15 DAR 2:1], 25 fps, 25 tbr,
 1k tbn, 180k tbc (default)
     Stream #0:1(spa): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
     Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
     Stream #0:3(spa): Subtitle: dvd_subtitle, 720x576
 [avi @ 0480bc00] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
     Last message repeated 2 times
 [null @ 04eaa1c0] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
     Last message repeated 1 times
 Output #0, avi, to
 'E:\MISDOC~1\CONVER~1\_PACON~1\MEDIAI~1\FFD8CF~1\DVDAXS~1\CONFFM~1\\Francis
 en la Marina (1955) DVDRip DUAL SE by El enmascarado del Barça (copy) crop
 vobsubs.avi':
   Metadata:
     ISFT            : Lavf57.49.100
     Chapter #0:0: start 0.000000, end 84.897000
     Metadata:
       title           : Chapter 1
     Chapter #0:1: start 84.897000, end 180.000000
     Metadata:
       title           : Chapter 2
     Stream #0:0: Video: mpeg4 (libxvid) (XVID / 0x44495658), yuv420p,
 720x384 [SAR 16:15 DAR 2:1], q=2-31, 1500 kb/s, 25 fps, 25 tbn, 25 tbc
 (default)
     Metadata:
       encoder         : Lavc57.57.100 libxvid
     Stream #0:1(spa): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000
 Hz, stereo, fltp, 128 kb/s (default)
     Metadata:
       LANGUAGE        : spa
       encoder         : Lavc57.57.100 libmp3lame
     Stream #0:2(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000
 Hz, stereo, fltp, 128 kb/s
     Metadata:
       LANGUAGE        : eng
       encoder         : Lavc57.57.100 libmp3lame
 Output #1, null, to 'nul':
   Metadata:
     encoder         : Lavf57.49.100
     Chapter #1:0: start 0.000000, end 84.897000
     Metadata:
       title           : Chapter 1
     Chapter #1:1: start 84.897000, end 180.000000
     Metadata:
       title           : Chapter 2
     Stream #1:0(eng): Video: wrapped_avframe, yuv420p, 720x384 [SAR 16:15
 DAR 2:1], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
     Metadata:
       LANGUAGE        : eng
       encoder         : Lavc57.57.100 wrapped_avframe
     Stream #1:1(spa): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 (default)
     Metadata:
       LANGUAGE        : spa
       encoder         : Lavc57.57.100 pcm_s16le
 Stream mapping:
   Stream #0:0 (h264) -> crop (graph 0)
   Stream #0:3 (dvdsub) -> crop (graph 0)
   overlay (graph 0) -> Stream #0:0 (libxvid)
   Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
   Stream #0:2 -> #0:2 (aac (native) -> mp3 (libmp3lame))
   Stream #0:0 -> #1:0 (h264 (native) -> wrapped_avframe (native))
   Stream #0:1 -> #1:1 (aac (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 3 times
 [null @ 04eaa1c0] Application provided invalid, non monotonically
 increasing dts to muxer in stream 0: 23 >= 23
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 8 times
 frame=  108 fps=0.0 q=3.0 q=-0.0 size=     771kB time=00:00:04.62
 bitrate=1365.2kbits/s speed=9.25x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame=  204 fps=204 q=2.0 q=-0.0 size=    1740kB time=00:00:08.44
 bitrate=1687.5kbits/s speed=8.43x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame=  309 fps=206 q=3.0 q=-0.0 size=    2543kB time=00:00:12.65
 bitrate=1646.6kbits/s speed=8.42x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame=  404 fps=201 q=3.0 q=-0.0 size=    3551kB time=00:00:16.44
 bitrate=1768.6kbits/s speed= 8.2x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame=  503 fps=201 q=4.0 q=-0.0 size=    4585kB time=00:00:20.41
 bitrate=1839.8kbits/s speed=8.14x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame=  602 fps=200 q=4.0 q=-0.0 size=    5460kB time=00:00:24.38
 bitrate=1834.3kbits/s speed=8.11x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame=  702 fps=200 q=4.0 q=-0.0 size=    6304kB time=00:00:28.37
 bitrate=1820.2kbits/s speed=8.08x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame=  802 fps=200 q=5.0 q=-0.0 size=    7150kB time=00:00:32.36
 bitrate=1809.9kbits/s speed=8.07x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame=  901 fps=200 q=4.0 q=-0.0 size=    7991kB time=00:00:36.33
 bitrate=1801.9kbits/s speed=8.05x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1002 fps=200 q=4.0 q=-0.0 size=    8833kB time=00:00:40.38
 bitrate=1791.9kbits/s speed=8.05x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1096 fps=199 q=4.0 q=-0.0 size=    9603kB time=00:00:44.11
 bitrate=1783.1kbits/s speed=   8x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1195 fps=199 q=3.0 q=-0.0 size=   10410kB time=00:00:48.06
 bitrate=1774.4kbits/s speed=7.99x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 1290 fps=198 q=3.0 q=-0.0 size=   11183kB time=00:00:51.88
 bitrate=1765.8kbits/s speed=7.96x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1389 fps=198 q=3.0 q=-0.0 size=   12061kB time=00:00:55.87
 bitrate=1768.4kbits/s speed=7.96x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1487 fps=198 q=4.0 q=-0.0 size=   13009kB time=00:00:59.79
 bitrate=1782.3kbits/s speed=7.96x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 1574 fps=196 q=5.0 q=-0.0 size=   13810kB time=00:01:03.25
 bitrate=1788.6kbits/s speed=7.89x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1670 fps=196 q=5.0 q=-0.0 size=   14691kB time=00:01:07.09
 bitrate=1793.8kbits/s speed=7.88x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 1768 fps=196 q=4.0 q=-0.0 size=   15537kB time=00:01:11.01
 bitrate=1792.2kbits/s speed=7.87x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 1862 fps=196 q=4.0 q=-0.0 size=   16257kB time=00:01:14.75
 bitrate=1781.6kbits/s speed=7.85x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 1956 fps=195 q=3.0 q=-0.0 size=   16993kB time=00:01:18.54
 bitrate=1772.3kbits/s speed=7.84x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 2052 fps=195 q=3.0 q=-0.0 size=   17816kB time=00:01:22.38
 bitrate=1771.5kbits/s speed=7.83x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 2153 fps=195 q=2.0 q=-0.0 size=   18425kB time=00:01:26.39
 bitrate=1747.0kbits/s speed=7.84x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 2244 fps=195 q=2.0 q=-0.0 size=   19298kB time=00:01:30.04
 bitrate=1755.6kbits/s speed=7.82x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame= 2334 fps=194 q=3.0 q=-0.0 size=   20194kB time=00:01:33.67
 bitrate=1766.0kbits/s speed=7.79x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 2416 fps=193 q=3.0 q=-0.0 size=   20897kB time=00:01:36.93
 bitrate=1766.0kbits/s speed=7.74x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame= 2502 fps=192 q=3.0 q=-0.0 size=   21624kB time=00:01:40.37
 bitrate=1764.8kbits/s speed=7.71x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 8 times
 frame= 2591 fps=192 q=4.0 q=-0.0 size=   22499kB time=00:01:43.93
 bitrate=1773.3kbits/s speed=7.68x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame= 2680 fps=191 q=3.0 q=-0.0 size=   23278kB time=00:01:47.49
 bitrate=1773.9kbits/s speed=7.66x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 2769 fps=191 q=2.0 q=-0.0 size=   23925kB time=00:01:51.03
 bitrate=1765.1kbits/s speed=7.64x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 2848 fps=189 q=4.0 q=-0.0 size=   24617kB time=00:01:54.21
 bitrate=1765.6kbits/s speed= 7.6x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 8 times
 frame= 2932 fps=189 q=3.0 q=-0.0 size=   25426kB time=00:01:57.56
 bitrate=1771.7kbits/s speed=7.57x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 3023 fps=189 q=4.0 q=-0.0 size=   26209kB time=00:02:01.21
 bitrate=1771.3kbits/s speed=7.56x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame= 3115 fps=188 q=4.0 q=-0.0 size=   27046kB time=00:02:04.86
 bitrate=1774.4kbits/s speed=7.55x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 12 times
 frame= 3208 fps=188 q=3.0 q=-0.0 size=   27780kB time=00:02:08.61
 bitrate=1769.4kbits/s speed=7.55x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 3292 fps=188 q=4.0 q=-0.0 size=   28543kB time=00:02:11.96
 bitrate=1771.8kbits/s speed=7.53x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame= 3381 fps=187 q=4.0 q=-0.0 size=   29282kB time=00:02:15.53
 bitrate=1769.9kbits/s speed=7.51x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 7 times
 frame= 3460 fps=187 q=3.0 q=-0.0 size=   29943kB time=00:02:18.68
 bitrate=1768.7kbits/s speed=7.48x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 3547 fps=186 q=4.0 q=-0.0 size=   30711kB time=00:02:22.16
 bitrate=1769.7kbits/s speed=7.47x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 3631 fps=186 q=4.0 q=-0.0 size=   31404kB time=00:02:25.53
 bitrate=1767.7kbits/s speed=7.45x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 3725 fps=186 q=3.0 q=-0.0 size=   32210kB time=00:02:29.29
 bitrate=1767.4kbits/s speed=7.45x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 3819 fps=186 q=4.0 q=-0.0 size=   33024kB time=00:02:33.04
 bitrate=1767.7kbits/s speed=7.45x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 8 times
 frame= 3897 fps=185 q=4.0 q=-0.0 size=   33656kB time=00:02:36.15
 bitrate=1765.6kbits/s speed=7.42x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 8 times
 frame= 3982 fps=185 q=3.0 q=-0.0 size=   34449kB time=00:02:39.57
 bitrate=1768.5kbits/s speed= 7.4x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 11 times
 frame= 4070 fps=185 q=4.0 q=-0.0 size=   35214kB time=00:02:43.09
 bitrate=1768.7kbits/s speed= 7.4x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 4162 fps=185 q=4.0 q=-0.0 size=   35991kB time=00:02:46.76
 bitrate=1768.0kbits/s speed=7.39x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 4247 fps=184 q=3.0 q=-0.0 size=   36692kB time=00:02:50.17
 bitrate=1766.3kbits/s speed=7.38x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 4324 fps=184 q=3.0 q=-0.0 size=   37355kB time=00:02:53.24
 bitrate=1766.3kbits/s speed=7.35x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 10 times
 frame= 4402 fps=183 q=4.0 q=-0.0 size=   38079kB time=00:02:56.36
 bitrate=1768.7kbits/s speed=7.33x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 9 times
 frame= 4487 fps=183 q=3.0 q=-0.0 size=   38794kB time=00:02:59.79
 bitrate=1767.5kbits/s speed=7.32x
 [graph 0 input from stream 0:3 @ 04875880] Changing frame properties on
 the fly is not supported by all filters.
     Last message repeated 1 times
 frame= 4504 fps=183 q=3.0 Lq=-0.0 size=   39250kB time=00:03:03.00
 bitrate=1757.0kbits/s speed=7.43x
 video:34838kB audio:39374kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: unknown
 }}}

 I use '''canvas_size''' to resize subs to video resoulution, although

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5825#comment:27>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list