This version is actually a bug fix that the software had for some time with no reports of it, and it was a silly bug. It didn’t allowed you to specify a bitrate higher than 100kbit/s. Now, with that fixed, you can encode files up to 320kbit/s. Yay!
This build brings an option to enable or disable multithreading and also allows you to encode files to the same input folder by leaving the output textbox blank. This is in part, thanks to a few commits I’ve performed today and currently awaiting a Pull Request approval to merge these commits into the opus-tools repo.
Yesterday, I got my first Pull Request approved which added an argument called “–tracknumber”. This allows you to pass a track number to opusenc so that it is saved in the .opus file metadata.
This is the initial code I wrote:
I then proceeded to update the opusenc documentation to add this argument:
I was told by the code maintainers to fix my indentation, so I did it. ~I was also told to move the –tracknumber argument below the –album argument. The documentation was also updated. Here’s the result:
With these changes done, my Pull Request got accepted and now we have an extra argument included in opusenc, which is very useful for tools like Exact Audio Copy:
To add a track number to a file during encoding, use opusenc.exe like this:
This will add a “1” to the metadata track field. You can use any integer number for this argument.
The other Pull Request that I’ve made today is about having the output filename autogenerated if it’s skipped by using the input name as the base and changing its extension to .opus. This is awaiting acceptance.
I’m not an expert C programmer, but here you can see the progress I did with this:
Initially, the code was large. I was able to update it to the following:
But it still could be improved and here’s the final commit I’ve done up to this point:
As you can see, the code got smaller with every commit. Here’s hoping that this gets merged!
To use the new opusenc without specifying the output filename, you just have to use it like this:
These will generate the output file “file.opus”. The base name is maintained, and the extension is changed to “.opus”.
of course, you can also use it with arguments. See the help by running opusenc.exe.
I hope these changes are very useful to all of you!
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.