Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpd pulseaudio-dlna stream to chromecast
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
magoscuro
n00b
n00b


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

PostPosted: Tue Oct 31, 2017 2:14 am    Post subject: mpd pulseaudio-dlna stream to chromecast Reply with quote

Hello,

I'm trying to make mpd streams music to a chromecast compatible device (Sony SRS-X88).
I'm currently using gentoo versions of pulseaudio and mpd (both user configured to be launched as regular user uid=1000, not daemon) and pulseaudio-dlna to detect remote speaker.
I'm using last kde (5.10.5), currently I can stream audio to my speaker OK (just choosing it from the plasma multimedia setup , pavucontrol equivalent)

mpd works OK through hdmi output (pulse index 0) if no sink if specified


Code:
> pacmd list-sinks
2 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9050
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
        card: 0 <alsa_card.pci-0000_01_00.1>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "1"
                alsa.card_name = "HDA ATI HDMI"
                alsa.long_card_name = "HDA ATI HDMI at 0xf7e40000 irq 30"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "aa60"
                device.product.name = "Redwood HDMI Audio [Radeon HD 5000 Series]"
                device.string = "hdmi:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo"
                device.profile.description = "Digital Stereo (HDMI)"
                device.description = "Redwood HDMI Audio [Radeon HD 5000 Series] Digital Stereo (HDMI)"
                alsa.mixer_name = "ATI R6xx HDMI"
                alsa.components = "HDA:1002aa01,00aa0100,00100200"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
        active port: <hdmi-output-0>
    index: 1
        name: <raop.Chromecast.local>
        driver: <module-raop-sink.c>
        flags: NETWORK DECIBEL_VOLUME LATENCY FLAT_VOLUME
        state: SUSPENDED
        suspend cause: IDLE
        priority: 0
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 1
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 0
        linked by: 0



and my mpd.conf output file

Code:
audio_output {
type "pulse"
name "MonaSons"
sink "raop.Chromecast.local"
## server "remote_server" # optional
#mixer_control "Master"
}


I'm currently getting this on my mpd log:

Code:
Oct 30 21:57 : pulse_output: "MonaSons" [pulse] failed to play: failed to connect the stream: No such entity
Oct 30 21:57 : output: Failed to open audio output


I've tried different name possibilities for the sink, and also sink numbers, with no success.
I hope I can get some help, this kind of setup are more and more common if you don't want to be on the spotify reign.

Thanks,
magoscuro
Back to top
View user's profile Send private message
magoscuro
n00b
n00b


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

PostPosted: Tue Nov 14, 2017 2:18 am    Post subject: Reply with quote

Hi,
just set mpd with a pure pulse out

Code:
audio_output {
type "pulse"
name "Mona"
}


Run pulseaudio-dlna and mpd from kde when computer starts
Set chromecast output as default
Works with 2s of delay, but work great.
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