xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
218 stars 79 forks source link

Encoding from DTS WAV files? #20

Closed edent closed 6 years ago

edent commented 6 years ago

Forgive me if this is the wrong place to raise this issue.

I want to convert a surround sound DTS file directly to opus, but it seems like this isn't possible.

I have a file dts.wav. Using avconv I can see the file format is...

Input #0, dts, from 'dts.wav':
  Duration: 00:01:23.45, start: 0.000000, bitrate: 1411 kb/s
    Stream #0.0: Audio: dca (DTS), 44100 Hz, 5.1, fltp, 1411 kb/s

If I try to convert using opusenc dts.wav out.opus I get the following error:

Error parsing input file: dts.wav

If I convert the wav to a multichannel flac, I can then successfully convert the flac to opus.

Is there any way to convert directly without this intermediary stage?

rillian commented 6 years ago

There is not, unfortunately. opusenc only supports PCM wav and flac input, so you have to use another tool to convert any other format to one of those first.

edent commented 6 years ago

Ah well, thanks for letting me know.