INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Show if subtitles exist in File library view?  (Read 710 times)

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Show if subtitles exist in File library view?
« on: June 17, 2022, 03:12:25 pm »

Am I missing something?  Is there a way to see if a video has embedded subtitles within it?  I see there's compression, dimensions, bitrates, and more... but nothing for subtitles?

I've got a bunch of mkv files of movies and most of them have subtitles in them.  The issue is "what kind" of subtitles, as not all are equally supported.

I've loved using MC as my 'swiss army knife' for wrangling media, and was hoping there'd be an easy way to see this.  From what little I've learned about subtitles... yeah, it's not as "easy" as you'd first guess.

Anyway, my question is can I get an indicator of whether or not a given video file has subtitles in it for filtering in the File library view?  A bonus would be showing what kinds of subtitles are there.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Show if subtitles exist in File library view?
« Reply #1 on: June 18, 2022, 04:26:12 am »

You'll need third party tool like MCUtils or jmone's SoT to do that. There are threads for both I think in the third party forum category.
Logged

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: Show if subtitles exist in File library view?
« Reply #2 on: June 18, 2022, 07:32:51 am »

You'll need third party tool like MCUtils or jmone's SoT to do that. There are threads for both I think in the third party forum category.
Ah, thanks for the suggestions. 
MCUtils: https://yabb.jriver.com/interact/index.php?topic=100449.0
SoT: https://yabb.jriver.com/interact/index.php/topic,106802.0.html

I realize this isn't something most normal folks would ever need out of MC.  But as we all deal with multiple playback devices, transcoding and a random assortment of many different kinds of video files/formats, it's a god-send for me having MC as a 'spreadsheet-like' tool for doing bulk metadata work.  I'll check out those scripts and see what I can come up with.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Show if subtitles exist in File library view?
« Reply #3 on: June 18, 2022, 08:34:58 am »

If all you need is subtitles list then in SoT MediaInfo tool just insert to three boxes
1st box: Subtitles
2nd box: Language
3rd box: Text

and press get mediainfo. It should fetch the subtitle languages to a field "Subtitles" as a list (You need to create the field or use some existing field).

MCUtils needs a little more pre-configuration but after that it is the MVP for getting all sorts of metadata into MC's audio/video files.
Logged

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: Show if subtitles exist in File library view?
« Reply #4 on: June 19, 2022, 06:42:37 am »

I can get the Language out, but is it possible to get the type of the subtitles?  As in, vobsub from the first one, eia-608 from the second.

Code: [Select]
General
Unique ID                                : 242783991224934934449875792516078538801 (0xB6A67EF17436932CBF8E907231F29031)
Complete name                            : \\server\video\Movies\3 Days to Kill\3 Days to Kill.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 5.66 GiB
Duration                                 : 1 h 57 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 928 kb/s
Movie name                               : 3 Days to Kill
Encoded date                             : UTC 2015-08-15 17:36:19
Writing application                      : mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
Writing library                          : libebml v1.3.1 + libmatroska v1.4.2

Video
ID                                       : 1
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings                          : CustomMatrix / BVOP
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Codec ID                                 : V_MPEG2
Codec ID/Info                            : MPEG 1 or 2 Video
Duration                                 : 1 h 57 min
Bit rate mode                            : Variable
Bit rate                                 : 6 472 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 23.976 FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.781
Time code of first frame                 : 00:00:00:00
Time code source                         : Group of pictures header
Stream size                              : 5.29 GiB (93%)
Title                                    : 3 Days to Kill
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 1 h 57 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Delay relative to video                  : -49 ms
Stream size                              : 375 MiB (6%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : VobSub
Muxing mode                              : zlib
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : Picture based subtitle format used on DVDs
Duration                                 : 1 h 56 min
Bit rate                                 : 1 878 b/s
Count of elements                        : 1355
Stream size                              : 1.56 MiB (0%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:03:20.060                             : en:00:03:20.060
00:06:53.300                             : en:00:06:53.300
00:10:47.150                             : en:00:10:47.150
00:15:24.480                             : en:00:15:24.480
00:20:15.450                             : en:00:20:15.450
00:24:30.150                             : en:00:24:30.150
00:28:33.450                             : en:00:28:33.450
00:33:23.150                             : en:00:33:23.150
00:36:50.000                             : en:00:36:50.000
00:39:29.630                             : en:00:39:29.630
00:43:11.150                             : en:00:43:11.150
00:48:16.600                             : en:00:48:16.600
00:52:08.600                             : en:00:52:08.600
00:56:35.600                             : en:00:56:35.600
01:07:21.150                             : en:01:07:21.150
01:12:31.600                             : en:01:12:31.600
01:18:45.000                             : en:01:18:45.000
01:24:13.150                             : en:01:24:13.150
01:29:35.600                             : en:01:29:35.600
01:36:16.150                             : en:01:36:16.150
01:39:24.180                             : en:01:39:24.180
01:46:32.300                             : en:01:46:32.300
01:49:29.600                             : en:01:49:29.600
01:56:51.300                             : en:01:56:51.300

I have run into a few that use different subtitle types and I'm trying to find them.  Some don't play nicely with all clients.  This was saved from a Tivo DVR:
Code: [Select]
General
ID                                       : 1 (0x1)
Complete name                            : \\server\video\TV Shows\Killing Eve\Killing Eve - 259151.ts
Format                                   : MPEG-TS
File size                                : 3.50 GiB
Duration                                 : 59 min 59 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 8 342 kb/s
Movie name                               : X-Files  The 009 Seg6

Video
ID                                       : 7621 (0x1DC5)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High
Format settings                          : BVOP
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Default
Format settings, GOP                     : Variable
Codec ID                                 : 2
Duration                                 : 59 min 58 s
Bit rate mode                            : Variable
Bit rate                                 : 7 542 kb/s
Maximum bit rate                         : 80.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.121
Time code of first frame                 : 00:00:00:00
Time code source                         : Group of pictures header
Stream size                              : 3.16 GiB (90%)

Audio
ID                                       : 7622 (0x1DC6)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 59 min 59 s
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Delay relative to video                  : -486 ms
Stream size                              : 165 MiB (5%)
Service kind                             : Complete Main

Text #1
ID                                       : 7621 (0x1DC5)-CC1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 59 min 58 s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)
CaptionServiceName                       : CC1

Text #2
ID                                       : 7621 (0x1DC5)-1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 59 min 58 s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #3
ID                                       : 7621 (0x1DC5)-CC1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : SCTE 20
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 59 min 58 s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)
CaptionServiceName                       : CC1

