MPD as source works

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

MPD as source works

Post by sound selecta » Wed Dec 03, 2014 8:55 pm

I've just been testing MPD and it seems to work fine with Steamcast. I've only tested it with ogg stream since thats what Im running atm. I did have an issue with makiing the station title a link to my site.

In MPD there's a url peramater but its not being picked up by the YP directories. I had the same problem in Icecast2 and had to set the <source-url> in icecast.xml.

User avatar
Jay
Will work for food (Administrator)
Posts: 2795
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: MPD as source works

Post by Jay » Wed Dec 03, 2014 11:57 pm

If you could provide a link to your steamcast server I can check out what the issue is with the url.

Make sure you provide "http://" or "https://" to the beginning of the url is all I can think of off the top of my head.
- Jay

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Thu Dec 04, 2014 1:11 am

Ok tried it one more time and totally forgot Icecast guys said to use / at the end of the url. So that works now. Thanks. If I have time I'll do some more stream srouce testing with other Linux based sources/players and report on them.

User avatar
Jay
Will work for food (Administrator)
Posts: 2795
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: MPD as source works

Post by Jay » Thu Dec 04, 2014 1:19 am

Checked out your site.

You might want to change the listen link to: http://ice.futureassassin.com:8000/sbin ... 2Flive.ogg

We do no magic ext stuff in Steamcast at this time.
- Jay

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Thu Dec 04, 2014 11:00 pm

Jay wrote:Checked out your site.

You might want to change the listen link to: http://ice.futureassassin.com:8000/sbin ... 2Flive.ogg

We do no magic ext stuff in Steamcast at this time.
Hmm the listen url will not work on my players. Linux Mint 17 VLC, XFCE Video, Wine Foobar2000 If I tune in from the yp directories I can get it to play but not if I use that to create a link. On Windows it works though.

I also tired to create a m3u file with the http://ice.futureassassin.com:8000/listen.ogg but no go.

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Thu Dec 04, 2014 11:19 pm

Anyways I create a listen.m3u with http://ice.futureassassin.com:8000/live.ogg in it and its working so far. Added a mime type for the file just in case audio/x-mpegurl m3u

User avatar
Jay
Will work for food (Administrator)
Posts: 2795
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: MPD as source works

Post by Jay » Fri Dec 05, 2014 12:21 am

Hmm ok, we shall check it out and see if we can resolve those compatibility issues in Steamcast.

Thanks for the report and your support!
- Jay

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Fri Dec 05, 2014 12:38 am

Also need to add some more things about MPD.

ATM im using Ubuntu server 12.04. The MPD that came with it either doesn't support or has issues with sending the stream url (in icecast its <stream-url>mysite.com</stream-url>) So I had to upgrade to 0.17.1-0ubuntu1~precise4 which I got from this ppa https://launchpad.net/~gmpc-trunk/+arch ... mpd-stable I tried using the GIT repo at https://launchpad.net/~gmpc-trunk/+arch ... /mpd-trunk which caused weird issues and really high CPU usage.

With the new MPD 0.17.1-0ubuntu1~precise4 setting the url "yoursite.com" now works. Only one draw back is the CPU usage is still higher than the version that comes with Ubuntu 12.04. That one was 8-14CPU usage 0.17.1-0ubuntu1~precise4 is 8-20 cpu usage vs the git which was 20-50!

Here's my cfg file

Code: Select all

audio_output {
        type            "shout"
        encoding        "ogg"                   # optional
        name            "Old Skool and Ragga Jungle"
        host            "ice.futureassassin.com"
        port            "8000"
        mount           "/live.ogg"
        password        "mypass"
#       quality         "5.0"
        bitrate         "96"
        format          "44100:16:2"
        protocol        "icecast2"              # optional
        user            "myuser"                # optional
        description     "FutureAsssassin.com Old Skool and Ragga Jungle"        # opt$
        genre           "Jungle DnB"                    # optional
        public          "yes"                   # optional
#       timeout         "2"                     # optional
        url             "http://www.futureassassin.com/"
}

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Sat Dec 06, 2014 1:06 pm

Also here's a write up on getting MPD to run as a local user instead of a system daemon http://crunchbang.org/forums/viewtopic.php?pid=182574

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Fri Jan 29, 2016 3:16 pm

sound selecta wrote:I've just been testing MPD and it seems to work fine with Steamcast. I've only tested it with ogg stream since thats what Im running atm. I did have an issue with makiing the station title a link to my site.

In MPD there's a url peramater but its not being picked up by the YP directories. I had the same problem in Icecast2 and had to set the <source-url> in icecast.xml.
A small update. I noticed Steamcast is showing some tracks twice in the last played list. The problem is the tags in the track http://bugs.musicpd.org/print_bug_page.php?bug_id=4139

User avatar
Jay
Will work for food (Administrator)
Posts: 2795
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: MPD as source works

Post by Jay » Fri Jan 29, 2016 3:22 pm

You might consider cleaning up the tags in the file then, Steamcast is beholden to the source as to the legitimate track separation points. I would imagine that this is implemented in MPD this way because multiple tracks could be in a single file. If they are doing this in MP3 files at ID32 and ID31.1 tags, then this is their bug as that is not a standard approach to tagging in MP3.

Alternatively you could modify the script output to ignore duplicates.
- Jay

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Fri Jan 29, 2016 4:06 pm

Jay wrote:You might consider cleaning up the tags in the file then, Steamcast is beholden to the source as to the legitimate track separation points. I would imagine that this is implemented in MPD this way because multiple tracks could be in a single file. If they are doing this in MP3 files at ID32 and ID31.1 tags, then this is their bug as that is not a standard approach to tagging in MP3.

Alternatively you could modify the script output to ignore duplicates.
Well I just checked one of the tracks and I didn't see any duplicate tags/info in it. Will have to wait till I get home BUT I belive when playing ogg it does not do this but will have to test again.

User avatar
Jay
Will work for food (Administrator)
Posts: 2795
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: MPD as source works

Post by Jay » Fri Jan 29, 2016 4:19 pm

Well what I'm curious about is whether they see the two ID3 tags as distinct or the same. Check your mp3 files for both versions. Most tagging and mp3 players will treat them as one tag even though within the file they are in 2 different locations. ID3v1.1 is at the end of the file and ID3v2 is at the beginning.
- Jay

sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: MPD as source works

Post by sound selecta » Fri Jan 29, 2016 4:27 pm

Here's two files one shows twice one doesn't The tag editor shows the as both having two TAG versions

http://www.futureassassin.com/Cmc-And-P ... ever-2.mp3 - Shows twice
http://www.futureassassin.com/D.E.A.-Summer-Vibe.mp3 - Shows once

User avatar
Jay
Will work for food (Administrator)
Posts: 2795
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: MPD as source works

Post by Jay » Fri Jan 29, 2016 4:38 pm

That is probably what is happening then.

As an experiment remove the ID3v1 tag from a test file and send it through MPD and see if the duplicating meta entries occur for that file. If it does not then this is most definitely a bug in MPD.

What MPD should be doing is ignoring ID3v1 tags if it sees an ID3v2 tag. If only a v1 tag exist it should trigger that meta tag at the start of playback for that file.
- Jay

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests