ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

EIA-608 closed captions not displayed

Open dhir-pratap opened this issue 11 years ago • 11 comments

We have a video which has 4 CC chanels. CC1 and CC2 are EIA-608 where as CC3 and CC4 are EIA-708. We are able to display the CC using VLC or other media player but the Exo player fails to display them. Going through the code we found that the Eia608Parser Class has a 'parseHeader' method, which performs the check '(payloadType != PAYLOAD_TYPE_CC)'. This check is failing for our video. The expected value is 4 but we are getting 1.

Can you tell the scenarios in which this will happen? What can we do to fix this issue?

dhir-pratap avatar Feb 16 '15 09:02 dhir-pratap

payloadType=1 is pic_timing, which is unrelated to subtitles. So I'm not sure that what you're seeing is actually the subtitle, and it's likely that something else is going wrong. Could you provide a publicly accessible test stream to allow us to reproduce the issue?

ojw28 avatar Feb 17 '15 00:02 ojw28

Hi,

Can you please share your email id, so that we can send you the production url. At present we don't have any test stream url to share.

Thanks,

tringhub avatar Feb 17 '15 17:02 tringhub

Please use olly.exoplayer [at] gmail.com

[This is a throwaway account for use here].

ojw28 avatar Feb 18 '15 00:02 ojw28

Thanks for the streams. I made some progress debugging the issue. It seems there are a few problems:

  1. We don't unescape the sei_rbsp before we try to parse it.
  2. We don't handle the case of multiple sei_message entries inside an sei_rbsp

When those are fixed, I was able to see captions, although they appeared to be unrelated to what was actually on the screen. I'll wait for the streams to go live again and see if the captions work correctly.

ojw28 avatar Feb 18 '15 15:02 ojw28

Thanks for the update.

Since it is live stream, the audio and caption won't be in sync, There would be a delay of 5 to 6 secs. To verify whether the captions are displaying fine with exo player , you can paste the url in Safari (either web Mac or any iOS device) and play the video there and compare it with Exoplayer

Thanks,

On Wed, Feb 18, 2015 at 8:38 PM, ojw28 [email protected] wrote:

Thanks for the streams. I made some progress debugging the issue. It seems there are a few problems:

  1. We don't unescape the sei_rbsp before we try to parse it.
  2. We don't handle the case of multiple sei_message entries inside an sei_rbsp

When those are fixed, I was able to see captions, although they appeared to be unrelated to what was actually on the screen. I'll wait for the streams to go live again and see if the captions work correctly.

— Reply to this email directly or view it on GitHub https://github.com/google/ExoPlayer/issues/295#issuecomment-74879077.

tringhub avatar Feb 18 '15 17:02 tringhub

I have this working now, I think. We'll push a fix later today or tomorrow, and do a bug-fix release into master too. The issues were as described above, plus an off-by-one error fixed in https://github.com/google/ExoPlayer/commit/abac6b7dd6662bb4893566a4a04bf9804ee0599d.

ojw28 avatar Feb 18 '15 19:02 ojw28

Thanks for the update, will check and let you know if it is working fine.

---------- Forwarded message ---------- From: ojw28 [email protected] Date: Thu, Feb 19, 2015 at 5:05 PM Subject: Re: [ExoPlayer] EIA-608 closed captions not displayed (#295) To: google/ExoPlayer [email protected] Cc: tringhub [email protected]

Closed #295 https://github.com/google/ExoPlayer/issues/295.

— Reply to this email directly or view it on GitHub https://github.com/google/ExoPlayer/issues/295#event-238311929.

tringhub avatar Feb 19 '15 17:02 tringhub

I have verified the CC. It is working.

dhir-pratap avatar Feb 23 '15 08:02 dhir-pratap

Hi @dhir-pratap, @ojw28 are you able to see multiple CC inside exoplayer? Because I have try to play this video on Exoplayer: https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8 that have multiple CC tracks and in the sample app undex text I see only one track with name unknown.

Any idea?

Thanks Steve

steve6 avatar Jan 13 '16 16:01 steve6

The captions in that sample are WebVTT, not EIA-608. The issue that's tracking listing captions of that type is #151.

ojw28 avatar Jan 13 '16 16:01 ojw28

Thank you @ojw28 fow the answer it's clear. Do you have a sample stream with inside multiple CC EIA-608? I need it for some test.

Thank you.

steve6 avatar Jan 13 '16 23:01 steve6