LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-06-2017, 02:47 PM   #1
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Rep: Reputation: 15
Is it possible to make MPD show the title/artist etc in the http stream?


I have mpd set up on my server to stream to the rest of my house but I'd like to be able to see the id3 info on the device streaming it. Is it possible to send that info through the http stream? If so, how?
 
Old 02-06-2017, 04:57 PM   #2
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
I don't think you can do that with the MPD built in httpd stream. But you can use icecast and set up a "shout" audio_output in mpd.conf, that should include the song title - there is an example shout output in the default mpd.conf commented out.

You will need to configure and run the icecast daemon, then mpd will send data to that, and you will point your music player at the icecast server to play music from.
 
Old 02-06-2017, 07:10 PM   #3
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
I run a http mp3 stream from mpd and I see the following reported by mplayer:

Code:
$ mplayer http://walden4.local:8000/
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
  :
Playing http://walden4.local:8000/.
  :
Connecting to server walden4.local[192.168.1.105]: 8000...

Name   : Pi HTTP Stream
Genre  : Set genre in config
Website: Set website in config
Public : yes
Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   
ICY Info: StreamTitle='The 99 Most Essential Christmas Masterpieces (Amazon Exclusive) - SWR Symphony Orchestra - A Christmas Festival Overture';StreamUrl='';
Cache fill: 17.50% (57344 bytes)
So I think title, artist and album tags are coming through.
 
1 members found this post helpful.
Old 02-07-2017, 04:49 AM   #4
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by pwalden View Post
I run a http mp3 stream from mpd and I see the following reported by mplayer:

Code:
$ mplayer http://walden4.local:8000/
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
  :
Playing http://walden4.local:8000/.
  :
Connecting to server walden4.local[192.168.1.105]: 8000...

Name   : Pi HTTP Stream
Genre  : Set genre in config
Website: Set website in config
Public : yes
Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   
ICY Info: StreamTitle='The 99 Most Essential Christmas Masterpieces (Amazon Exclusive) - SWR Symphony Orchestra - A Christmas Festival Overture';StreamUrl='';
Cache fill: 17.50% (57344 bytes)
So I think title, artist and album tags are coming through.
Do you have any settings in your mpd.conf in the httpd section to enable that?
 
Old 02-07-2017, 09:35 AM   #5
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
Quote:
Originally Posted by af7567 View Post
Do you have any settings in your mpd.conf in the httpd section to enable that?
Here is the setting in my /etc/mpd.conf

Code:
audio_output {
        type            "httpd"
        name            "Pi HTTP Stream"
        encoder         "lame"          # optional, vorbis or lame
        port            "8000"
#       quality         "5.0"                   # do not define if bitrate is defined
        bitrate         "128"                   # do not define if quality is defined
        format          "44100:16:1"
}
Perhaps it is the use of the "lame" encoder that does it.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Brasero audio cd Title and artist entry bscho Linux - Software 1 11-22-2015 05:27 AM
How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ? frenchn00b Linux - General 4 08-04-2008 05:40 AM
Streamtuner: Show song Artist/Title MargNat Linux - Software 4 12-09-2006 10:32 AM
File>> Artist>> Title>> Time>> Size amjad General 1 02-02-2005 03:30 PM
how do I modify .mp3 information (artist/title)? servnov Linux - General 5 11-12-2004 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:16 PM.

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