Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #210200

Re: Converting text subtitles to vobsub

From Teemu Likonen <tlikonen@iki.fi>
Newsgroups linux.debian.user
Subject Re: Converting text subtitles to vobsub
Date 2019-06-21 19:10 +0200
Message-ID <ybvcZ-7r7-3@gated-at.bofh.it> (permalink)
References <ybtEd-6pK-1@gated-at.bofh.it> <ybtNU-6sT-3@gated-at.bofh.it> <ybtXA-6wv-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Michael Lange [2019-06-21 17:44:08+02:00] wrote:

> sure, because I want to be able to control the subtitle's appearance. The
> player in question displays text subtitles, however with a tiny, almost
> unreadable font and doesn't have any option to change this.

The "ass" subtitle format contains data about text's appearance, for
example:

    Style: Default,Arial,16,&Hffffff,&Hffffff, [...]

So you can at least suggest a font and font size as well as colours.
Maybe your player can read such subtitles.

Or if not, you can "burn" your subtitles to the moving picture with
ffmpeg's "subtitles" video filter. Edit a subtitle file like
"subtitles.ass" so that it has "Style" line (see above) with your
preferred font, font size, maybe location coordinates etc. Then
something like this:

    ffmpeg -i original.mp4 -map 0:v:0 -map 0:a:0 \
        -vf subtitles=filename=subtitles.ass \
        -c:v libx264 -crf 22 -c:a copy output.mp4


-- 
/// Teemu Likonen   <https://github.com/tlikonen> //
// PGP: 4E1055DC84E9DFF613D78557719D69D324539450 ///

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 17:30 +0200
  Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-21 17:40 +0200
    Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 17:50 +0200
      Re: Converting text subtitles to vobsub Teemu Likonen <tlikonen@iki.fi> - 2019-06-21 19:10 +0200
        Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-21 19:50 +0200
          Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 23:50 +0200
            Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-22 13:00 +0200
              Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-22 13:30 +0200
        Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 19:50 +0200
    Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-22 00:30 +0200
      Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-22 13:00 +0200
        Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-22 13:50 +0200
        [solved]Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-23 16:40 +0200
          Re: [solved]Re: Converting text subtitles to vobsub mick crane <mick.crane@gmail.com> - 2019-06-24 10:30 +0200
            Re: [solved]Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-24 12:40 +0200
              Re: [solved]Re: Converting text subtitles to vobsub mick crane <mick.crane@gmail.com> - 2019-06-24 15:20 +0200
                Re: [solved]Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-24 20:20 +0200
          Re: [solved]Re: Converting text subtitles to vobsub Stefan Monnier <monnier@iro.umontreal.ca> - 2019-06-24 15:10 +0200
        Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-25 00:50 +0200
  Re: Converting text subtitles to vobsub Reco <recoverym4n@enotuniq.net> - 2019-06-21 20:20 +0200
    Re: Converting text subtitles to vobsub Nicolas George <george@nsup.org> - 2019-06-21 20:30 +0200
    Re: Converting text subtitles to vobsub Michael Lange <klappnase@freenet.de> - 2019-06-21 23:50 +0200

csiph-web