denivip / osmf-hls-plugin

OSMF HLS Plugin
ISC License
180 stars 93 forks source link

HLS plugin TS aac playback problem #71

Open LukasKalinowski opened 10 years ago

LukasKalinowski commented 10 years ago

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 commented 10 years ago

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

LukasKalinowski commented 10 years ago

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??

dangerden commented 10 years ago

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.

LukasKalinowski commented 10 years ago

I will provide test content tomorrow. Good night all!

mangui commented 10 years ago

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

mangui commented 10 years ago

@LukasKalinowski HLSProviderOSMF license is MPL 2.0

LukasKalinowski commented 10 years ago

Hi mangui,

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

D3adKnight commented 10 years ago

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

LukasKalinowski commented 10 years ago

Hello,

I've uploaded the test content via ftp.

Thanks and cheers

Lax

D3adKnight commented 10 years ago

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

D3adKnight commented 10 years ago

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

LukasKalinowski commented 10 years ago

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.

D3adKnight commented 10 years ago

Flash can support only

LukasKalinowski commented 10 years ago

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?