Results 1 to 4 of 4

Thread: Render subtitles to video file?

  1. #1
    Join Date
    Feb 2010
    Location
    Sweden
    Beans
    227
    Distro
    Ubuntu

    Lightbulb Render subtitles to video file?

    I have an .srt file and a video file .mp4. Now I want to render the srt to the video file.

    The reason for this is that I want to upload the video on youtube.

    I would like to also be able to choose a background color behind the subtitles as the video already has some subtitles in an other language at some places.

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Render subtitles to video file?


  3. #3
    Join Date
    Feb 2010
    Location
    Sweden
    Beans
    227
    Distro
    Ubuntu

    Re: Render subtitles to video file?

    Quote Originally Posted by SeijiSensei View Post
    Thanks for the link, though there wasn't much info on how to do it.

    Anyway I managed to do it with mencoder:
    Code:
    mencoder -sub subs.srt -sub-bg-color 0 -sub-bg-alpha 1 -subfont-text-scale 3.5 -subfont-outline 0 -subfont-blur 0 -subcp iso-8857-9 -ovc x264 -oac pcm -o destination.mp4 source.mp4
    -sub subs.srt tells the encoder which subtitle file to use
    -sub-bg-color 0 tells the encoder to use black as the font-background color
    -sub-bg-alpha 1 tells the encoder to use minimum transparency. 0 will make the font-background totally transparent
    -subfont-text-scale 3.5 sets the subtitle font size to a percentage

    All options can be found here.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Render subtitles to video file?

    Quote Originally Posted by Pithikos View Post
    Thanks for the link, though there wasn't much info on how to do it.
    Sometimes I'll answer questions directly, but more often I'll point to some documentation that provides an answer. Looks like that approach worked for you!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •