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.41k stars 130 forks source link

Playlist .pls support broken into 2.0? #2052

Closed cdgraff closed 2 years ago

cdgraff commented 2 years ago

PLS support is broken into liquidsoap 2.0

https://www.liquidsoap.info/doc-2.0.0/playlist_parsers.html

This code works into 1.4.4 liquidsoap --debug 'output.dummy(mksafe(input.http("http://playerservices.streamtheworld.com/pls/XHMVSFM.pls")))'

2021/11/11 00:52:34 [http_9125:4] Connecting to <http://playerservices.streamtheworld.com:80/pls/XHMVSFM.pls>...
2021/11/11 00:52:34 [mksafe:3] Switch to safe_blank.
2021/11/11 00:52:34 [safe_blank:4] Activations changed: static=[mksafe:dummy:dummy], dynamic=[mksafe:dummy:dummy].
2021/11/11 00:52:34 [http_9125:4] Content-type "audio/x-scpls".
2021/11/11 00:52:34 [http_9125:4] Trying playlist parser for mime audio/x-scpls
2021/11/11 00:52:34 [http_9125:3] New metadata chunk: ? -- ?.
2021/11/11 00:52:34 [http_9125:4] Connecting to <http://24383.live.streamtheworld.com:80/XHMVSFM_SC>...
2021/11/11 00:52:35 [http_9125:4] Content-type "audio/mpeg".
2021/11/11 00:52:35 [http_9125:4] Trying playlist parser for mime audio/mpeg
2021/11/11 00:52:35 [decoder:4] Trying method "WAV" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "AIFF" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "PCM/BASIC" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "RAW AUDIO" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "FFMPEG" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "FLAC" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "AAC" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "OGG" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:4] Trying method "MAD" for "audio/mpeg"...
2021/11/11 00:52:35 [decoder:3] Method "MAD" accepted "audio/mpeg".
2021/11/11 00:52:35 [http_9125:3] Decoding...
2021/11/11 00:52:35 [mksafe:3] Switch to http_9125 with transition.

But into 2.0 that use FFMPEG into input.http, give that error:

[lrc @ 0x7fd3bc00cfc0] Format lrc detected only with low score of 5, misdetection possible!
2021/11/11 00:54:38 [input.http_0:4] Connection failed: (Failure "No valid stream found in file.")
toots commented 2 years ago

Thanks for this report. Will have a look shortly.

toots commented 2 years ago

Hi,

Support for playlists in input.http has been removed. We expect most users to use them with the playlist operator:

output.dummy(mksafe(playlist("http://playerservices.streamtheworld.com/pls/XHMVSFM.pls")))

Do you have a specific use-case for using input.http with playlists instead?

toots commented 2 years ago

I'm gonna mark this one as won't do. Please reopen if needed, we're alway open to discussing different usages.