savonet / liquidsoap

Liquidsoap is a statically typed scripting general-purpose language with dedicated operators and backend for all thing media, streaming, file generation, automation, HTTP backend and more.
http://liquidsoap.info
GNU General Public License v2.0
1.42k stars 130 forks source link

Unexpected channel configuration change when using input.http with aac #1344

Closed ChronosXYZ closed 2 years ago

ChronosXYZ commented 4 years ago

Describe the bug Liquidsoap doesn't decode correctly AAC stream from input.http. I'm getting the following logs:

2020/09/11 18:01:40 [decoder:3] Method "AAC" accepted "audio/aac".
2020/09/11 18:01:40 [http_14876:3] Decoding...
2020/09/11 18:01:40 [http_14876:2] Feeding stopped: Faad error: Unexpected channel configuration change

To Reproduce

#!/usr/bin/liquidsoap
set("log.stdout",true)

set("scheduler.fast_queues",1)

# Start building the feed with music
url = "http://mgps.fmstream.ru:8010/megapolis-48.aac"
radio = mksafe(input.http(url))

# Stream it out
output.icecast(%opus(bitrate=320),
  host = "xxx", port = 8000, name="xxx", description="",
  password = "xxx", mount = "xxx", public=true,
  radio)

Expected behavior The input stream will correctly decoded and relayed to icecast output.

Version details

Install method Ubuntu APT

toots commented 4 years ago

Hi! That seems like an error at the underlying library level. This kind of error can also happen if the data gets corrupted.

Have you tried to download the stream and play it with a regular media player? More generally, are you able to listen to the stream with another source client?

ChronosXYZ commented 4 years ago

Hi! That seems like an error at the underlying library level. This kind of error can also happen if the data gets corrupted.

Have you tried to download the stream and play it with a regular media player? More generally, are you able to listen to the stream with another source client?

@toots Yep, the stream works correctly in a regular media player and in builtin browser player. The URL, which causes the error, is http://mgps.fmstream.ru:8010/megapolis-48.aac.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue was closed for lack of activity. If you believe that it is still relevant, please confirm that it applies to the latest released version of liquidsoap and re-open the ticket. Thanks!