audioserve icon indicating copy to clipboard operation
audioserve copied to clipboard

iOS and OSX+Safari do not support opus+ogg audio format

Open izderadicka opened this issue 5 years ago • 2 comments

Apple platforms do not support opus+ogg format, which is default in audioserve.
On OSX alternative browser(FF or Chrome) seems to work fine, but Safari is not.

I think Apple supports opus, but only in matroska container, which does not work well with on-flow transcoding (as it requires seek access to stream to update header).

I think we should provide alternative configuration for apple platforms - probably aac codec?
As I'm not using Apple, I'm just opening this issue if somebody has more experiences (and it would not be any problem to add additional transcoding configurations, provided it's supported by ffmpeg).

@paulmorabito - what transcodings did work for you on iOS?

izderadicka avatar Aug 12 '19 12:08 izderadicka

I'll give your update a try and let you know how it goes on iOS.

About transcoding, mp3 seemed to work the best but I only tested it playing and not much more.

On Mon, 12 Aug 2019 at 21:17, Ivan Zderadicka [email protected] wrote:

Apple platforms do not support opus+ogg format, which is default in audioserve. On OSX alternative browser(FF or Chrome) seems to work fine, but Safari is not.

I think Apple supports opus, but only in matroska container, which does not work well with on-flow transcoding (as it requires seek access to stream to update header).

I think we should provide alternative configuration for apple platforms - probably aac codec? As I'm not using Apple, I'm just opening this issue if somebody has more experiences (and it would not be any problem to add additional transcoding configurations, provided it's supported by ffmpeg).

@paulmorabito https://github.com/paulmorabito - what transcodings did work for you on iOS?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/izderadicka/audioserve/issues/18?email_source=notifications&email_token=ADSGX3Z55R634JA7RHAL7STQEFIG7A5CNFSM4ILAT4K2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEWKSJQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSGX33NDQF4QQBESBCSY43QEFIG7ANCNFSM4ILAT4KQ .

paulmorabito avatar Aug 12 '19 23:08 paulmorabito

Ogg Opus files are supported on Safari with WebAssembly decoding:

  • https://fetch-stream-audio.anthum.com/
  • https://github.com/AnthumChris/fetch-stream-audio

anthumchris avatar Dec 28 '19 16:12 anthumchris

With selective transcoding based on User-Agent string we can provide now alternative transcoding to aac in ADTS for Apple agents.

izderadicka avatar Aug 07 '22 14:08 izderadicka