Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  37] [ 0]  / answers: 1 / hits: 45569  / 1 Year ago, thu, january 19, 2023, 1:06:10

For testing, I want to convert an MP3 and WAV file I have to Opus, what are the steps to doing this?


More From » conversion

 Answers
3

In newer Ubuntu releases the Opus codec is included in the libavcodec libraries that will be installed with ffmpeg. Audio encoding is then done with


ffmpeg -i infile.ext <options> outfile.opus

The audio converter shipped with the opus-tools can convert audio in raw, wave or AIFF format. The minimal syntax uses default settings:


opusenc input.wav output.opus

We may want to add a better bitrate as the default 96 kbps with the option --bitrate N.nnn (for all options consult the manpage for opusenc).


To convert mp3 "on the fly". i.e. without creating a temporary file we can pipe the output from ffmpeg to opusenc like this:


ffmpeg -i input.mp3 -f wav - | opusenc --bitrate 256 - output.opus

[#34517] Thursday, January 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
memorrappin

Total Points: 325
Total Questions: 122
Total Answers: 100

Location: Armenia
Member since Sat, Sep 12, 2020
4 Years ago
memorrappin questions
Tue, Aug 23, 22, 13:34, 2 Years ago
Fri, Aug 12, 22, 14:45, 2 Years ago
Thu, Jan 12, 23, 01:52, 1 Year ago
Fri, Sep 9, 22, 05:27, 2 Years ago
Sun, Apr 3, 22, 16:14, 2 Years ago
;