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

FFmpeg trac at avcodec.org
Wed Sep 21 03:11:50 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):

 Sorry, but I can't figure out how to use scale2ref.

 This example from [https://ffmpeg.org/ffmpeg-filters.html#scale2ref here]:
 {{{
 • Scale a subtitle stream to match the main video in size before
 overlaying
 'scale2ref[b][a];[a][b]overlay'
 }}}
 doesn't work.

 I don't understand how to do something like this with scale2ref:

 {{{
 -filter_complex "[0:v][0:s:0]overlay[out]" -map "[out]"
 }}}

 The closest I've done is this:
 {{{
 -filter_complex "[subteees]scale2ref[0:s:0][0:v];[0:v][0:s:0]overlay[out]"
 -map "[out]"
 }}}
 But I don't know why it works with some names like "sub", "subs",
 "subteees", etc, but not with "ein" for example. But video is very
 pixelated, and runs at 1000 fps!!

 or with one example I found like this:

 {{{
 -filter_complex "[0:s:0][0:v]scale2ref[subs][0:v];[0:v][subs]overlay[out]"
 -map "[out]"
 }}}
 But doesn't even work.

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


More information about the FFmpeg-trac mailing list