[FFmpeg-user] How to hardcode subtitles

Andy dssnosher at gmail.com
Tue Mar 24 02:48:01 EET 2020


On Mon, Mar 16, 2020 at 4:04 AM Moritz Barsnick <barsnick at gmx.net> wrote:
>
> On Sun, Mar 15, 2020 at 22:05:47 -0400, Andy wrote:
> > Can someone please shed some light on how to hardcode subtitles onto a file
> > that already has a subtitles(not hardcoded)?
>
> There's a wiki entry explaining this:
>
> https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
>
> Also note the part "If the subtitle is embedded in the container...",
> which is your case.
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


There are 3 subtitles in the file, how do I choose the correct subtitles?
Text #1
ID                                       : 3
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Language                                 : Italian
Default                                  : Yes
Forced                                   : Yes
DURATION                                 : 01:47:24.380000000

Text #2
ID                                       : 4
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Language                                 : Italian
Default                                  : No
Forced                                   : No
DURATION                                 : 01:47:25.755000000

Text #3
ID                                       : 5
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Language                                 : English
Default                                  : No
Forced                                   : No
DURATION                                 : 01:47:25.755000000

Input #0, matroska,webm, from
'LImmortale.2019.BluRay.1080xH264.Ita.AC3.5.1.Sub.Eng.Ita.mkv':
  Metadata:
    title           : Encoded By realDMDJ
    creation_time   : 2020-03-14 08:39:17
    ENCODER         : Lavf58.20.100
  Duration: 01:55:25.15, start: 0.000000, bitrate: 3249 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709), 1920x1080

[SAR 90:67 DAR 160:67], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
    Metadata:
      DURATION        : 01:55:25.130000000
    Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround
      DURATION        : 01:55:25.152000000
    Stream #0:2(ita): Subtitle: ass (default) (forced)
    Metadata:
      DURATION        : 01:47:24.380000000
    Stream #0:3(ita): Subtitle: ass
    Metadata:
      DURATION        : 01:47:25.755000000
    Stream #0:4(eng): Subtitle: ass
    Metadata:
      DURATION        : 01:47:25.755000000


More information about the ffmpeg-user mailing list