osmf-hls-plugin icon indicating copy to clipboard operation
osmf-hls-plugin copied to clipboard

HLS plugin TS aac playback problem

Open LukasKalinowski opened this issue 12 years ago • 14 comments

Hello everyone,

first of all, thanks for the great plugin!

Now to the problem :) I'm testing a hls live scenario and video is working relatively well. I'm decoding my own transport stream files with h264 video and aac audio.

Which is working very well on apple devices with safari or vlc player. But with your plugin, I'm hearing no sound. The aac configuration is as follows: Audio ID : 17 (0x11) Menu ID : 1 (0x1) Format : AAC Format/Info : Advanced Audio Codec Format version : Version 2 Format profile : LC Muxing mode : ADTS Codec ID : 15 Duration : 10s 31ms Bit rate mode : Variable Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 44.1 KHz Compression mode : Lossy Delay relative to video : -16ms

I tested ts files of your sample m3u8 playlists and the difference is, that you are using aac with 2 channels and version 4. But I cannot unfortunately not have 2 channels.

I also analysed the transport stream format and compared it, with no bigger difference.

What is wrong with my audio?

LukasKalinowski avatar Dec 12 '13 13:12 LukasKalinowski

It seems that the "HLSDynamicPlugin.swf" causes the audio playback problems. I tested the "HLSProviderOSMF.swf" plugin and audio works well.

LukasKalinowski avatar Dec 12 '13 14:12 LukasKalinowski

With the solution of mangui: http://www.streambox.fr/HLSProvider/osmf/ aac playback is working.I tested it with the "HLSProviderOSMF.swf" plugin from there.

Maybe it would be possible to merge the aac code from there to this project??

LukasKalinowski avatar Dec 12 '13 19:12 LukasKalinowski

Hi @LukasKalinowski ,

Could you please provide a link to a test content. We will fix it shortly. And of course if mangui helps with it we would be happy.

Thanks, Denis.

dangerden avatar Dec 12 '13 21:12 dangerden

I will provide test content tomorrow. Good night all!

LukasKalinowski avatar Dec 12 '13 21:12 LukasKalinowski

Hi there, I could eventually help providing that you share a stream. Cheers, Mangui

mangui avatar Dec 13 '13 06:12 mangui

@LukasKalinowski HLSProviderOSMF license is MPL 2.0

mangui avatar Dec 13 '13 06:12 mangui

Hi mangui,

ok, thanks. I've zipped a hls test content. How can I upload the *.zip file?

LukasKalinowski avatar Dec 13 '13 10:12 LukasKalinowski

ok, thanks. I've zipped a hls test content. How can I upload the *.zip file?

You can upload your test content to this ftp user: ohp pass: 3sY<!hMZ ftp://support.denivip.ru

D3adKnight avatar Dec 20 '13 16:12 D3adKnight

Hello,

I've uploaded the test content via ftp.

Thanks and cheers

Lax

LukasKalinowski avatar Jan 06 '14 10:01 LukasKalinowski

Thanks for example content. I will test it in nearest future.

D3adKnight avatar Jan 07 '14 15:01 D3adKnight

Flash don't support 48KHz sample rate in audio. Max supported rate is 44.1KHz

D3adKnight avatar Jan 23 '14 11:01 D3adKnight

Ok, it tested it also with other sampling rates, but the same result. I uploaded new content (hls_test_16hz.zip). The aac streams have an sampling rate of 16KHz.

LukasKalinowski avatar Jan 23 '14 14:01 LukasKalinowski

Flash can support only

  • 5.5KHz
  • 11KHz
  • 22KHz
  • 44.1KHz and
  • Nellymoser 8KHz mono

D3adKnight avatar Jan 24 '14 04:01 D3adKnight

I also created a scenario with 11025, 22050 Hz, and tested it with the "HLSDynamicPlugin.swf" plugin and still having no sound. I uploaded the files (hls_test_11_22_khz).

The strange thing is, that all the sampling rates: (16000, 32000, 48000) worked with "HLSProviderOSMF.swf" plugin.

So the question would be: What is different in the HLSProviderOSMF plugin? What is missed in the HLSDynamicPlugin?

LukasKalinowski avatar Jan 27 '14 10:01 LukasKalinowski