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

mp4.CreateMp4Demuxer: support io.Reader #114

Closed
3052 opened this issue Dec 13, 2023 · 2 comments
Closed

mp4.CreateMp4Demuxer: support io.Reader #114

3052 opened this issue Dec 13, 2023 · 2 comments

Comments

@3052
Copy link

3052 commented Dec 13, 2023

currently only io.ReadSeeker is supported:

https://pkg.go.dev/github.com/yapingcat/gomedia/go-mp4#CreateMp4Demuxer

this is a big problem, as it wont work with HTTP:

https://pkg.go.dev/net/http#Response.Body

this is OK for SegmentTemplate but SegmentBase is a single segment.

@3052
Copy link
Author

3052 commented Dec 13, 2023

@yapingcat
Copy link
Owner

yapingcat commented Dec 13, 2023

seek interface is necessary.
if dash stream is SegmentBase mode, you may get init range and index range. you need to seek to the range to get moov box and sidx box.
http support range request ,which means seek operation for http

for gomedia, seek is used for two purposes.

  1. get current offset
  2. skip some bytes to goto next box

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

No branches or pull requests

2 participants