hls: choppy radio stream
Hi,
through https://gitlab.com/goodvibes/goodvibes/-/issues/145, I discovered a HLS audio stream (an internet radio station) that doesn't play right with GStreamer. The sound is choppy. The URL for the station is https://hls-01-radiorecord.hostingradio.ru/record-brks/96/playlist.m3u8.
One can try it with:
gst-launch-1.0 playbin uri='https://hls-01-radiorecord.hostingradio.ru/record-brks/96/playlist.m3u8'
Upon download, the playlist looks like that:
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:3427745
#EXTINF:4.99229,
https://hls-07-storage.hostingradio.ru/record-brks/96/out3427745.ts
#EXTINF:4.99229,
https://hls-07-storage.hostingradio.ru/record-brks/96/out3427746.ts
#EXTINF:4.99229,
https://hls-07-storage.hostingradio.ru/record-brks/96/out3427747.ts
#EXTINF:4.99229,
https://hls-07-storage.hostingradio.ru/record-brks/96/out3427748.ts
#EXTINF:4.99229,
https://hls-07-storage.hostingradio.ru/record-brks/96/out3427749.ts
#EXTINF:4.99229,
https://hls-07-storage.hostingradio.ru/record-brks/96/out3427750.ts
One thing that caught my eyes here is that the value for EXT-X-TARGETDURATION
is different from the value for EXTINF
. But after a very quick search, it seems that it shouldn't be a problem.
I also wonder about EXT-X-VERSION:6
, which means CLOSED-CAPTIONS media type, but TBH I have no clue what it means.
Another surprising thing with this stream is that GStreamer doesn't send any buffering message, never ever. My application strongly expected that, so it fails to play this stream, but I realized that it's a mistake on my side.
Anyway. In the end I tried to play this stream with VLC (just picked the latest VLC from Flatpak), and the stream plays just fine.
Thanks for reading!