Can not play https (not http) audio stream
by mackowiakp from LinuxQuestions.org on (#56XQE)
I want to stream internet audio over Bluetooth from CLI of Raspberry Pi to soundbar. For this purpose I use such command:
Code:mpg123 -b 1024 -a bluealsa:DEV=01:28:6F:AD:B5:4D,PROFILE=a2dp http://stream.rcs.revma.com/ypqt40u0x1zuvIt works properly. But when I try to use https, i got an errors:
Code:root@NanoPi-NEO:/home/pi/Pobrane# mpg123 -b 1024 -a bluealsa:DEV=01:28:6F:AD:B5:4D,PROFILE=a2dp https://stream.nowyswiat.online/mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.22.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
[readers.c:1182] error: Cannot open file https://stream.nowyswiat.online/mp3: No such file or directory
[mpg123.c:634] error: Cannot open https://stream.nowyswiat.online/mp3: File access error. (code 22)or
Code:root@NanoPi-NEO:/home/pi/Pobrane# mpg123 -b 1024 -a bluealsa:DEV=01:28:6F:AD:B5:4D,PROFILE=a2dp -@ https://stream.nowyswiat.online/mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.22.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
https://stream.nowyswiat.online/mp3: No such file or directorySo, how can I proper stream https stream?
My RPi does not have video chip (nano version), so only CLI is avaliable.


Code:mpg123 -b 1024 -a bluealsa:DEV=01:28:6F:AD:B5:4D,PROFILE=a2dp http://stream.rcs.revma.com/ypqt40u0x1zuvIt works properly. But when I try to use https, i got an errors:
Code:root@NanoPi-NEO:/home/pi/Pobrane# mpg123 -b 1024 -a bluealsa:DEV=01:28:6F:AD:B5:4D,PROFILE=a2dp https://stream.nowyswiat.online/mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.22.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
[readers.c:1182] error: Cannot open file https://stream.nowyswiat.online/mp3: No such file or directory
[mpg123.c:634] error: Cannot open https://stream.nowyswiat.online/mp3: File access error. (code 22)or
Code:root@NanoPi-NEO:/home/pi/Pobrane# mpg123 -b 1024 -a bluealsa:DEV=01:28:6F:AD:B5:4D,PROFILE=a2dp -@ https://stream.nowyswiat.online/mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.22.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
https://stream.nowyswiat.online/mp3: No such file or directorySo, how can I proper stream https stream?
My RPi does not have video chip (nano version), so only CLI is avaliable.