-
Notifications
You must be signed in to change notification settings - Fork 101
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 can I use ogv just for decoding? #533
Comments
This would be possible to rig up using the codec modules directly, though not yet a convenient interface for it. Roughly, you need to pass data into a demuxer module's Devil's always in the details though. :) |
What is input and expected output? |
Do not have access to Safari. Testing |
Actually I figured out how to use emscripten to be able to use vorbis-tools' oggdec directly: |
@jfrancos Are you able to verify which file types and codecs Safari is able to decode with |
I would love to be able to do this as well. My use case is that I have a stream of "raw" Theora packets coming from a camera, without an OGV container. I want to be able to feed in the header packets, an intra frame, and a sequence of inter frames and get out the final image buffer. Is this possible at all? The |
Yes, you can call the decoder directly if you like. No stable api or documentation or support. |
Ok thanks. I put together an example of using ogv.js to decode raw Theora packets into video frames: https://github.com/rgov/js-theora-decoder (Demo) @Brion One thing I'm curious about is why I need to call |
For Brave/Firefox I use WebAudio's
decodeAudioData
, which returns anAudioBuffer
of the decoded PCM audio data. This doesn't work in Safari.Is there a way I can use ogv just for decoding, in place of
decodeAudioData
?Thanks for your hard work.
The text was updated successfully, but these errors were encountered: