SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#151 2012-10-27 15:53:42

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: The ultimate MPD guide

pid_file            "/var/run/mpd/pid"

Change the file name to /home/manning/.mpd/pidfile
And before you start mpd again make sure that the system daemon mpd is disabled:

sudo update-rc.d mpd disable

Offline

Be excellent to each other!

#152 2012-10-27 16:10:14

mosesgunn
#! CrunchBanger
Registered: 2012-10-20
Posts: 133

Re: The ultimate MPD guide

listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
Failed to load database: Failed to open database file "/home/manning/.mpd/tag_cache": No such file or directory

Alright!  that fixed my pid issues, now have to fix the listen issue and missing file.

Anymore sage advice?

@xaos52 Thanks!

Offline

#153 2012-10-27 16:34:22

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: The ultimate MPD guide

Do you have music files in /home/manning/music?
Run

touch $HOME/.mpd/tag_cache

Post output of

netstat -a | grep 6600

Last edited by xaos52 (2012-10-27 16:37:13)

Offline

#154 2012-10-27 16:36:35

mosesgunn
#! CrunchBanger
Registered: 2012-10-20
Posts: 133

Re: The ultimate MPD guide

@xaos52 I do have music there.

tcp        0      0 127.0.0.1:6600          0.0.0.0:*               LISTEN      6252/mpd

I changed my address from any to 127.0.0.1,  that seemed to get mpd started!  Now on to learn how to actually use it! Thanks for the help, I'm loving the move from Ubuntu so far!

Offline

#155 2012-12-25 00:16:49

lowrider
#! Die Hard
From: Germany
Registered: 2011-09-10
Posts: 647

Re: The ultimate MPD guide

@Ivanovnegro
First things first. Great HowTo Ivan! Everything worked out beautiful except for one thing. I have to do a

touch ~/.mpd/tag_cache

by myself to make things working automagical
Maybe

touch ~/.mpd/{mpd.db,mpd.log,mpd.pid,mpdstate}

should be

touch ~/.mpd/{mpd.db,mpd.log,mpd.pid,mpdstate,tag_cache}

or have i missed something?
Anyway, as i have said above. Great GREAT HowTo. Thank you for that!


came for the distro, stayed for the community
streamripper :: smxi

Offline

#156 2012-12-25 14:58:20

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,426

Re: The ultimate MPD guide

^ Thanks for the tip, could be, strange, I think it worked here without your step. But I will take it into account to trouble shoot.

Offline

#157 2013-01-13 13:56:38

phl
Member
Registered: 2012-12-08
Posts: 15

Re: The ultimate MPD guide

hey guys
i started using mpd last week and i really love it, somehow i got it synched with lastfm so its awesome. my only problem is i cant delete files from the disk. its important because i cant really reach my music files from thunar cuz the directory names are different and i have so much music. i copied this line to .ncmpcpp/config

allow_physical_file_deletion = "yes"

but it still tells me that deleting files i disabled by default. can anybody help me with this?

Offline

#158 2013-01-13 18:48:53

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,426

Re: The ultimate MPD guide

What version of ncmpcpp do you use right now? Anyway, you can delete the directories manually, that is my default setting.

apt-cache policy ncmpcpp

Look here, they talked about it:

http://ncmpcpp.rybczak.net/

Part of it:

ATTENTION: Feature that allows you to physically remove directories from disk is BROKEN IN ALL VERSIONS < 0.5.4 and may, under some random circumstances, cause UNWANTED DELETION OF OTHER FILES. It needs to be manually enabled in configuration file, so if you don't use it, you're fine. Otherwise you should upgrade to 0.5.4 or higher version immediately.

Offline

#159 2013-01-23 17:57:28

phl
Member
Registered: 2012-12-08
Posts: 15

Re: The ultimate MPD guide

thanks for the reply, but i have an older version, and i visited that page. btw i cant care about this because my whole system broke down haha.

Offline

#160 2013-02-11 02:56:05

qwertinsky
New Member
Registered: 2013-02-11
Posts: 4

Re: The ultimate MPD guide

How do I play am icecast stream with MPD?

I can find thousands of faq's on how to stream with MPD and Icecast but nothing on how to play an Icecast stream.

The Icecsat server is on my local network

I have tried

mpc add http://192.168.1.117:8000/bska0.m3u

Then mpc play but nothing happens

After mpc stop I get the message

ERROR: problems decoding "http://192.168.1.117:8000/bska0.m3u"

I can play this stream on plenty of other media players and you can play it here:

http://bhamscanner.kicks-ass.org:8000/bska0.m3u

Offline

#161 2013-02-11 08:13:29

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The ultimate MPD guide

You can't.
MPD is audio server, and that meant it need to scan all the audio file before it could serve it. It can't do that with stream.
You must find client that work with both MPD and Icecast.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#162 2013-02-11 08:27:48

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,339

Re: The ultimate MPD guide

...or, accept that you might want to use a separate client for playing icecast/shoutcast streams.  "Do one thing well" - the Linux way, innit? wink


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#163 2013-02-11 08:46:07

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The ultimate MPD guide

or... make local icecast server, restream by it icecast stream from net and stream mpd to it... dunno if you can do that but that way you could just use icecast client to play all


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#164 2013-02-11 18:19:31

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,426

Re: The ultimate MPD guide

