LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2023, 02:17 PM   #1
ArchaicBlues
LQ Newbie
 
Registered: Oct 2012
Location: Germany
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
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

Last edited by ArchaicBlues; 04-03-2023 at 02:18 PM.
 
Old 04-04-2023, 08:58 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Is there a reason it has to be mpg123 and not, say, mpv?
 
1 members found this post helpful.
Old 04-04-2023, 11:07 AM   #3
ArchaicBlues
LQ Newbie
 
Registered: Oct 2012
Location: Germany
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thumbs up

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
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need suggestion:->>Failed HTTPS transfer to https://supportfiles.sun.com/curl manalisharmabe Solaris / OpenSolaris 11 01-10-2014 12:58 AM
https certication error , the page can not be loaded via https ust Linux - Server 2 11-21-2013 08:49 PM
redirect https://www.domain.com to https://domain.com decenter Linux - Server 4 09-13-2011 10:05 AM
apache 2.0 https to https redirect struct Linux - Software 1 04-22-2011 05:43 PM
Run mpg123: system("mpg123"); How to know what PID it gets? And a Emacs highlightin q kornerr Programming 10 08-06-2005 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration