bgrins / videoconverter.js

[UNMAINTAINED] Convert videos in your browser
http://bgrins.github.io/videoconverter.js/
Other
2.34k stars 300 forks source link

Create wav file with opus codec #48

Open Endothelium opened 8 years ago

Endothelium commented 8 years ago

Hello,

It is possible to decode opus audio with your library? With this arguments :

arguments: [ '-i', 'audio.wav', '-c:a', 'vorbis', '-b:a', '4800k', '-acodec', 'libopus', '-strict', 'experimental', 'output.mp4' ], files: [ { data: new Uint8Array(BlobAudio), name: 'audio.wav' } ]

I get this error : Unknown encoder 'libopus'.

If i don't explicitly put libopus encode, i got this error from chrome :

Input #0, matroska,webm, from 'audio.wav': client_bebe.js:83 Metadata: client_bebe.js:83 encoder : Chrome client_bebe.js:83 Duration: N/A, start: 0.000000, bitrate: N/A client_bebe.js:83 Stream #0:0(eng): Audio: opus, 48000 Hz, mono (default) client_bebe.js:83 [abuffer @ 0xeda700] Unable to parse option value "(null)" as sample format client_bebe.js:83 Last message repeated 1 times Last message repeated 1 times client_bebe.js:83 [abuffer @ 0xeda700] Error setting option sample_fmt to value (null). client_bebe.js:83 [graph 0 input from stream 0:0 @ 0xeda660] Error applying options to the filter. client_bebe.js:83 Error opening filters!

Opus is the only way i can get my audio.