I am not sure whether this is the right place to ask this question but I will give it a try.
The problem:
A while ago I made a couple of .opus-music files for a visual novel. So far so good. At the moment I am doing the final touches on a mayor part of my game, that includes retouching the audio. I noticed that my menu-music starts very loud and some other music-files are more quiet.
So I though to myself, no problem, lets fix this with Audacity. I loaded up the original high-quality- / high-bitrate-file to fix that menu-music. I added a 5 seconds "fade-in" to "soften" the start. Then I wanted to export to my target-format: Opus at 128k bitrate.
Out of all available formats this has the highest quality on low or medium bitrates for consumer-grade-audio with excellent compression! Audacity does not support exporting to Opus nativly. FFmpeg must be installed using the "ffmpeg-win-2.2.2.exe"-Installer. Said and done.
At this point I get this error:
FFmpeg : ERROR - Can't open audio codec 0x4f505553
A quick google-search reveals that Opus-export apparently is not supported:
At this point I could export to other in-between-formats and then use FFmpeg to convert back to Opus but that is a bad solution and can cause quality-loss. Even with a lossless .wav-file at the same sample-rate I could lose quality due to the way (floating-point?)-numbers are saved.
What solution I am NOT looking for?
Please no suggestions / discussion about other audio-formats. I very carefully picked Opus for reasons!
What solution I am looking for?
A priceless (not necessarily open-source, but it would be nice) software that allows me to edit and export to Opus in ONE! encoding-pass. I use the word priceless here on purpose because the word "free" can have two different meanings (free beer or free speech).
Any idea what software could do that or how to fix/work around that? Obviously FFmpeg alone supports opus without problems. So I would need a way to pass the Audacity data to FFmpeg in the command-line manually!?
Well shit - that ended up being a wall of text. :frown:
EDIT:
I also just had the idea to try .webm as container, which supports opus. But Audacity only offers the older libvorbis for compression. :FeelsBadMan:
EDIT2:
As temporary work-around for my specific menu-music-problem I ended up using FFmpeg audio-filters like this to add a 5 second fade-in:
The problem:
A while ago I made a couple of .opus-music files for a visual novel. So far so good. At the moment I am doing the final touches on a mayor part of my game, that includes retouching the audio. I noticed that my menu-music starts very loud and some other music-files are more quiet.
So I though to myself, no problem, lets fix this with Audacity. I loaded up the original high-quality- / high-bitrate-file to fix that menu-music. I added a 5 seconds "fade-in" to "soften" the start. Then I wanted to export to my target-format: Opus at 128k bitrate.
Out of all available formats this has the highest quality on low or medium bitrates for consumer-grade-audio with excellent compression! Audacity does not support exporting to Opus nativly. FFmpeg must be installed using the "ffmpeg-win-2.2.2.exe"-Installer. Said and done.
At this point I get this error:
FFmpeg : ERROR - Can't open audio codec 0x4f505553
A quick google-search reveals that Opus-export apparently is not supported:
You must be registered to see the links
You don't have permission to view the spoiler content.
Log in or register now.
At this point I could export to other in-between-formats and then use FFmpeg to convert back to Opus but that is a bad solution and can cause quality-loss. Even with a lossless .wav-file at the same sample-rate I could lose quality due to the way (floating-point?)-numbers are saved.
What solution I am NOT looking for?
Please no suggestions / discussion about other audio-formats. I very carefully picked Opus for reasons!
What solution I am looking for?
A priceless (not necessarily open-source, but it would be nice) software that allows me to edit and export to Opus in ONE! encoding-pass. I use the word priceless here on purpose because the word "free" can have two different meanings (free beer or free speech).
Any idea what software could do that or how to fix/work around that? Obviously FFmpeg alone supports opus without problems. So I would need a way to pass the Audacity data to FFmpeg in the command-line manually!?
You don't have permission to view the spoiler content.
Log in or register now.
Well shit - that ended up being a wall of text. :frown:
EDIT:
I also just had the idea to try .webm as container, which supports opus. But Audacity only offers the older libvorbis for compression. :FeelsBadMan:
EDIT2:
As temporary work-around for my specific menu-music-problem I ended up using FFmpeg audio-filters like this to add a 5 second fade-in:
Code:
ffmpeg.exe -i %1 -filter:a afade=t=in:ss=0:d=5 -vn -acodec libopus -b:a 128k -map_metadata -1 "%~n1.opus"