YouTube Support (Search and Play)

Suggestions/requests/ideas for RuneAudio core features and functions

YouTube Support (Search and Play)

Postby LatroX » 12 Dec 2014, 08:43


an YouTube support like that one in pi MusicBox whould be nice.
Search with Title or Artist.
Play it with the URL.
Posts: 1
Joined: 12 Dec 2014, 08:39

Re: YouTube Support (Search and Play)

Postby Filip » 25 Apr 2015, 08:53

Yep, this would the feature I'm looking forward to. Any chance of it ever gettin in Rune?
Posts: 10
Joined: 07 Nov 2014, 17:35

Re: YouTube Support (Search and Play)

Postby hondagx35 » 25 Apr 2015, 12:22

Hi all,

i have no solution for your wishes yet, but as a starting point you can try:
- ssh to your RP
- install youtube-dl
Code: Select all
pacman -Sy
pacman -S youtube-dl

- get a youtube url
for example
- extract the stream url and add it to mpd playlist
Code: Select all
mpc add $(youtube-dl -f141 -g

With the parameter -f you can select the bitrate.

- To determin which bitrates are available try:
Code: Select all
youtube-dl -F

should give you something like this:
Code: Select all
[info] Available formats for lLJf9qJHR3E:
format code  extension  resolution note
171          webm       audio only DASH audio  125k , audio@128k (44100Hz), 3.54MiB
140          m4a        audio only DASH audio  128k , m4a_dash container, aac  @128k (44100Hz), 3.90MiB
141          m4a        audio only DASH audio  255k , m4a_dash container, aac  @256k (44100Hz), 7.83MiB
278          webm       256x144    DASH video   89k , webm container, VP9, 1fps, video only, 2.33MiB
160          mp4        256x144    DASH video  112k , 15fps, video only, 3.28MiB
242          webm       426x240    DASH video  199k , 1fps, video only, 4.49MiB
133          mp4        426x240    DASH video  246k , 25fps, video only, 7.32MiB
243          webm       640x360    DASH video  364k , 1fps, video only, 7.98MiB
134          mp4        640x360    DASH video  571k , 25fps, video only, 11.17MiB
17           3gp        176x144
36           3gp        320x240
5            flv        400x240
43           webm       640x360
18           mp4        640x360    (best)

In this example 140 and 141 are the interesting ones for us.

- you also can add whole youtube playlists:
Code: Select all
 mpc add $(youtube-dl -f141 -g

The entries in your playlist do not look very good, because mpd adds the whole stream url as a name.
I hope this helps and we can find someone to implement this.

User avatar
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: YouTube Support (Search and Play)

Postby Filip » 25 Apr 2015, 12:34

Hi Frank,

Thanks for your post - that's definitely a step in the right direction - I'll give it a go and see what gives. Thanks again!
Posts: 10
Joined: 07 Nov 2014, 17:35

Re: YouTube Support (Search and Play)

Postby LC1 » 07 May 2015, 08:17

This is the feature that I'm also keenly awaiting - fingers crossed it will appear in the next version! :)
Posts: 50
Joined: 14 Sep 2014, 10:41

Re: YouTube Support (Search and Play)

Postby jeroenveenvan » 08 May 2015, 13:40

Posts: 3
Joined: 05 May 2015, 09:52

Re: YouTube Support (Search and Play)

Postby davidgrundey » 17 Jun 2015, 21:15

Posts: 12
Joined: 03 Sep 2014, 21:37

Re: YouTube Support (Search and Play)

Postby waves » 13 Jul 2015, 13:44

hondagx35 wrote:- install youtube-dl

I just tried this. It works ok, though there is a delay first when adding the song to the playlist and then when starting to play it. I wonder if all/most youtube videos have a 141 m4a audio only stream. That would let us skip the -F lookup stage. Then all needed is a button in Rune GUI that opens a box where the user can paste a youtube URL and, when user clicks "submit", executes this line with the URL as parameter
mpc add $(youtube-dl -f141 -g [URL] )
Perhaps also some code that optionally clears the cache of played URLs after some time, to avoid taking up too much space.

BTW youtube-dl can handle URLs from a lot of other sites too:
Posts: 125
Joined: 31 Dec 2014, 10:33

Re: YouTube Support (Search and Play)

Postby vikomarn » 28 Jul 2015, 16:28

We could automate this using bookmarklet approach i.e. Rune could implement a special URL to add the URL to playlist, which can be invoked as bookmarklet from desktop browser.

And on android, there is an helper app called "Bookmarklet Free". It registers itself as one of the apps that you see when you use the "Share" feature from mobile browser (and other apps). We can then define a custom URL handler to submit it to local Rune server.
Posts: 1
Joined: 28 Jul 2015, 16:22

Re: YouTube Support (Search and Play)

Postby ACX » 28 Jul 2015, 21:59

This somehow scares me when I think to invest time and effort to integrate YouTube in RuneAudio:
How YouTube killed an extension with 300,000 users
User avatar
RuneAudio co-founder
Posts: 1690
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

support RuneAudio Donate with PayPal


Return to Feature request

Who is online

Users browsing this forum: No registered users and 1 guest