-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Seek to arbitrary position #176
Comments
Seems like there was seekToTime and seekToFrame implementation before the refactor, do you have any plan to bring it back? Thank you. |
I managed to get it working with nextFrame and even seek to arbitrary frame with the help of server side. The code may be coupled with server side logic to get correct meta data, so closing this. |
@phoboslab Thank you for this amazing library! I'm trying add a scrubber by using |
I have actually the same question 😉. @Rob-ot did you manage to make it work without distorting the video? |
@dumblob No, unfortunately. We were working with somewhat short clips (<5m) so we just processed the entire video into frames. We saved the frames as compressed jpegs in BLOBs which seemed to allow the browser to swap the data to disk and avoid using a ton or ram, though it still used plenty. |
@Rob-ot very insightful, thank you. Speaking of "still used plenty" - could you specify how much that could be (just roughly) for a 5m video in FullHD? My goal is to make it work on quite low-end tablets and maybe smartphones (but I'm free to choose a web browser). Do you think it's viable? |
@dumblob "plenty" being like 2GB+ so probably not good for low-end. We also experimented with decoding the entire video on the server to jpeg frames and loading them one-by-one, which actually worked really well for scrubbing back and forth in the video. We would prefetch like 50 frames to the left and right of where the user was looking. There's also ideas of extracting a large and small version of each frame to keep things snappy. Hope that helps and good luck! |
@Rob-ot thanks again! Pffff, 2GB+ is way too much. So yeah, decoding on server and prefetching +-50 frames suddenly sounds viable. Thanks a lot! |
JSMpeg is good for streaming content, but for the VOD content, an accurate seek is a must have feature. It seeks like it doesn't take previous I-frame in mind.
The text was updated successfully, but these errors were encountered: