Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: KDE- adding english subtitles - avi to mp4

  1. #1

    Default KDE- adding english subtitles - avi to mp4

    I have "The Witcher" bonus videos, in another language. I can use VLC-gtk to play them with English subtitles.

    I have Avidemux-gtk and Handbrake-gtk. Using VLC-gtk, I know the basics of conversion from AVI to MP4 and ogg to mp3 - 192k bitrate.

    I can do some basic ffmpeg command line conversions.


    Video AVI format: H.265 + MP3 128kbs 2 channels 44100khz

    Subtitles: .sub and .idx


    In VLC-gtk convert, I can add subtitles, but it's in all languages all one on top of the other. I need to overlay only English subtitles - convert avi to mp4 with English subtitles.


    According web sources, ffmpeg can add subtitles, but only in .srt format. There are other examples using different commands, such as mplayer and mencoder.

    Which command should I use? Format? Help....

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,846
    Blog Entries
    2

    Default Re: KDE- adding english subtitles - avi to mp4

    You say you already have Handbrake installed.
    That'd probably the easiest way to re-encode with your captions file. I know Handbrake supports SRT, IIRC likely supports other formats as well. Changing the container format isn't required.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: KDE- adding english subtitles - avi to mp4

    Quote Originally Posted by tsu2 View Post
    You say you already have Handbrake installed.
    That'd probably the easiest way to re-encode with your captions file. I know Handbrake supports SRT, IIRC likely supports other formats as well. Changing the container format isn't required.

    TSU

    OK, how do I convert sub or idx to srt format? Handbrake documentation: https://handbrake.fr/docs/en/1.2.0/

    It mentions "add subtitles" features, but not how to convert subtitles. Link?

  4. #4

    Default Re: KDE- adding english subtitles - avi to mp4

    I went into vlc-gtk preferences and set the language, but the "bottom position" overlaps some text already enbedded. I need more control over the position.

    I can still try to convert the subtitles to get more control over position.

    Can use the command line vlc to adjust the position of subtitles?

  5. #5

    Default Re: KDE- adding english subtitles - avi to mp4

    Quote Originally Posted by lord_valarian View Post
    OK, how do I convert sub or idx to srt format? Handbrake documentation: https://handbrake.fr/docs/en/1.2.0/

    It mentions "add subtitles" features, but not how to convert subtitles. Link?
    You could always try an online converter. e.g. https://subtitletools.com/convert-sub-idx-to-srt-online

  6. #6
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,576

    Default Re: KDE- adding english subtitles - avi to mp4

    do you even need to convert the video?
    You could just use a tool like mkvtoolnix and remux the video (into a modern mkv container) with the subtitles added. Then you can just turn the subtitles on and off as needed.

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,846
    Blog Entries
    2

    Default Re: KDE- adding english subtitles - avi to mp4

    Quote Originally Posted by lord_valarian View Post
    OK, how do I convert sub or idx to srt format? Handbrake documentation: https://handbrake.fr/docs/en/1.2.0/

    It mentions "add subtitles" features, but not how to convert subtitles. Link?
    First thing I'd do is run a test on the files you already have.
    I only know that srt is supported and works, but IIRC Handbrake is fuzzy about if any other format will work.

    Edit...
    It seems that Handbrake supports SRT and SSA plus some other formats that are likely integrated into a commercial codec.
    https://handbrake.fr/docs/en/latest/...subtitles.html

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  8. #8

    Default Re: KDE - adding english subtitles - avi to mp4

    Quote Originally Posted by farcusnz View Post
    do you even need to convert the video?
    You could just use a tool like mkvtoolnix and remux the video (into a modern mkv container) with the subtitles added. Then you can just turn the subtitles on and off as needed.
    I have an old blueray player with usb port that can play mp4 files. So, I need to convert from avi to mp4. Using various methods, I've converted many files.

  9. #9
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,576

    Default Re: KDE - adding english subtitles - avi to mp4

    Quote Originally Posted by lord_valarian View Post
    I have an old blueray player with usb port that can play mp4 files. So, I need to convert from avi to mp4. Using various methods, I've converted many files.
    if you do need to convert them, the easiest way (imo) is still to mux the mp4 file, together with the subtitle into an mkv container using mkvtoolnix
    It's simply a matter of dragging your video file and subtitle file(s) into mkvtoolnix then muxing together. Takes about 10 seconds for your average length movie.
    the problem with hard coding them is that you wont be able to change the font size or even turn them off after they have been coded in.

  10. #10
    Join Date
    Jul 2010
    Location
    Uut t'oosten van't laand
    Posts
    104

    Default Re: KDE- adding english subtitles - avi to mp4

    Go online and download an .srt file with the English subtitles. Change the name of the file so it matches the name of the video file and place it in the same directory. Then play. Set the video player to use the .srt file.

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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