[mythtv-users] bear of little brain (Greg Oliver)

David Hampton mythtv at dhampton.net
Sun May 28 12:36:54 UTC 2017


On Sun, 2017-05-28 at 13:04 +0800, James Linder wrote:
> > All of my Videos are in mkv containers.  You definitely need the
> > mkv*toolnix apps to manipulate them easily.  For forced subs which
> > I am
> > sure you are referring to probably::
> > 
> > mkvmerge --identify <file>
> > File '<video>': container: Matroska
> > Track ID 0: video (MPEG-4p10/AVC/h.264)
> > Track ID 1: audio (DTS-HD Master Audio)
> > Track ID 2: audio (DTS)
> > Track ID 3: audio (AC-3/E-AC-3)
> > Track ID 4: subtitles (HDMV PGS)
> > Track ID 5: subtitles (HDMV PGS)
> > Track ID 6: subtitles (HDMV PGS)
> > 
> > mkvpropedit <video> --edit track:s1 --set flag-default=0 \
> >    --edit track:s2 --set flag-forced=1 --edit track:s2 --set flag-
> > default=1
> > 
> > s1 is the 1st subtitle track (Track ID 4 from above).  This says
> > make s2
> > track default and forced and removes default from the s1 sub track.
> 
> Greg thanks. If you explain I promise to learn and not bug the list 
> more. What is s1?

The mkvpropedit tool has a alternate method of referring to tracks.
Instead of the liner track number you can specify the type of track
(v=video, a=audio, s=subtitle) and then the index within that type.
Therefore track 's1' is the first subtitle track, which is just an
alternate name for track id 4. The nice thing about the 'tn' numbering
it that it has context to it. Track 's1' always refers to a subtitle
track, where is track '4' could refer to any type track.

> [sandypit] /home/jam [997]% mkvmerge --identify
> /store/Movies/Myth/Lion\ 
> 2016\ 1080p\ WEB-DL\ x264\ AC3-JYK.mkv
> File '/store/Movies/Myth/Lion 2016 1080p WEB-DL x264 AC3-JYK.mkv': 
> container: Matroska
> Track ID 0: video (MPEG-4p10/AVC/h.264)
> Track ID 1: audio (AC-3/E-AC-3)
> Track ID 2: subtitles (SubRip/SRT)
> Chapters: 11 entries

For this file, track 's1' would be an alias for track 2.

David



More information about the mythtv-users mailing list