-
Notifications
You must be signed in to change notification settings - Fork 6
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
question for embedding your decoder #12
Comments
The decoder does keep the state. You can only seek to a keyframe, but this is how all decoders work. |
ok pratically after a seek i have to call decode api with compressed frames starting from a keyframe. It seams simple |
Yes, this is the case with VP8, you have to seek to the nearest keyframe. |
then for the player part ... i think i might refresh canvas it is simple but i have 2 doubt:
|
When you multiplex it, it should put timestamps on each frame. I don't think a solid fps will work perfectly. Do you have audio too? |
I'm not an expert on A/V sync but perhaps @Brion knows |
Indeed there's no single fps value provided in WebM structure; each frame's packet lists a presentation timestamp relative to the start time. Very roughly a playback loop (such as is implemented in my ogv.js player needs to do:
|
Thanks a lot @Brion. I got the idea . I m thinking now in the webm blocks there is a blockduration : blockduration/framecount=time per frame. Answering to @brianxautumn. No i have still to see exactly how to do . I have just saw you realized a audiostream feeder for doing it. The better solution would be realize a MSE object for browser not supporting it. |
hi , i d like embed your decoder in my player.
but i have some questions
ipothesis:
-i have a webm stream ... using chunks.
-the demuxer is seekeable .... it permits to seek in a specific position and send out the right frames.
the decoder is stateless? when i seek there no state to reset in the decoder? nothing related to keyframe for example?
The text was updated successfully, but these errors were encountered: