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

Validate if the video file can be streamed #18

Closed
gilgamezh opened this issue Aug 11, 2014 · 3 comments
Closed

Validate if the video file can be streamed #18

gilgamezh opened this issue Aug 11, 2014 · 3 comments
Assignees
Milestone

Comments

@gilgamezh
Copy link
Contributor

To serve a video file over HTTP depends on the video 'hinting'.
The video file has three parts. ftyp, moov and mdat. If mdat is located before moov the video can't be streamed.

We can use the function get_index of qtfaststart to validate it.

https://github.com/danielgtaylor/qtfaststart/blob/master/qtfaststart/processor.py#L54

If the video can't be streamed, what should touchandgo do?

@felipelerena
Copy link
Contributor

I think there is something else related to the file allocation method we are using.

@felipelerena felipelerena added this to the 1.0 milestone Aug 15, 2014
@gilgamezh
Copy link
Contributor Author

Test Cases:

  • "the loftovers" 1 8 (big moov at the end)
  • Vikings 2 1 (moov at the end)
  • Wilfred 4 3 (can be stramed immediately)

@gilgamezh
Copy link
Contributor Author

Job started in https://github.com/touchandgo-devs/touchandgo/tree/issue_18

Now when the firts chunks are downloaded it will check if the moov is available.
If it isn't avaliable it will download the last four chunks.
And finally it will extend the first and last ranges until the moov is available.

Currently with some bugs

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants