OpenELEC.tv icon indicating copy to clipboard operation
OpenELEC.tv copied to clipboard

Streams with audio encoded at 32KHz play too quickly

Open Bobones opened this issue 11 years ago • 10 comments

Try this M3U in the IPTV Simple Addon on:

EXTM3U

EXTINF:-1 tvg-logo="SetantaSports1.png" group-title="UK SPORTS", Setanta Sports Ireland rtmpe://46.246.124.24:1935/live playpath=ssetanta swfUrl=http://prvservers.com/j/jwplayer.flash.swf pageUrl=http://prvservers.com/ live=1 token=#yw%tt#w@kku timeout=15

Audio is noticeably high pitched and video is too fast, which leads to constant buffering. This seems to happen with any streams with audio encoded at 32000Hz.

Bobones avatar Dec 17 '14 09:12 Bobones

Could this be this problem?

In the patch 0009-aml-Change-the-sample-rates-that-are-supported-by-AL.patch, 32000 is missing from the sample rates that are changed, i.e. it needs "case 32000:" appended after "case 22050:"

Bobones avatar Dec 18 '14 10:12 Bobones

That case statement is for sample rates not supported by the output audio device. 32KHz is supported sample rate.

codesnake avatar Dec 18 '14 23:12 codesnake

What device are you using? What OE version?

codesnake avatar Dec 18 '14 23:12 codesnake

I am using OE 4.97.2 on m201 board.

I have built the code with the change I suggested and it fixes the problem. If 32000 is a supported rate then why aren't the lower rates mapped to 32000 instead of 44100?

I also have have an G02REF box running Corey's MX Linux where these 32K streams have a lot of noise in the sound but play at the correct speed. There is a similar patch there from Davilla where 32000 is mapped to 48000 so I am guessing 44100 will work without noise.

Bobones avatar Dec 19 '14 07:12 Bobones

It seems your link is not available most of the time. I successfully opened it only 2 or 3 times after 10-20 tries. Now I cannot play it at all.

codesnake avatar Dec 19 '14 10:12 codesnake

Here's another 32KHz one. They're usually dodgy streams which get removed after a while

#EXTM3U

#EXTINF:-1 tvg-logo="BoxNation.png" group-title="UK SPORTS", BoxNation rtmpe://46.246.124.24:1935/live/ playpath=sboxn live=1 pageUrl=http://www.hdcast.org/Vd?u#bt!25 token=#yw%tt#w@kku timeout=15

Taken from the larger list at http://bit.ly/vdubt25

Bobones avatar Dec 19 '14 11:12 Bobones

Do you have switch refresh rate and adjust audioclock on ?

j1nx avatar Dec 22 '14 13:12 j1nx

I tried various combinations, but refresh rate and audio clock settings have no effect on this issue. As I said, mapping 32000 to 44100 in the patch fixes the problem.

Bobones avatar Dec 23 '14 21:12 Bobones

Bobones, can you please share the fix?

dubfox avatar Jan 01 '15 04:01 dubfox

Bobones, disregard. figured it out.

dubfox avatar Jan 01 '15 05:01 dubfox