You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I play LG Demo DolbyVision Trailer (from kodi.wiki samples), SimpleExoPlayer.getDuration() returns C.TIME_UNSET. This causes PlayerView to show video duration as 00:00 and prevents scrubbing.
Even though the filename ends with .mkv, it's a MPEG-TS container. (The same video is also shared elsewhere, with the correct extension.)
Player using platform MediaPlayer reports the correct duration (of ~ 1 min 20 s).
ExoPlayer version number: 2.13.0
Android version: 10
Android device: OnePlus 7
BTW: The Files by Google app also reports incorrect duration (of -2562047:47:17).
The text was updated successfully, but these errors were encountered:
To be more efficient, ExoPlayer does not parse the whole media file before starting media. Instead, to compute the duration, it scans the last bytes of the media to get the last PCR value, then it scans the first bytes to have the first PCR value and finally it computes the duration based on the difference between the last and first PCR values (see TsDurationReader.java). Also for performance reasons, the number of bytes to scan at the start and end of the file is limited and, if one of the PCR values was not found, the duration is set to C.TIME_UNSET.
When I play LG Demo DolbyVision Trailer (from kodi.wiki samples),
SimpleExoPlayer.getDuration()
returnsC.TIME_UNSET
. This causes PlayerView to show video duration as 00:00 and prevents scrubbing.Even though the filename ends with
.mkv
, it's a MPEG-TS container. (The same video is also shared elsewhere, with the correct extension.)Player using platform
MediaPlayer
reports the correct duration (of ~ 1 min 20 s).BTW: The Files by Google app also reports incorrect duration (of -2562047:47:17).
The text was updated successfully, but these errors were encountered: