Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPEG-TS: Support Mpeg-4 Part-2 streams #5107

Closed
chakravarthidantu opened this issue Nov 15, 2018 · 6 comments
Closed

MPEG-TS: Support Mpeg-4 Part-2 streams #5107

chakravarthidantu opened this issue Nov 15, 2018 · 6 comments

Comments

@chakravarthidantu
Copy link

Before filing an issue:

  • Search existing issues, including issues that are closed.
  • Consult our FAQs, supported devices and supported formats pages. These can be
    found at https://google.github.io/ExoPlayer/.
  • Rule out issues in your own code. A good way to do this is to try and
    reproduce the issue in the ExoPlayer demo app.
  • This issue tracker is intended for bugs, feature requests and ExoPlayer
    specific questions. If you're asking a general Android development question,
    please do so on Stack Overflow.

When reporting a bug:

Fill out the sections below, leaving the headers but replacing the content. If
you're unable to provide certain information, please explain why in the relevant
section. We may close issues if they do not include sufficient information.

Issue description

HLS url is not playing in exo player, only audio is playing. Video track is not rendered.

Reproduction steps

Use {
"name": "HLS Test",
"uri": "http://vod.apsfl.co.in:8888/hls1/Teluguone/Seema_Simham/index.m3u8"
}
in mediaexolist.json under HLS section and start playback.

Link to test content

http://vod.apsfl.co.in:8888/hls1/Teluguone/Seema_Simham/index.m3u8

Version of ExoPlayer being used

2.9.0

Device(s) and version(s) of Android being used

Tested on Android versions - 5.1, 7.0 and 8.0

A full bug report captured from the device

Exo_player_VOD_issue.txt

@ojw28
Copy link
Contributor

ojw28 commented Nov 19, 2018

Note - More test streams are in the ref'd issue (which may or may not be exactly the same issue - it's worth checking those ones too).

@tonihei
Copy link
Collaborator

tonihei commented Nov 19, 2018

Could be that the ref'd issue is different after all. This stream (#5107) apparently doesn't detect a video track at all, whereas the other one (#5108) detects a track but only shows a black screen.

@chakravarthidantu
Copy link
Author

Do I have any update on this issue. We are eagerly waiting for your feedback.

@AquilesCanta
Copy link
Contributor

It would seem to me that the video in [1] uses a stream type that we don't support. I'll mark as an enhancement and will have a look as soon as I have some time. @chakravarthidantu you are also welcome to send a pull request for adding support.

[1] http://vod.apsfl.co.in:8888/hls1/Teluguone/Seema_Simham/index.m3u8

@chakravarthidantu
Copy link
Author

Even though the stream type is not supported, at least video track should appear right. If video track is rendered and exo player dont have support for that format, I can understand, but how to solve video track issue.

Do you have any solution to get video track to be rendered by exo player (even if playback fails).

@AquilesCanta
Copy link
Contributor

We don't support as in ExoPlayer's TS extractor doesn't support. The video track is not detected by ExoPlayer, and implementing extraction of this type of track (for future reference [1]) might not be a trivial task. MP4-part 2 has some similarities with h263 (see #1603) on sample level, from what I've seen. But I don't know if extraction has any overlapping work to be done. I cannot look into this for the time being, unfortunately.

[1] https://en.wikipedia.org/wiki/MPEG-4_Part_2

@ojw28 ojw28 changed the title Unable to play HLS video in exoplayer, only audio no video. MPEG-TS: Support Mpeg-4 Part-2 streams Jul 9, 2019
kim-vde pushed a commit that referenced this issue Jul 13, 2020
The new reader is named H263Reader as it handles H.263 streams, but
MPEG-4 Part 2 streams are also intended to be handled. The reader's
output format MIME type is video/mp4v as the H.263 streams can be
decoded by decoders supporting this MIME type.

The implementation is based on the framework implementation for
extracting MPEG-4 video in MPEG-TS
(https://cs.android.com/android/platform/superproject/+/master:frameworks/av/media/libstagefright/mpeg2ts/ESQueue.cpp;l=1825;drc=86e363c1fac27302ca4ae33e73296f7797672995)
and is similar to the existing H262Reader.

Issue: #1603
Issue: #5107
PiperOrigin-RevId: 320565337
@ojw28 ojw28 closed this as completed Sep 12, 2020
@google google locked and limited conversation to collaborators Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants