Kodi Community Forum

Full Version: This addon does not find closed captions in mpeg-2 streams from ATSC live TV in USA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
This addon does not find closed captions in mpeg-2 streams from ATSC live TV in USA. Why?
Works for me.
Try,
Settings>Player>Language>Enable parsing for closed captions (True)

Of course subtitle must be enabled.
(2020-09-04, 20:07)LongMan Wrote: [ -> ]Works for me.
Try,
Settings>Player>Language>Enable parsing for closed captions (True)

Of course subtitle must be enabled.
Also just to add to that, I don't know how you are controlling Kodi but you need to press the key or button to enable teletext, not subtitles (even though subtitles must be enabled).

That said Kodi's support of ASTC closed captions kind of sucks; I have recordings of shows where the closed captions play just fine if viewed in VLC but for whatever reason Kodi acts like they aren't there.
(2020-09-05, 00:09)oldtvwatcher Wrote: [ -> ]Also just to add to that, I don't know how you are controlling Kodi but you need to press the key or button to enable teletext, not subtitles (even though subtitles must be enabled).

That said Kodi's support of ASTC closed captions kind of sucks; I have recordings of shows where the closed captions play just fine if viewed in VLC but for whatever reason Kodi acts like they aren't there.

Maybe my setup is different from yours but I don't need to activate teletext for it to work.

With regards to recordings, my DVR recordings closed captions work fine. However, if I download a file with CC, from the network site , it does not work.
I don't need to use teletext either.  As for IPTV they don't often stream raw broadcast streams they are reencoded usually at a much lower bit rate and usually they wont have embedded cc'ing in the mpeg data If available it could be subtitles via the m3u8 file or a separate stream in the ts file

Martin
@emveepee,
I have some with the CC embeded. VLC will show it but not kodi.

Syfy is a good one to test with. The downloads have the closed captions in vlc but not with Kodi.

Cheers
Hallmark is another example with closed captions that show on vlc but not Kodi
@LongMan  your best bet is to show the logs.   ffprobe is also a good tool as it will show there difference between a file with closed captioning

Typical ATSC broadcast
Code:
  Program 1
    Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 16999 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x33](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:2[0x34](enm): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired)
    Stream #0:3[0x35](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s

and alternatives
Code:
  Program 17540
    Stream #0:0[0x19c9]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x19ca](eng): Audio: aac_latm (LC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
    Stream #0:2[0x19ce](eng): Unknown: none ([17][0][0][0] / 0x0011) (visual impaired) (descriptions) (dependent)
    Stream #0:3[0x19cd](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)

Martin
@emveepee
ffprobe results. One for each source

Code:
Debbie Macomber's Mr. Miracle (2014) tt3946792.mkv':
   
ENCODER         : Lavf58.35.100
  Duration: 01:24:01.00, start: 0.000000, bitrate: 4129 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
    Metadata:
      DURATION        : 01:24:01.002000000
    Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      DURATION        : 01:24:00.960000000

12 Monkeys. 3x1 Mother.mkv':
 
Duration: 00:43:39.99, start: 0.100511, bitrate: 4319 kb/s
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, Closed Captions, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 63 kb/s
    Stream #0:2[0x102]: Data: timed_id3 (ID3  / 0x20334449)
Unsupported codec with id 100358 for input stream 2
Perhaps if you remux them to mpeg ts that will solve the issue.  And sorry I don't know how you are playing mkv files via TVH so I can't help further on that.

Martin
These are not streams. Maybe you misunderstood me.
The streams from cable and antenna are fine. Both the livestreams and the PVR recordings show the closed captions as subtitle. No problem there. Even after cutting out the ads and tanscoding to h264, the closed captions still work.

The problem arise from downloads from the network's website. I do this sometimes to avoid having to cut ads and recoding. It is these files which has closed captions that are shown in VLC but not Kodi.

The ffprobe results above are from to such downloaded files.

Cheers,
LongMan
@emveepee,
Does the setting  
Settings>Player>Language>Enable parsing for closed captions (True)  
only apply to PVR or does it applies to all files played by VideoPlayer?
Your posting in the PVR forum might not reach the audience you need to get the developers you want.  I do support an alternate python PVR for NextPVR which uses the Video Player and it does work with closed captioning.  For a further test I just took a typical broadcast file remuxed it to mkv and the closed captioning worked on it via the Video Library (I do use Matrix though).

I don't know how you found legal mkv downloads on the Hallmark or SyFy web sites so I can't help further, but I suggest you create an appropriate thread in the General sub forum for your platform with Kodi debug logs etc.

Martin
I use my cable provider login info.

Cheers.
Looks to me like there are possibly a couple of issues at play here.

1. AIUI in the US Closed Captions in digital TV (ATSC OTA and Cable) are, at least for MPEG2, embedded within the MPEG2 video stream (which I think preserves a few lines of VBI to carry them?) rather than the DVB approach, where they are sent as a separate data stream with it's own PID (either using the World System Teletext character-based Teletext or bitmapped DVB Subtitle formats)

2. Some PVR back-ends that support ATSC tuners, but are largely designed for DVB, may well decode the MPEG2 Closed Captions and send them in a similar way to DVB subtitles, to avoid the Kodi PVR front-end having to decode the CCs - and allowing the same route to be used for both WST and CC subtitles? 

3. CCs carried via on-demand platforms using a totally different approach to the OTA delivery (TTML, SRT and other captioning formats are often used for unicast 'catch-up' subtitles)
Pages: 1 2 3