Text #4
ID                                       : 7621 (0x1DC5)-CC3
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : SCTE 20
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 59 min 58 s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)
CaptionServiceName                       : CC3

I tried using SoT against the clip and it does not return the language.

MC 29 will play it and show the subtitles, but I was hoping to change the container to something else for better playback on other devices.  The stumbling block being the subtitles.  I know enough to be dangerous about these, but realize that not all subtitling schemes are equal and some suck more than others when it comes to transcoding/repackaging. 

Logged

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: Show if subtitles exist in File library view?
« Reply #5 on: June 19, 2022, 07:06:30 am »

I'm not surprised SoT didn't return the language, as mediainfo for it doesn't say anything about a language.

AHA!  I changed it to use "Format" for the Data Field and "Text #1" for the Section and, voila, I have EIA-608 in the Subtitles field.  Nice.  It took me a second to realize that SoT is using that third field to narrow down into which section to search for the second field.

Not really a universal solution, but it'll at least help me find these things.  I do not know why BBC America sends the videos with subtitles this way, but it does.  I suppose I'll have to run media info for Text and Format, and then re-run it again when I find ones that don't have a VobSub as the type.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Show if subtitles exist in File library view?
« Reply #6 on: June 19, 2022, 07:06:58 am »

You probably should ask in SoT thread but it could problem that AFAIK SoT trims list to only have one entry of same value and doesn't support combining of two values. So mapping format to particular subtitle index is not possible.

Of course if you just need to know what kind of sub streams there is then you could just create new field eg "Subtitle Formats" and add that to mediainfo parser making the entries like this:
1. Subtitles;Subtitle Formats
2. Language;Format
3. Text;Text
Logged

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: Show if subtitles exist in File library view?
« Reply #7 on: June 19, 2022, 07:09:06 am »

You probably should ask in SoT thread. Problem is that AFAIK SoT trims list to only have one entry of same value and doesn't support combining of two values. So mapping format to particular subtitle index is not possible. Of course if you just need to know what kind of sub streams there is then you could just create new field eg "Subtitle Formats"
and add that to mediainfo parser making the entries like this:
1. Subtitles;Subtitle Formats
2. Language;Format
3. Text;Text
Yes, you're likely right, I'll likely carry this conversation on over there.  I will probably create another custom field for the Subtitle Format and put the data there.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Show if subtitles exist in File library view?
« Reply #8 on: June 19, 2022, 07:11:52 am »

I'm not surprised SoT didn't return the language, as mediainfo for it doesn't say anything about a language.
If your file doesn't have the metadata for language filled then you need to either add it yourself or manually fill language to MC. I have created "Subtitles (external)" field where I put language which isn't filled to tags or is on external file. Different field is so that SoT/MCUtils doesn't overwrite my manual edit if I read metadata again from file.
Logged

Bill Kearney

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 373
Re: Show if subtitles exist in File library view?
« Reply #9 on: June 19, 2022, 07:14:29 am »

If your file doesn't have the metadata for language filled then you need to either add it yourself or manually fill language to MC. I have created "Subtitles (external)" field where I put language which isn't filled to tags or is on external file. Different field is so that SoT/MCUtils doesn't overwrite my manual edit if I read metadata again from file
Good point, I'll do that.  It's not like I'll need to do this "a lot".  But sometimes when you set weird things like this you tend to forget how/why you did it and then the data gets stepped on later and some /other/ thing you did suddenly breaks.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Show if subtitles exist in File library view?
« Reply #10 on: June 19, 2022, 07:15:37 am »

I actually have three fields for this: Subtitles (mediainfo), Subtitles (external) and Subtitles. First have data read from mediainfo, second is for my manual edits and last is then calculated combination of those first two
Logged
Pages: [1]   Go Up