Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Play MPD stream with Cantata
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 2688
Location: de

PostPosted: Sun Apr 06, 2014 2:28 pm    Post subject: Play MPD stream with Cantata Reply with quote

Hi there,

I'm using cantata to control my MPD on my HTPC to play music there. Works fine.

Now I got the idea to use that thing into the other direction. Means play the output stream with Cantata.

Config on server:
/etc/mpd.conf:
audio_output {                                                                               
    type        "httpd"
    name        "Stream"
    encoder     "vorbis"        # optional, vorbis or lame
    port        "8000"
    bind_to_address "0.0.0.0"   # optional, IPv4 or IPv6
    quality     "6.0"           # do not define if bitrate is defined
    format      "44100:16:1"
    max_clients "0"             # optional 0=no limit
}


On Client:
Cantata -> Preferences -> Output
Code:
[x] HDA Intel
[x] Stream


And my computer keeps quiet. No error message.

I can play the stream with:
Code:
mplayer http://htpc:8000


But I wonder, if I really need mplayer to play that stream. Cantata should be able to do this on its own.

http://mpd.wikia.com/wiki/Client:Cantata
Quote:
Features:
...
Ability to play MPD HTTP output stream
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 2688
Location: de

PostPosted: Sun Apr 06, 2014 2:32 pm    Post subject: Reply with quote

Found a first hint.

https://gitorious.org/cantata/cantata/commit/aad0a866658c2895d02756583a787a6ea4261994
Code:
 #if QT_VERSION < 0x050000
   87    if (Phonon::PlayingState!=player->state()) {
   88    player->play();
   89    }
   90    #else
   91    if (QMediaPlayer::PlayingState!=player->state()) {
   92    player->play();
   93    }
   94    #endif


If I start qtconfig, Phonon isn't available there. Of course in KDE it is. Trying to install qtphonon gives me:

emerge -1 qtphonon:
Calculating dependencies... done!
[ebuild  N     ] dev-qt/qtphonon-4.8.5  USE="dbus exceptions qt3support (-aqua) -debug -pch"
[uninstall     ] kde-base/kdelibs-4.12.3-r1
[blocks b      ] dev-qt/qtphonon ("dev-qt/qtphonon" is blocking kde-base/kdelibs-4.12.3-r1)
[blocks B      ] dev-qt/qtphonon:4 ("dev-qt/qtphonon:4" is hard blocking media-libs/phonon-4.7.1)
[blocks B      ] media-libs/phonon ("media-libs/phonon" is blocking dev-qt/qtphonon-4.8.5)
[blocks B      ] kde-base/phonon-kde ("kde-base/phonon-kde" is blocking dev-qt/qtphonon-4.8.5)


What does that mean? Is qtphonon included in phonon-kde? If not, can't Cantata play mpd streams, because qtphonon isn't available?
Back to top
View user's profile Send private message
alexcortes
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2011
Posts: 124
Location: Rio de Janeiro, Brazil

PostPosted: Wed Apr 09, 2014 4:12 am    Post subject: Reply with quote

Did you enable the http-server flag on cantata?

Cheers!
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 2688
Location: de

PostPosted: Wed Apr 09, 2014 4:15 pm    Post subject: Reply with quote

Oi,

I didn't find something like a server flag:
Code:
equery u cantata
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-sound/cantata-1.2.2:
 U I
 + + cdda          : Add Compact Disk Digital Audio (Standard Audio CD) support
 + + cddb          : Access cddb servers to retrieve and submit information
                     about compact disks
 + + kde           : Add support for KDE (K Desktop Environment)
 + + lame          : Prefer using LAME libraries for MP3 encoding support
 - - linguas_cs    : Czech locale
 + + linguas_de    : German locale
 - - linguas_en_GB : English locale for Britain
 - - linguas_es    : Spanish locale
 - - linguas_hu    : Hungarian locale
 - - linguas_ko    : Korean locale
 - - linguas_pl    : Polish locale
 - - linguas_ru    : Russian locale
 - - linguas_zh_CN : Chinese locale for Peoples Republic of China
 - - mtp           : Enable support for Media Transfer Protocol
 - - musicbrainz   : Lookup audio metadata using MusicBrainz community service
                     (musicbrainz.org)
 - - replaygain    : Enable ReplayGain support, for relative volume
                     adjustments.
 + + taglib        : Enable tagging support with taglib


Btw. I have the same problem with MPDroid on my Samsung Galaxy.
Back to top
View user's profile Send private message
alexcortes
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2011
Posts: 124
Location: Rio de Janeiro, Brazil

PostPosted: Wed Apr 09, 2014 4:25 pm    Post subject: Reply with quote

Ok, I'm on Cantata-1.3.3

Code:
* Found these USE flags for media-sound/cantata-1.3.3:
 U I
 + + cdda            : Add Compact Disk Digital Audio (Standard Audio CD) support
 - - cddb            : Access cddb servers to retrieve and submit information about compact disks
 + + devices         : Enable suport for external devices
 + + dynamic         : Enable support for dynamic playlists
 - - http-server     : Enable internal HTTP server to play non-MPD files
 + + kde             : Add support for KDE (K Desktop Environment)
 + + lame            : Prefer using LAME libraries for MP3 encoding support
 - - linguas_cs      : Czech locale
 - - linguas_de      : German locale
 - - linguas_en_GB   : English locale for Britain
 - - linguas_es      : Spanish locale
 - - linguas_hu      : Hungarian locale
 - - linguas_ko      : Korean locale
 - - linguas_pl      : Polish locale
 - - linguas_ru      : Russian locale
 - - linguas_zh_CN   : Chinese locale for Peoples Republic of China
 - - mtp             : Enable support for Media Transfer Protocol
 + + musicbrainz     : Lookup audio metadata using MusicBrainz community service (musicbrainz.org)
 - - online-services : Enable support for online services (Jamendo, Magnatune, SoundCloud, and Podcasts)
 - - replaygain      : Enable ReplayGain support, for relative volume adjustments
 + + streams         : Enable support for streams tab (to save favourite streams, and search for others)
 + + taglib          : Enable tagging support with taglib
Back to top
View user's profile Send private message
magoscuro
n00b
n00b


Joined: 18 Mar 2005
Posts: 20
Location: Santiago de Chile

PostPosted: Wed Nov 26, 2014 10:58 pm    Post subject: Reply with quote

to enable httpd stream playback support on cantata 1.3.4:

modifiy ebuild : /usr/portage/media-sound/cantata/cantata-1.3.4.ebuild

change line :
Code:
 -DENABLE_HTTP_STREAM_PLAYBACK=OFF

to :
Code:
 -DENABLE_HTTP_STREAM_PLAYBACK=ON


then digest the ebuild :

Code:
ebuild cantata-1.3.4.ebuild digest


then reemerge cantata, you should have a url line now preferences/colection.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum