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

How to create MutliPeriod or MultiWindow Timeline from single media file? #2342

Closed
skuppa opened this issue Jan 17, 2017 · 6 comments
Closed
Labels

Comments

@skuppa
Copy link

skuppa commented Jan 17, 2017

Is it possible to create MultiPeriod or MultiWindow Timeline from a single media file.

For example, if my media file is playing for 10 minutes then is it possible to create period/window for each 1 minute. It is like creating playlist from single media file consist of 10 playable windows.

Thanks,
-Kuppa

@ojw28
Copy link
Contributor

ojw28 commented Jan 18, 2017

I don't really see why you'd want to do this. If it's just to make the UI appear differently (i.e. as though the content consists of multiple pieces of media with << and >> skip buttons) then it seems more appropriate to customise the UI, not fake a structure for the media that's not really true.

@ojw28 ojw28 added the question label Jan 18, 2017
@skuppa
Copy link
Author

skuppa commented Jan 18, 2017

Thank you for responding my question.

I am trying to index the big video with multiple chapters like DVD menu, and let user skip to next chapter or pick any chapter as per his needs.

@ojw28
Copy link
Contributor

ojw28 commented Jan 25, 2017

As above, I think you should implement this kind of thing in your own UI above the player. The timeline represents the structure of the media being played. Faking the structure of the media just because the default UI components use it isn't the right solution.

@ojw28 ojw28 closed this as completed Jan 25, 2017
@skuppa
Copy link
Author

skuppa commented Feb 8, 2017

Thanks for the suggestion. Here is my use case, please advise me to the right direction.. I have video files that was shot in multiple angles and all video files have same timings. I need to play video by switching the different angled's video file without any gaps. My example as follows (I use second instead of microsecond):

Assume, I have two video files.
Clip1_Angle1.mp4 (120 seconds)
Clip1_Angle2.mp4 (120 seconds)

And I expect my player should be playing
Clip1_Angle1.mp4 (0-5s) -> Clip1_Angle2.mp4(6s-10s) -> Clip1_Angle1.mp4 (11-15s) -> Clip1_Angle2.mp4(16s-20s) ->...

Thanks,
-Kuppa

@andrewlewis
Copy link
Collaborator

@skuppa Can you use a ConcatenatingMediaSource joining several ClippingMediaSources, where each of those has the required start/end position and wraps an ExtractorMediaSource with the required URI? Note that for seamless video playback you'll need to ensure that the start time of every ClippingMediaSource is a keyframe (see #1988). It's fine to load the same URI more than once in different sources.

@skuppa
Copy link
Author

skuppa commented Feb 10, 2017

Thank you Andrew. This is really helps.

@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
Projects
None yet
Development

No branches or pull requests

3 participants