LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mpg123 https://... (https://www.linuxquestions.org/questions/linux-general-1/mpg123-https-4175723719/)

ArchaicBlues 04-03-2023 02:17 PM

mpg123 https://...
 
Hallo there...!
Help would greatly appreciated...

Executing mpg123 with an http URL will work fine on Manjaro PC and Raspberry .
Executing mpg123 with an https URL will work fine on Manjaro PC BUT NOT on Raspberry.
Why?
I see with Wireshark that Manjaro connects with the Security Layer..but I don't no who causes the correct traffic ??

On the Raspberry I installed Apache-Server with Key & Certificate. But it will still not work.
The Apache Configuration file looks like:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

#Redirecting Http to Https
#One more addictional feature, you could need routing all http connections to https pages.
#This trick can be achieved by adding a Redirect in your Apache default configuration.
Redirect "/" "https://192.168.2.78/"


# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "/etc/ssl/certs/certificate.crt"
SSLCertificateKeyFile "/etc/ssl/private/private.key"
</VirtualHost>

I use this example:
mpg123 https://live.wostreaming.net/direct/ppm-knkxfmmp3-ibc1

Thanks for helping

dugan 04-04-2023 08:58 AM

Is there a reason it has to be mpg123 and not, say, mpv?

ArchaicBlues 04-04-2023 11:07 AM

Thank you very much ! It works !!
pi@rpi3:~ $ mpv --audio-device=alsa/sysdefault:CARD=Headphones https://live.wostreaming.net/direct/ppm-knkxfmmp3-ibc1
(+) Audio --aid=1 (mp3 2ch 44100Hz)
File tags:
icy-title: - Jazz, Blues and NPR News
AO: [alsa] 44100Hz stereo 2ch float
A: 00:00:06 / 00:00:23 (29%) Cache: 16s/478KB


All times are GMT -5. The time now is 10:19 AM.