Help us understand the problem. What is going on with this article?

Opusのビルド方法(VisualStudio2015)

More than 3 years have passed since last update.

fdk_aacのビルド方法 に続いて。
これは特に調べてないです。直感的に適当にビルドしました。
Windows10 64bit VisualStudio2015環境想定です。

  1. Git ShellでOpusをクローン。
$ git clone https://git.xiph.org/opus.git
  1. VisualStudio2015を起動し、ファイル->開く-> プロジェクト/ソリューションから、"opus/win32/VS2015/opus.sln"を選択。
  2. 通常通りにビルド

これでopus/win32/VS2015/Release下にopus_demo.exeが作成されます。これがおそらくメインの実行ファイルだと思います(調べてないから断定できない)。

実行してみると、Usageが下記のように記載されました。

Usage: C:\WINDOWS\system32\opus_demo.exe [-e] <application> <sampling rate (Hz)> <channels (1/2)> <bits per second>  [options] <input> <output>
       C:\WINDOWS\system32\opus_demo.exe -d <sampling rate (Hz)> <channels (1/2)> [options] <input> <output>

application: voip | audio | restricted-lowdelay
options:
-e                   : only runs the encoder (output the bit-stream)
-d                   : only runs the decoder (reads the bit-stream as input)
-cbr                 : enable constant bitrate; default: variable bitrate
-cvbr                : enable constrained variable bitrate; default: unconstrained
-variable-duration   : enable frames of variable duration (experimental, experts only); default: disabled
-delayed-decision    : use look-ahead for speech/music detection (experts only); default: disabled
-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband); default: sampling rate
-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
-max_payload <bytes> : maximum payload size in bytes, default: 1024
-complexity <comp>   : complexity, 0 (lowest) ... 10 (highest); default: 10
-inbandfec           : enable SILK inband FEC
-forcemono           : force mono encoding, even for stereo input
-dtx                 : enable SILK DTX
-loss <perc>         : simulate packet loss, in percent (0-100); default: 0

ずいぶん量がありますね……。
サンプリングレートを指定しなければならないのは少し使いづらそうです。しかも44100Hzが指定できない。
8k, 12k, 24k, 48kHzの中から選択する必要があるようです。
しかも変換後のファイルがWindowsMediaPlayerやXアプリでは開けない。Opusが対応してないみたいですね。
あきらめてfoobar入れようかなと考える今日この頃。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away