{"id":36,"date":"2014-09-29T06:33:00","date_gmt":"2014-09-29T06:33:00","guid":{"rendered":"http:\/\/www.asianux.org.vn\/index.php\/2014\/09\/29\/streaming-audio-from-linux-to-raspbmc\/"},"modified":"2014-09-29T06:33:00","modified_gmt":"2014-09-29T06:33:00","slug":"streaming-audio-from-linux-to-raspbmc","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2014\/09\/29\/streaming-audio-from-linux-to-raspbmc\/","title":{"rendered":"Streaming Audio From Linux to Raspbmc"},"content":{"rendered":"<div style=\"-webkit-text-stroke-width: 0px; background-color: white; border: 0px; clear: both; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; margin: 0px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;\">\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Early in 2014, I finally got around to turning my<span>&nbsp;<\/span><a href=\"http:\/\/www.raspberrypi.org\/\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"Raspberry Pi\" rel=\"noopener\">Raspberry Pi<\/a>&nbsp;in to a little XMBC media centre by installing<span>&nbsp;<\/span><a href=\"http:\/\/www.raspbmc.com\/\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"Raspbmc\" rel=\"noopener\">Raspbmc<\/a>. Which was fun. And also easy.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Perhaps a little too easy: I\u2019m a bit of a nerd, so it didn\u2019t take long to get bored of just playing regular type media off the external hard drive. Part of the reason I have a Raspberry Pi, is for the fun of thinking of what relatively useless thing I might potentially do with it next, and then spending (wasting?) many hours trying to do it.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">So, as I was trying to decide what to do next, I considered the fact that I fairly often like to play music on my PC&nbsp;while I\u2019m working. And my sound system is now hooked up to the Raspberry Pi. So it would be most convenient if I could just deliver the sound across my network for Raspbmc to play for me. I was&nbsp;running Ubuntu 13.10 \u2013&nbsp;Saucy Salamander \u2013 at the time.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">This turned out to be a lot harder than you might imagine. Excellent. (Disclaimer: this was in 2014 \u2013 I suppose it might be easier now \u2026 if so, I apologise for the convenience).<span style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\"><\/span><\/div>\n<h2 style=\"border: 0px; font-family: inherit; font-size: 2.25em; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: 1em; margin: 0.75em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Option 1: PulseAudio Network Streaming<\/h2>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Ubuntu uses PulseAudio by default for soundy things. So that is where I started my quest. If you pop open<span>&nbsp;<\/span><em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">paprefs<\/em><span>&nbsp;<\/span>(installing it first, if it\u2019s not there), you will notice that it claims to be able to do things over a network.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/paprefs-network.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"paprefs-network\" class=\"alignnone size-full wp-image-537\" height=\"324\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/paprefs-network.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"641\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Here is a link to the incomprehensible documentation about it: &nbsp;<a href=\"http:\/\/www.pulseaudio.org\/wiki\/NetworkSetup\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"NetworkSetup\" rel=\"noopener\">NetworkSetup<\/a>. At least, it was incomprehensible when I first read it. It now makes a little bit more sense \u2013 but I assume that you are at the start of your journey if you are even reading this \u2013 so it probably won\u2019t make much sense to you. Alternatively you could have a read of this blog that claims to<span>&nbsp;<\/span><a href=\"http:\/\/psung.blogspot.com\/2011\/09\/network-audio-with-pulseaudio-made.html\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"Network audio with PulseAudio made (somewhat) easy\" rel=\"noopener\">make network audio with PulseAudio (somewhat) easy<\/a>.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">However, I decided to abandon this idea:<\/div>\n<ol style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 22px; list-style: decimal outside; margin: 0px 1.5em 1.5em 0px; padding: 0px 0px 0px 2em; vertical-align: baseline;\">\n<li style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">Raspbmc doesn\u2019t install with PulseAudio by default \u2013 and you would need it to be running in server mode \u2013 and at time of writing the people of the internet seemed to be having some trouble getting them to play together.<\/li>\n<li style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">I wanted something that was more integrated with the XMBC user interface \u2013 rather than just something running in parallel.<\/li>\n<\/ol>\n<h2 style=\"border: 0px; font-family: inherit; font-s\nize: 2.25em; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: 1em; margin: 0.75em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Option 2: Apple AirPlay<\/h2>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><span style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 1.5em; margin: 0px; padding: 0px; vertical-align: baseline;\">Perhaps, like me, you noticed that&nbsp;<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">paprefs<\/em>&nbsp;has greyed-out option: \u201cMake discoverable Apple AirTunes sound devices available locally\u201d. That is interesting. Especially since you<\/span>&nbsp;can set your XMBC up to be a target for&nbsp;<a href=\"http:\/\/wiki.xbmc.org\/index.php?title=AirPlay\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"Apple AirPlay\" rel=\"noopener\">Apple AirPlay<\/a>&nbsp;sources \u2013 making it look like a set of AirPlay speakers to any iDevices on your network. &nbsp;I tested it out with an iPod Touch \u2013 and it worked really nicely.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/xbmc-airplay-1024x576.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"xbmc-airplay\" class=\"alignnone size-large wp-image-544\" height=\"309\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/xbmc-airplay-1024x576-300x169.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"550\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">But how to get that option un-greyed-out? The internet suggested the following (might have been nice for<span>&nbsp;<\/span><em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">paprefs<\/em><span>&nbsp;<\/span>to give me a hint):<\/div>\n<blockquote style=\"background: rgb(249, 249, 249); border-left-color: rgb(214, 214, 214); border-left-width: 4px; border-style: none none none solid; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; overflow: auto; padding: 0px 1em; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: 26px; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">sudo apt-get install pulseaudio-module-raop<\/div>\n<\/blockquote>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Now you can try it out:<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/paprefs-airplay.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"paprefs-airplay\" class=\"alignnone size-full wp-image-534\" height=\"326\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/paprefs-airplay.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"727\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">This will add a new audio device that you can select from your Sound Settings page, with the name of your XMBC. However, if you are like me, you may discover that it it<span>&nbsp;<\/span><strong style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">does not work<\/strong>. At all. Except to produce a stream of nasty, choppy, ear-burning noise.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">You might even be persistent and try out&nbsp;<a href=\"http:\/\/hfujita.github.io\/pulseaudio-raop2\/\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"Pulseaudio-raop2\" rel=\"noopener\">Pulseaudio-raop2<\/a>. In which case, if you are like me, you will discover that it, too,&nbsp;<strong style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">does not work<\/strong>, and also crashes quite a lot (which is fair \u2013 since it is experimental).<\/div>\n<h2 style=\"border: 0px; font-family: inherit; font-size: 2.25em; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: 1em; margin: 0.75em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Option 3: Multicast\/RTP<\/h2>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">I put this in for completeness sake. I didn\u2019t get very far in investigating it as an option. I did a couple of experiments trying to get it to work between two Linux PCs before attempting it with the Raspberry Pi and was getting very choppy sound \u2013 so abandoned it and moved on.<\/div>\n<h2 style=\"border: 0px; font-family: inherit; font-size: 2.25em; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: 1em; margin: 0.75em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Option 4: DLNA\/UPnP<\/h2>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px;\nvertical-align: baseline; word-wrap: break-word;\">My final, and successful(!), &nbsp;attempt involved DLNA\/UPnP media streaming. On the<span>&nbsp;<\/span><em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">paprefs<\/em>Network Server tab was another greyed-outed option \u201cMake local sound devices available as DLNA\/UPnp Media Server\u201d.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">But how to get it un-greyed-out?&nbsp;The internet suggested the following (might have been nice for<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">paprefs<\/em><span>&nbsp;<\/span>to give me a hint):<\/div>\n<blockquote style=\"background: rgb(249, 249, 249); border-left-color: rgb(214, 214, 214); border-left-width: 4px; border-style: none none none solid; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; overflow: auto; padding: 0px 1em; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: 26px; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">sudo apt-get install rygel<\/div>\n<\/blockquote>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/paprefs-upnppng.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: 1.5em; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"paprefs-upnp\" class=\"alignnone size-full wp-image-541\" height=\"326\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/paprefs-upnppng.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"727\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">This too adds a new audio device that you can select:<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/sound-settings.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"sound-settings\" class=\"alignnone size-full wp-image-542\" height=\"434\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/sound-settings.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"852\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Now go to your XBMC File Manager and look for a new UPnP device to add as a Source:<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/xbmc-upnp-browse-1024x576.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"xbmc-upnp-browse\" class=\"alignnone size-large wp-image-546\" height=\"309\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/xbmc-upnp-browse-1024x576-300x169.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"550\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Unfortunately, you are likely to find &nbsp;<strong style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 700; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">nothing<\/strong><span>&nbsp;<\/span>there.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Hmm.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Turns out that you have two problems:<\/div>\n<ol style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 22px; list-style: decimal outside; margin: 0px 1.5em 1.5em 0px; padding: 0px 0px 0px 2em; vertical-align: baseline;\">\n<li style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">Rygel isn\u2019t running \u2013 you need to start it manually from a shell (<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">rygel<\/em>), or set up init scripts yourself (I didn\u2019t bother);<\/li>\n<li style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">Rygel needs to be configured to actually publish PulseAudio\u2019s stream using \u2018<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">GstLaunch<\/em>\u2018. Obviously.<\/li>\n<\/ol>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">To configure Rygel, you\u2019ll need to edit one of its configuration files.&nbsp;Rygel can be<span>&nbsp;<\/span><a href=\"https:\/\/wiki.gnome.org\/Projects\/Rygel\/Con\nfiguration\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"Rygel Configuration\" rel=\"noopener\">configured<\/a>globally (<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">\/etc\/rygel.conf<\/em>) or per-user (<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">$HOME\/.config\/rygel.conf<\/em>). I just edited the global one.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Find the GstLaunch section, and add some config like this* (in my default install it was disabled):<\/div>\n<blockquote style=\"background: rgb(249, 249, 249); border-left-color: rgb(214, 214, 214); border-left-width: 4px; border-style: none none none solid; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; overflow: auto; padding: 0px 1em; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 18px; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: 26px; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">[GstLaunch]<br \/>enabled=true<br \/>launch-items=mypulseaudiosink<br \/>mypulseaudiosink-title=Audio on @HOSTNAME@<br \/>mypulseaudiosink-mime=audio\/flac<br \/>mypulseaudiosink-launch=pulsesrc device=upnp.monitor ! flacenc<\/div>\n<\/blockquote>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><sup style=\"border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: super;\">* Courtesy of<span>&nbsp;<\/span><a href=\"http:\/\/dpc.ucore.info\/blog\/2012\/11\/07\/dlna-streaming-in-ubuntu-12-dot-10\/\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" title=\"DLNA Streaming in Ubuntu 12.10\" rel=\"noopener\">dpc\u2019s blog<\/a>.<\/sup><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">That setup gets Rygel to publish a new stream called \u2018GstLaunch\/Audio on &lt;my pc&gt;\u2019. The stream will be publishing whatever sound is produced by the PulseAudio \u2018upnp.monitor\u2019 source \u2013 which is what all of those<span>&nbsp;<\/span><em style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: italic; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">paprefs<\/em><span>&nbsp;<\/span>settings were actually enabling. It will also transcode that audio stream to FLAC, which is lossless, but also compressed enough to work fine over my WiFi without causing trouble \u2013 and with only a couple of seconds of buffering required on the other end.<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Now you can add the GstLaunch item as a source through your XMBC File Manager:<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/xbmc-upnp-finding-gstlaunch-1024x576.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"xbmc-upnp-finding-gstlaunch\" class=\"alignnone size-large wp-image-545\" height=\"309\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/xbmc-upnp-finding-gstlaunch-1024x576-300x169.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"550\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Now you are able select your PC\u2019s audio as a stream and connect to it:<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/my-audio-1024x576.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"my-audio\" class=\"alignnone size-large wp-image-555\" height=\"309\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/my-audio-1024x576-300x169.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"550\" title=\"\"><\/a><\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\">Finally, your XBMC is playing your PC\u2019s audio through your sound system. Hooray!<\/div>\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 1.6em 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;\"><a href=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/my-audio-playing-1024x576.png\" style=\"border: 0px; color: #0066cc; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" alt=\"my-audio-playing\" class=\"alignnone size-large wp-image-554\" height=\"309\" src=\"http:\/\/onlinelab.info\/wp-content\/uploads\/2014\/09\/my-audio-playing-1024x576-300x169.png\" style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: auto; line-height: inherit; margin: 5px 20px 20px 0px; max-width: 100%; padding: 0px; vertical-align: middle;\" width=\"550\" title=\"\"><\/a><\/div>\n<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #111111; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: 28px; letter-s\npacing: normal; line-height: 28px; margin: 20px 0px; orphans: auto; padding: 0px 5px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;\">http:\/\/westmarch.sjsoft.com\/<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Early in 2014, I finally got around to turning my&nbsp;Raspberry Pi&nbsp;in to a little XMBC media centre by installing&nbsp;Raspbmc. Which was fun. And also easy. Perhaps a little too easy: I\u2019m a bit of a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":89,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solution"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}