google / google/ExoPlayer

Unable to play H264 50 tps Video

Open
#10,910 4 comments 0 reactions 1 assignee Assigned to @rohitjoins View on GitHub
needs triage question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I am trying to play a HLS manifest live stream which is playable in VLC for Android. Its also playable in browser with just hls.js, also playable with ffplay as well.
Stream audio is MPEG-L2 and Video is h264. Attached here a sample ts segment for inspection.
[53-05280.zip](https://github.com/google/ExoPlayer/files/10370118/53-05280.zip)

### FFMPEG probe:
Program 0
Metadata:
variant_bitrate : 4030000
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 4030000
Stream #0:1: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 96 kb/s
Metadata:
variant_bitrate : 4030000

Now, I am trying to play same HLS playlist with exoplayer demo.
Exoplayer shows a black screen without any audio for the same stream.
If I select only the audio I can hear audio just fine.
I even tried with the NDK compiled FFMPEG extensions even though its just for audio and audio is playing fine.
With extension decoders preferred it behaves exactly same.

Exoplayer does not give an error and no error logs etc.

I am not sure if I am missing any special configuration as audio and video codecs seem all supported.

If anyone interested I can generate a time window valid HLS stream url for testing.
Thanks a ton for the devs of this project.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.