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

Some h264 files will not render any video #4538

Closed
tmm1 opened this issue Jul 19, 2018 · 2 comments
Closed

Some h264 files will not render any video #4538

tmm1 opened this issue Jul 19, 2018 · 2 comments
Assignees

Comments

@tmm1
Copy link

tmm1 commented Jul 19, 2018

Issue description

Some H264 videos (ones that use PAFF interlacing it appears), do not play in ExoPlayer on any device. Other players (like VLC) which also use MediaCodec are able to play these same videos.

mediainfo shows this about the affected files:

Scan type                                : Interlaced
Scan type, store method                  : Separated fields
Scan order                               : Top Field First

Reproduction steps

Add https://s3.amazonaws.com/tmm1/uk-interlaced-h264.ts to media.exolist.json and try to play it.

Version of ExoPlayer being used

r2.8.2 (f7ed789)

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

Tested on SHIELD running API 26, and Amazon FireTV 3rd generation running API 25

A full bug report captured from the device

Happy to provide if necessary, but the issue reproduces easily on any device.

@ojw28
Copy link
Contributor

ojw28 commented Jul 20, 2018

@ojw28 ojw28 self-assigned this Jul 20, 2018
@tmm1
Copy link
Author

tmm1 commented Jul 20, 2018

ExoPlayer will appear to be stuck in the buffering state when asked to play an MPEG-TS file that lacks AUDs or IDR keyframes.

Thanks for the pointer. I confirmed that this sample is missing IDR slices, and setting FLAG_ALLOW_NON_IDR_KEYFRAMES fixes the playback issue.

@tmm1 tmm1 closed this as completed Jul 20, 2018
@google google locked and limited conversation to collaborators Nov 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants