google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

How to support CE-608 in Exoplayer , adaptive_supported = NO #11199

Closed Leena-Sharma-rsys closed 1 year ago

Leena-Sharma-rsys commented 1 year ago

Hi,

I am using a mpeg-dash stream, in which two captions are embedded. I have tried stream with other online players i.e Shaka Player, Bitmovin player, dash-if player. The captions are working fine in all the mentioned platform But not in Exoplayer, On debugging I got the following result in which, mimeType=application/cea-608 is unselected & adaptive_supported is also consist of Value NO Could anyone please help on this, why it is not selected and How can we achieve this Functionality?

2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: tracks [eventTime=1.30, mediaPos=0.00, window=0, period=0 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: MediaCodecVideoRenderer [ 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: Group:0, adaptive_supported=N/A [ 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: [X] Track:0, id=1, mimeType=video/avc, bitrate=787153, codecs=avc1.64001E, res=640x334, fps=25.0, supported=YES 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: MediaCodecAudioRenderer [ 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: Group:0, adaptive_supported=N/A [ 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: [X] Track:0, id=2, mimeType=audio/mp4a-latm, bitrate=96246, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=und, label=und, supported=YES 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: TextRenderer [ 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: Group:0, adaptive_supported=NO [ 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: [ ] Track:0, id=-1:cea608:1, mimeType=application/cea-608, language=en, supported=YES 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: [ ] Track:1, id=-1:cea608:3, mimeType=application/cea-608, language=pt, supported=YES 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: MetadataRenderer [] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: CameraMotionRenderer [] 2023-06-07 14:02:01.167 11677-11677/com.testapp D/EventLogger: ]

Thanks Rsystems

icbaker commented 1 year ago

Based on the logcat snippet, it looks like you just need to select the text track? See https://developer.android.com/guide/topics/media/exoplayer/track-selection

icbaker commented 1 year ago

Closing due to inactivity