Skip to Content
It is currently November 21st, 2019, 12:13 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 27th, 2014, 4:55 pm 
Offline
New User
New User

Joined: May 27th, 2014, 4:27 pm
Posts: 2
When using SamCast to encode Live audio in AAC+, how is it packetized; MPEG2, MPEG2-TS, MPEG4, MPEG4-TS etc?
Or do you know a common reason why an HTML5 player would not stream an AAC+ live feed but does play the MP3 version?

I am told that for HTML5 to play an AAC stream it must be in an MP4 wrapper.
My IceCast server shows it as audio\aacp while it shows audio\mpeg for my MP3 streams.

Any information is greatly appreciated. Thanks!


Top
 Profile  
Reply with quote  
PostPosted: May 28th, 2014, 8:27 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
Obviously MPEG-4 is the correct format. (AAC+/HE-AAC => MPEG-4 Part-3)
MPEG-2 is only valid for AAC (without plus or HE).

I've got no idea if streaming audio is supported by HTML5 <audio> element at all.
If MPEG-TS or PS would be needed for that it's impossible to use Shoutcast or Icecast for this purpose. The "streaming" audio of these servers is not compatible with Transport or Program Streams.

AFAIK, streaming audio like Shoutcast or Icecast is not officially supported and might just work by accident.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: May 28th, 2014, 11:53 am 
Offline
New User
New User

Joined: May 27th, 2014, 4:27 pm
Posts: 2
Thank you for the feedback Benedikt.

"AFAIK, streaming audio like Shoutcast or Icecast is not officially supported and might just work by accident."?
What is not officially supported for IceCast use?


Top
 Profile  
Reply with quote  
PostPosted: May 28th, 2014, 5:28 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
The HTML5 standard only says something like "this is the HTML5 audio element and this is the structure, now go ahead and implement whatever audio formats and sources you like".
Apparently my information is a bit outdated. I last looked at the HTML5 audio element 2 or so years ago and back then it was a catastrophe because every browser supported different codecs.

Here's some up to date information from the Mozilla Developer Network:
Quote:
The MP4 container format with the H.264 video codec and the AAC audio codec is natively supported by desktop/mobile Internet Explorer, Safari and Chrome, but Chromium and Opera do not support the format. IE and Chrome also support the MP3 audio codec in the MP4 container, but Safari does not. Firefox/Firefox for Android/Firefox OS supports the format in some cases, but only when a third-party decoder is available, and the device hardware can handle the profile used to encode the MP4.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group