-
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
Obtaining video duration is abnormal #8491
Comments
If the length is not available, all return -9223372036854775807 |
Yes. This is clearly documented in the Javadoc:
|
Yes, I see that this suspicion is caused by this reason. Is there a way to solve this? Mediaplay is normal |
#5097 is tracking an improvement that would make ExoPlayer better at inferring the duration of MPEG-TS streams, so this issue is effectively a duplicate of that one. That aside, if you have any control over the media itself, the best solution is to use a modern container format such as MP4 or MKV, which are better designed to support efficiently determining the duration and performing seek operations. Closing as a duplicate of #5097. |
It is difficult to replace the container because the video is 4K, which is not conducive to network transmission |
I do not understand what this means. The higher the resolution, the worse MPEG-TS is as a choice of container (and the better MP4/MKV are, relative to MPEG-TS). |
Video needs to be sliced |
Sorry, I do not understand what that means. MP4 and MKV are well suited to streaming of 4K content. |
Personal guess is that the decoder reads the video duration (milliseconds) and decimals
Test address:https://ops-aiops.oss-cn-hongkong.aliyuncs.com/vod/311_620_Venom20184K_play.ts
The text was updated successfully, but these errors were encountered: