lordmulder / LameXP

Audio Encoder Front-End
http://lordmulder.github.io/LameXP
Other
184 stars 18 forks source link

Opus File Unsupported #88

Closed RickSmedley closed 4 years ago

RickSmedley commented 4 years ago

Not sure if I'm doing something wrong but trying to convert an OPUS file to WAV and get a status of unsupported. I've tried mp3 as well and get the same thing. Sorry if this is simple or something I missed. If you want the file OPUS file please email me and I'll forward. Can't attach to this report.

lordmulder commented 4 years ago

Ogg/Opus files definitely should be supported.

So, can you please provide the MediaInfo report for the "problematic" file?

(LameXP uses MediaInfo to detect the file type. And an "unsupported" error usually means that either MediaInfo failed to detect your file, or MediaInfo reported something that we cannot handle)

RickSmedley commented 4 years ago

General Complete name : D:\Sound\Studio 91\2020-2021 MJ Ideas\Sidewalk Prophets - Smile Lyrics.opus Format : WebM Format version : Version 4 File size : 2.88 MiB Duration : 2 min 56 s Overall bit rate : 137 kb/s Writing application : google/video-file Writing library : google/video-file FileExtension_Invalid : webm

Audio ID : 1 Format : Opus Codec ID : A_OPUS Duration : 2 min 56 s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Bit depth : 16 bits Compression mode : Lossy Language : English Default : Yes Forced : No

lordmulder commented 4 years ago

So, this is a WebM (Matroska) file containing an Opus audio track.

Unfortunately, this combination is not currently supported, because we use opusdec from Opus-Tools to decode Opus files. TTBOMK, opusdec only supports the Ogg container, not WebM (Matroska).

RickSmedley commented 4 years ago
I Appreciate you getting back to me, not sure
  why a WebM file container with an Opus audio track can not be
  decoded as just an Opus audio track but I'm not the developer and
  I do appreciate your time looking into this.

  Rick Smedley
  717-377-5393

On 2/27/2020 4:48 PM, LoRd_MuldeR
  wrote:

  So, this is a WebM file containing an Opus audio track.
  Unfortunately, this combination is not
    currently supported, because we use opusdec from Opus-Tools to decode Opus files.
  —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or unsubscribe.
  [

{ "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/lordmulder/LameXP/issues/88?email_source=notifications\u0026email_token=AOUEKTUZ6V7JFDXYBJWMO73RFAYMTA5CNFSM4KZTJT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENGCTKQ#issuecomment-592193962", "url": "https://github.com/lordmulder/LameXP/issues/88?email_source=notifications\u0026email_token=AOUEKTUZ6V7JFDXYBJWMO73RFAYMTA5CNFSM4KZTJT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENGCTKQ#issuecomment-592193962", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

lordmulder commented 4 years ago

I Appreciate you getting back to me, not sure why a WebM file container with an Opus audio track can not be decoded as just an Opus audio track but I'm not the developer and I do appreciate your time looking into this.

It is because the Opus audio format and the Opus Tools (opusenc, opusdec, etc.) as well as the Ogg container all were developed by the Xiph.Org Foundation. So, it is not much of a surprise that the default container format for Opus audio files is Ogg. The sames goes for Vorbis audio files, by the way.

WebM, on the other hand, was developed by Google Inc. – in order to promote their own VP8 and VP9 video formats, as a royalty-free alternative to use in the HTML5 video. It combines the MKV container with the VP8 or VP9 video format and the Vorbis or Opus audio format. This also means that WebM is a competitor to Ogg/Theora by Xiph.Org. And I think that may be one of the reasons why Xiph.Org isn't exactly eager to support WebM (MKV) in their Opus Tools suite as an alternative to Ogg 😏

(If you know of a simple CLI tool that can extract Opus from WebM/MKV to Ogg, I might be able to do something. But, at this point, we are pretty much limited to what opusdec supports)