You can play m3u's and radio stations, if that is what you want. Put it in:

~/.mpd/playlists

Offline

#165 2013-02-12 00:57:58

qwertinsky
New Member
Registered: 2013-02-11
Posts: 4

Re: The ultimate MPD guide

ivanovnegro wrote:

You can play m3u's and radio stations, if that is what you want. Put it in:

~/.mpd/playlists

Put what? The m3u?

I searched and I can not find the actual m3u anywhere in the Icecast2 directories or in /var/www that hosts the stream websit

find: `bska0.m3u': No such file or directory
find: `*.m3u': No such file or directory

Last edited by qwertinsky (2013-02-12 01:07:30)

Offline

#166 2013-02-12 00:59:30

qwertinsky
New Member
Registered: 2013-02-11
Posts: 4

Re: The ultimate MPD guide

What are decent alternatives that will play an Icecast stream?

I am looking for something console based and low power requirements as I want to run it on a raspberry pi

Offline

#167 2013-02-12 09:34:40

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The ultimate MPD guide

mplayer - 13MB static (dynamic: 28KB + libraries)
cvlc (console vlc) - static dunno, have only shared, 15KB + libraries

Last edited by dk75 (2013-02-12 09:48:38)


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#168 2013-02-12 17:49:07

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,426

Re: The ultimate MPD guide

@qwertinsky: If you are not happy with the answers provided here then do not troll in my thread. Ever heard about Google?

Offline

#169 2013-02-16 04:30:09

qwertinsky
New Member
Registered: 2013-02-11
Posts: 4

Re: The ultimate MPD guide

ivanovnegro wrote:

@qwertinsky: If you are not happy with the answers provided here then do not troll in my thread. Ever heard about Google?

Asking you for further explanation of the answer you gave me is trolling your thread?

This is what is wrong with the Linux community as a whole.

Offline

#170 2013-02-16 06:22:35

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,426

Re: The ultimate MPD guide

^ I am sorry!

This is what made me crazy:

qwertinsky wrote:

Put what? The m3u?

Had a bad day.

m3u's, that is the ending of the streams when you download them from the internet. You can put them into the directory of your mpd config in your home folder and they will be available to play from your clients. I use ncmpcpp.
But honestly I use just mplayer for playing radio streams.

I would suggest you make a new thread about your streaming wishes or search for another thread.

And again, I am sorry for being aggressive without real reason. If you look at the whole thread you will see I was very polite and helpful. smile

Offline

#171 2013-02-18 15:48:00

dawiba
#! Member
Registered: 2012-04-17
Posts: 91

Re: The ultimate MPD guide

.

Last edited by dawiba (2014-04-04 17:04:41)

Offline

#172 2013-02-27 23:24:38

Nanoseb
Member
Registered: 2012-10-20
Posts: 14

Re: The ultimate MPD guide

Hello,
I have a problem with the configuration of mpd, I usually listen music with a bluetooth adapter connected on my stereo (and it work well with Clementine), but I can't make mpd play music on it.
To make the bluetooth work I added this in /etc/asound.conf :

pcm.btheadset {
   type plug
   slave {
       pcm {
           type bluetooth
           device 00:02:72:EA:71:B5
           profile "auto"
       }   
   }   
   hint {
       show on
       description "BT Headset"
   }   
}
ctl.btheadset {
  type bluetooth
} 

Every think seems to be ok with alsa, aplay -L send me back :

btheadset
    BT Headset

And in my ~/.mpd/mpd.conf I tried to put lot of different thinks without success, like :

 audio_output {
            type                    "pulse"
            name                    "btheadset"
            device                  "btheadset"
            format                  "44100:16:2"
   }

Or

 audio_output {
            type                    "alsa"
            name                    "btheadset"
            device                  "btheadset"
            format                  "44100:16:2"
   }

And

 audio_output {
            type                    "alsa"
            name                    "btheadset"
            device                  "pcm.btheadset"
            format                  "44100:16:2"
   }
...

So if anyone have the good audio_output configuration for me I will thank him a lot ^^

PS : sorry for my English but I'm French

Offline

#173 2013-02-28 13:59:51

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The ultimate MPD guide

Post uncut output of both command:

aplay -L
aplay -l

Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#174 2013-02-28 14:05:35

Nanoseb
Member
Registered: 2012-10-20
Posts: 14

Re: The ultimate MPD guide

 ┌────[seb@stien]────────────────────────────────────────────────────[15:03:34]────┐
 └───> ~ $ aplay -l
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: Intel [HDA Intel], périphérique 0: ALC269 Analog [ALC269 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: Generic [HD-Audio Generic], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
 ┌────[seb@stien]────────────────────────────────────────────────────[15:05:00]────┐
 └───> ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    Playback/recording through the PulseAudio sound server
btheadset
    BT Headset
sysdefault:CARD=Intel
    HDA Intel, ALC269 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output

Last edited by Nanoseb (2013-02-28 14:06:18)

Offline

Help fund CrunchBang, donate to the project!

#175 2013-02-28 14:32:49

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The ultimate MPD guide

Aplay sees "btheadset" PCM but it doesn't see Bluetooth hardware.

Either try to push some RAW audio trough "aplay" to headset for check if it really works:

aplay -D btheadset sound.raw

or ditch ALSA and play trough PULSE, and change output  in system sound preference to BT during playback.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo