Skip to content

.m3u8 subtitle #1722

Description

@henrihallik

Please search the existing issues before filing a new one, including issues that
are closed. When filing a new issue please include all of the following, unless
you're certain that they're not useful for the particular issue being reported.

  • A description of the issue.
  • Steps describing how the issue can be reproduced, ideally in the ExoPlayer
    demo app.
  • A link to content that reproduces the issue. If you don't wish to post it
    publicly, please submit the issue, then email the link to
    dev.exoplayer@gmail.com including the issue number in the subject line.
  • The version of ExoPlayer being used.
  • The device(s) and version(s) of Android on which the issue can be reproduced,
    and how easily it reproduces. If possible, please test on multiple devices and
    Android versions.
  • A bug report taken from the device just after the issue occurs, attached as a
    file. A bug report can be captured using "adb bugreport". Output from "adb
    logcat" or a log snippet is not sufficient.

Activity

  1. AquilesCanta commented on Aug 5, 2016

    @AquilesCanta
    Contributor

    There is not enough information in the title for us to know what the issue is. You should also replace the issue template with the information it requires. Please, open a new issue.

  2. henrihallik commented on Aug 5, 2016

    @henrihallik
    Author

    Hi, i read about exoplayer supporting .srt subtitles and found code about how to enable it from here http://emby.media/community/index.php?/topic/3688-hls-streaming-video-supports-subtitles/. But as i was looking more into the topic i found that .m3u8 can have subtitle metadata in it:
    for example if you open the https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8 in per say notepad it contains:
    #EXTM3U

    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="bipbop_audio",LANGUAGE="eng",NAME="BipBop Audio 1",AUTOSELECT=YES,DEFAULT=YES
    #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="bipbop_audio",LANGUAGE="eng",NAME="BipBop Audio 2",AUTOSELECT=NO,DEFAULT=NO,URI="alternate_audio_aac_sinewave/prog_index.m3u8"

    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="en",URI="subtitles/eng/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English (Forced)",DEFAULT=NO,AUTOSELECT=NO,FORCED=YES,LANGUAGE="en",URI="subtitles/eng_forced/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Français",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="fr",URI="subtitles/fra/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Français (Forced)",DEFAULT=NO,AUTOSELECT=NO,FORCED=YES,LANGUAGE="fr",URI="subtitles/fra_forced/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Español",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="es",URI="subtitles/spa/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Español (Forced)",DEFAULT=NO,AUTOSELECT=NO,FORCED=YES,LANGUAGE="es",URI="subtitles/spa_forced/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="日本語",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="ja",URI="subtitles/jpn/prog_index.m3u8"
    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="日本語 (Forced)",DEFAULT=NO,AUTOSELECT=NO,FORCED=YES,LANGUAGE="ja",URI="subtitles/jpn_forced/prog_index.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=263851,CODECS="mp4a.40.2, avc1.4d400d",RESOLUTION=416x234,AUDIO="bipbop_audio",SUBTITLES="subs"
    gear1/prog_index.m3u8
    #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=28451,CODECS="avc1.4d400d",URI="gear1/iframe_index.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=577610,CODECS="mp4a.40.2, avc1.4d401e",RESOLUTION=640x360,AUDIO="bipbop_audio",SUBTITLES="subs"
    gear2/prog_index.m3u8
    #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=181534,CODECS="avc1.4d401e",URI="gear2/iframe_index.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=915905,CODECS="mp4a.40.2, avc1.4d401f",RESOLUTION=960x540,AUDIO="bipbop_audio",SUBTITLES="subs"
    gear3/prog_index.m3u8
    #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=297056,CODECS="avc1.4d401f",URI="gear3/iframe_index.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=1030138,CODECS="mp4a.40.2, avc1.4d401f",RESOLUTION=1280x720,AUDIO="bipbop_audio",SUBTITLES="subs"
    gear4/prog_index.m3u8
    #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=339492,CODECS="avc1.4d401f",URI="gear4/iframe_index.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=1924009,CODECS="mp4a.40.2, avc1.4d401f",RESOLUTION=1920x1080,AUDIO="bipbop_audio",SUBTITLES="subs"
    gear5/prog_index.m3u8
    #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=669554,CODECS="avc1.4d401f",URI="gear5/iframe_index.m3u8"

    #EXT-X-STREAM-INF:BANDWIDTH=41457,CODECS="mp4a.40.2",AUDIO="bipbop_audio",SUBTITLES="subs"
    gear0/prog_index.m3u8

    full thread here http://emby.media/community/index.php?/topic/3688-hls-streaming-video-supports-subtitles/.
    and if i run this stream in Quicktime player on my mac i can select subtitles.

    Does android exoplayer support this type of subtitles?

  3. AquilesCanta commented on Aug 5, 2016

    @AquilesCanta
    Contributor

    Yes, this is already supported in exoplayer. You can chose any of the subtitles declared in the master playlist. This same HLS sample is available in the DemoApp, so you can have a look there.

  4. henrihallik commented on Aug 5, 2016

    @henrihallik
    Author

    Hi, thanks for quick reply. Was about to ask where i get the demo app, but
    found it already. https://google.github.io/ExoPlayer/guide.html Thanks!

    On Fri, Aug 5, 2016 at 1:21 PM, Santiago Seifert notifications@github.com
    wrote:

    Yes, this is already supported in exoplayer. You can chose any of the
    subtitles declared in the master playlist. This same HLS sample is
    available in the DemoApp, so you can have a look there.

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub
    #1722 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AArERSCraBgHJsQRGwZoJfHNeT4AW2slks5qcw6tgaJpZM4JdiKh
    .

  5. locked and limited conversation to collaborators on Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions