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

Seeking problem on VOD HLS #162

Closed
samek opened this issue Nov 20, 2014 · 3 comments
Closed

Seeking problem on VOD HLS #162

samek opened this issue Nov 20, 2014 · 3 comments

Comments

@samek
Copy link

samek commented Nov 20, 2014

When I want to seek nothing happens except for the player state which becomes buffering.
That's the case if I seek above 8 min mark. Bellow the 8min it works.
In the logs there's nothing printed out so I could know what exactly is the problem.
If I play the video without seeking (or below 8min) it will play it whole.

Quicktime Player on mac plays video OK and I can seek anywhere in the video.

I've tested it on Nexus 7 4.4.4 and HTC one max 4.4.2
I've checked out branch dev-hls today.

VOD video playlist (MASTER) http://zate.je/hls/index.m3u8
Video was segmented with apple's mediafilesegmenter
Video is encrypted.


I've started playing video then seeked to 5min 48 sec it played, then i seeked to a position above 8 min.
-----------------Logs---------------------------------------------------
11-20 15:00:12.068 14824-14824/com.google.android.exoplayer.demo I/ExoPlayerImpl﹕ Init 1.0.13
11-20 15:00:12.068 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ start [0]
11-20 15:00:12.068 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [0.00, false, P]
11-20 15:00:12.128 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [0.06, true, P]
11-20 15:00:12.478 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 1036K, 1% free 168849K/169992K, paused 93ms, total 93ms
11-20 15:00:12.548 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [0.47, true, B]
11-20 15:00:12.548 14824-15213/com.google.android.exoplayer.demo I/OMXClient﹕ Using client-side OMX mux.
11-20 15:00:12.558 14824-15213/com.google.android.exoplayer.demo E/ACodec﹕ [OMX.Nvidia.h264.decode] storeMetaDataInBuffers failed w/ err -2147483648
11-20 15:00:12.558 14824-15213/com.google.android.exoplayer.demo W/ACodec﹕ [OMX.Nvidia.h264.decode] prepareForAdaptivePlayback failed w/ err -2147483648
11-20 15:00:12.578 14824-15216/com.google.android.exoplayer.demo I/OMXClient﹕ Using client-side OMX mux.
11-20 15:00:12.628 14824-15220/com.google.android.exoplayer.demo I/SoftAAC2﹕ Reconfiguring decoder: 0->48000 Hz, 0->2 channels
11-20 15:00:12.688 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ videoSizeChanged [1024, 576, 1.0]
11-20 15:00:12.738 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 160906K, 92% free 15725K/177064K, paused 47ms, total 48ms
11-20 15:00:12.758 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [0.69, true, R]
11-20 15:00:12.858 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 4K, 90% free 18415K/177064K, paused 35ms, total 35ms
11-20 15:00:13.068 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 88% free 22004K/177064K, paused 37ms, total 37ms
11-20 15:00:13.318 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 85% free 26747K/177064K, paused 29ms, total 29ms
11-20 15:00:13.478 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 379K, 82% free 32711K/177064K, paused 28ms, total 28ms
11-20 15:00:13.658 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 77% free 40851K/177064K, paused 28ms, total 29ms
11-20 15:00:13.978 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 73% free 48990K/177064K, paused 58ms, total 58ms
11-20 15:00:14.248 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 3K, 68% free 57129K/177064K, paused 29ms, total 29ms
11-20 15:00:14.428 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 64% free 65268K/177064K, paused 29ms, total 30ms
11-20 15:00:14.638 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 1101K, 60% free 72326K/177064K, paused 30ms, total 30ms
11-20 15:00:14.798 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 55% free 80465K/177064K, paused 30ms, total 30ms
11-20 15:00:15.298 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 23K, 50% free 88605K/177064K, paused 61ms, total 61ms
11-20 15:00:15.748 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 4K, 46% free 96744K/177064K, paused 84ms, total 84ms
11-20 15:00:16.198 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 16K, 41% free 104895K/177064K, paused 43ms, total 43ms
11-20 15:00:16.408 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 3K, 37% free 113033K/177064K, paused 36ms, total 36ms
11-20 15:00:16.658 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 3K, 32% free 121172K/177064K, paused 34ms, total 35ms
11-20 15:00:16.818 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 1K, 27% free 129311K/177064K, paused 35ms, total 35ms
11-20 15:00:16.988 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 4K, 23% free 137450K/177064K, paused 36ms, total 36ms
11-20 15:00:17.188 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 18% free 145589K/177064K, paused 35ms, total 35ms
11-20 15:00:17.398 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 14% free 153728K/177064K, paused 35ms, total 36ms
11-20 15:00:17.608 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 2K, 9% free 161867K/177064K, paused 36ms, total 36ms
11-20 15:00:17.918 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ droppedFrames [5.85, 1]
11-20 15:00:17.918 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [5.85, true, B]
11-20 15:00:20.468 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 3372K, 6% free 166677K/177064K, paused 46ms, total 46ms
11-20 15:00:20.578 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 8137K, 6% free 166707K/177064K, paused 39ms, total 39ms
11-20 15:00:21.688 14824-15206/com.google.android.exoplayer.demo D/dalvikvm﹕ GC_FOR_ALLOC freed 8054K, 6% free 166767K/177064K, paused 42ms, total 42ms
11-20 15:00:21.748 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [9.68, true, R]
11-20 15:00:31.798 14824-14824/com.google.android.exoplayer.demo D/EventLogger﹕ state [19.72, true, B]

@samek
Copy link
Author

samek commented Nov 20, 2014

I have created another video without encryption (http://zate.je/hls2/index.m3u8) which plays ok.

As it seams to me the problem is: when you seek over the #EXT-KEY which has the same key but different IV it doesn't play?

@ojw28
Copy link
Contributor

ojw28 commented Nov 20, 2014

Yeah, I think there's a problem there. Thanks for the report! We should be able to get this fixed quickly.

ojw28 added a commit that referenced this issue Nov 20, 2014
1. Correctly replace the AES data source if IV changes.
2. Check the largest timestamp for being equal to MIN_VALUE, and
   handle this case properly.
3. Clean up AES data source a little.

Issue: #162
@ojw28 ojw28 closed this as completed Nov 20, 2014
@samek
Copy link
Author

samek commented Nov 21, 2014

It works now. Thanks

@google google locked and limited conversation to collaborators Jun 28, 2017
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