Closed sam131208 closed 1 year ago
opus_demo -e produces a file in a special format intended only to be read by opus_demo -d. The file is not an Opus file and it contains more than just the raw packet data.
opus_custom_decode() does not take an Opus packet like opus_decode(); it takes a frame using the custom CELT mode that was specified on initialization of the custom decoder. In an Opus packet the mode information is part of the packet data.
@mark4o Thanks for your reply. Is there an encoding/decoding tool for custom CELT mode here? Sometimes, opus cannot be used due to less RAM.
In the opus repository there is a test utility opus_custom_demo. It performs opus_custom_encode() followed by opus_custom_decode(), so that you can check the resulting audio quality. This project (opus-tools) is a collection of utilities for use with standard Opus files and has no connection to Opus Custom.
The following code is a bat file to convert .wav to an Opus stream.
If you use opus_decode() decoding, it works fine, return frame size = 160. When I decode with opus_custom_decode(), an error value is returned, return frame size = 40.