Comments (5)
Your test.opus file is zero length. Causes #7.
from ogg.js.
I've updated the test to use a larger (~1MiB) test file. It is now using ogg vorbis instead of opus.
Making the code change in #7 fixes the 500 sample opus file, but still no callback for the vorbis.
from ogg.js.
I get an abort. Looks like an assertion is being triggered somewhere in the vorbis decoder.
from ogg.js.
I've tracked it down to a segfault in a realloc in ogg_sync_buffer (framing.c:645). It asks for 16 and 23k, then fails on a request for 28k. I'm out of my depth now.
Changing vorbis.js's buffer size to 2048 (instead of 4192) makes the decode succeed, but the audio is shorter than it should be and fairly garbled. I did a bit more fiddling with buffer sizes but most end in an abort(). I don't think I'm on the right track. I will continue to investigate.
from ogg.js.
Changing framing.c:641 to increase in multiples of 8kiB instead of 4kiB produces correct decodes. This feels like a hacky workaround though. This might be an emscripten bug but I'm hesitant to suggest this because of my lack of knowledge.
from ogg.js.
Related Issues (11)
- ... great work! what about a video encoder like avconv? HOT 3
- Any Chance of Having ogg.js Encode Audio? HOT 2
- Compiled Version HOT 1
- Uncaught RangeError: Source is too large HOT 3
- Error: Finished up all reserved function pointers.
- Files less BUFFER_SIZE not playing
- Build fails - Ubuntu 15.10, Node v0.12.10, npm 2.14.9 HOT 4
- ogg.js:2ReferenceError: Can't find variable: Module
- ogg.js seekbar do not work.
- link to the prebuilt version ? in the readme.md ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogg.js.