-
Notifications
You must be signed in to change notification settings - Fork 6k
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
.TS streams never start #4861
Comments
This issue is being closed because it does not adhere to our issue template, and/or because it omits information requested in the issue template that is required for us to investigate the problem efficiently. The issue template can be found here. If you’re able to provide complete information as requested in the issue template, please do so below and we’ll re-open the issue. Thanks! |
Issue descriptionCertain .ts streams (the ones we have are European TV) will appear to start to load in Exo but simply never start playing. If the same stream is re-encoded as h264 and delivered via HLS it will play fine. Reproduction stepsAttempt to play one of the included links in ExoPlayer Link to test contenthttps://drive.google.com/open?id=1oe4oX9W4JherAWEQ-pAyT_7pkfJxDBOB Version of ExoPlayer being used2.8.4 Device(s) and version(s) of Android being usedHas happened on every device we've tried all running Android TV anywhere from version 5.1.1 to 8.0. Devices include Nexus Player, Nvidia Shield TV, MiBox 3. |
Still missing the bugreport. |
My device is failing to create one right now so I'll have to get back to you. Just FYI no errors are thrown. Playback simply never starts. Thanks. |
I did also just discover that, if I let the demo app sit long enough trying to load the stream, it does eventually throw an out of memory error.
|
So I have just noticed that the two files use two different codecs. In the first case, it's possible that some of the devices don't have the required codecs. This can be confirmed by providing a full bugreport after playing the file in the demo app. For the second one, it's likely you'll find the answer in the FAQ. |
What are you seeing that is different? As far as I can tell they are both H264 High profile with AC3 audio (both of which are supported by the device). |
Also, the player reports seeing those codecs and that they are supported.
Sorry I cannot supply the full bug file you are requesting. My device is failing to create it (actually failing to create the zip) at this time so I'm trying to provide as much other information as I can. Thanks. |
I think the first one is h.262. For the second one, have you read the FAQ as suggested above? |
What is indicating the first one is mpeg2 to you? This is the output from Exo for that video track:
As for the FAQ, yes I've read it but can you please be more specific as to exactly what you are referring? Also, are you saying the above behavior (just hanging until an OOM error is thrown) would be an indication of an unsupported format? In my experience, that is not what happens in that case. Exo usually throws a nice exception saying it cannot find an extractor for the format. Thanks. |
The first link is false - the 576i file plays flawlessly. The link schould be https://drive.google.com/file/d/1qrpRSzZwf3SXxOVRelIOsxr7KsKrX11O/view?usp=drivesdk |
My apologies. I must have copied the incorrect link. Thanks, puenktchen. |
@ebr11 i guess @AquilesCanta wants to know if you've already tried this:
|
Thanks for ferreting that out. I wonder how we're going to know one of those is the case and which one it is... |
Only by try and error. |
Yeah, I understand. My point is that all streams may not be like our samples and some may be one and others the other so we need a way for the app to figure it out (or know) on its own. Anyway, we can take this discussion to our forums. |
We have a pending line of work to automatically solve this issue. We suspect streams like these include metadata (typically SEI messages) which signals IDR-like behavior, which could be used to replace the FLAG_ALLOW_NON_IDR flag. We haven't manage to allocate time for this though. So, if you have time to do it, feel free to contribute. Either with a pull request, or with information to direct the investigation. Thanks @puenktchen, by the way. |
Thanks AquilesCanta. |
One more question if you don't mind... Is there any way to set these flags on an DefaultHlsExtractorsFactory? I can't seem to find one. We are delivering these TS streams via HLS in order to seek them. |
For the time being, you'll need to provide your own HlsExtractorFactory implementation, probably forking the existing one. Soon we will push a convenience constructor for adding these flags to the default implementation. |
Okay, will do. Thanks again. |
Issue:#4861 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=214772527
Let me know if you run into any issues with this. |
Issue:#4861 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=214772527
Use random access indicator in transport streams Issue:#1967 Issue:#2020 Issue:#2182 Issue:#2469 Issue:#2581 Issue:#2748 Issue:#2939 Issue:#2979 Issue:#3316 Issue:#3574 Issue:#3709 Issue:#3747 Issue:#4103 Issue:#4184 Issue:#4355 Issue:#4538 Issue:#4719 Issue:#4861 Issue:#4925 Issue:#4951 Issue:#5108 Issue:#5186 PiperOrigin-RevId: 225798044
Use random access indicator in transport streams Issue:#1967 Issue:#2020 Issue:#2182 Issue:#2469 Issue:#2581 Issue:#2748 Issue:#2939 Issue:#2979 Issue:#3316 Issue:#3574 Issue:#3709 Issue:#3747 Issue:#4103 Issue:#4184 Issue:#4355 Issue:#4538 Issue:#4719 Issue:#4861 Issue:#4925 Issue:#4951 Issue:#5108 Issue:#5186 PiperOrigin-RevId: 225798044
Certain .ts streams (the ones we have are European TV) will appear to start to load in Exo but simply never start playing. If the same stream is re-encoded as h264 and delivered via HLS it will play fine.
Samples:
https://drive.google.com/open?id=1oe4oX9W4JherAWEQ-pAyT_7pkfJxDBOB
https://drive.google.com/open?id=1lTmpEecci5KHiVEHhhgb_LQ1E574-nPB
The text was updated successfully, but these errors were encountered: