CBiX
Posts: 2
Joined: Tue Sep 13, 2016 11:44 am

DIY YouTube TV

Tue Sep 13, 2016 12:38 pm

Play YouTube videos on your Raspberry Pi from your smartphone with the official YouTube app. Pretty much what a Chromecast or https://youtube.com/tv does, but Open Source, with less dependencies and hardware-accelerated!

I will make the following guide more user-friendly as soon as I find the time. Until then, ask or use google to solve any issues.

Please report issues on https://github.com/CBiX/gotubecast/issues, thanks!

Guide:
  • Get raspbian lite running on your Raspberry Pi
  • Install omxplayer from repo
  • Install latest youtube-dl on the Pi (the one in the repo might not work)
  • Install latest golang environment on your Pi or on your computer
  • If you installed golang on your computer, fetch the gotubecast repo and cross-compile it for the Pi, then copy the binary and the raspi.sh script onto the Pi:

    Code: Select all

    git clone https://github.com/CBiX/gotubecast
    cd gotubecast
    GOARCH=arm go build
    scp gotubecast examples/raspi.sh [email protected]:/home/pi/ # (insert your Pi's IP)
    ssh [email protected]
    sudo mv gotubecast /usr/local/bin/
    ./examples/raspi.sh
    
  • Otherwise, follow the build instructions in the gotubecast readme, then execute $GOPATH/src/github.com/CBiX/gotubecast/examples/raspi.sh
  • If you want, copy the displayed screen ID and copy it into the raspi.sh script so you don't have to enter the pairing code every time
  • Enter the displayed pairing code in the YouTube app under Settings → Connect to TV
Known issues:
  • youtube-dl takes ~ 10 seconds to extract the video stream URL
  • volume control doesn't work

powsniffer0110
Posts: 3
Joined: Mon Jun 05, 2017 4:32 am

Re: DIY YouTube TV

Fri Sep 22, 2017 8:52 am

This is EXACTLY what I and MANY MANY others have been looking for!! Thank you! Can you please explain in more simple detail how to configure the gotubecast settings and set-up?! I'm not quite sure I understand the golang environment instructions and how to cross-compile and add the binary script.

Please please get back to me with the help, and THANK YOU!! 🎉

CBiX
Posts: 2
Joined: Tue Sep 13, 2016 11:44 am

Re: DIY YouTube TV

Wed Aug 22, 2018 10:31 pm

powsniffer0110 wrote:
Fri Sep 22, 2017 8:52 am
Can you please explain in more simple detail how to configure the gotubecast settings and set-up?! I'm not quite sure I understand the golang environment instructions and how to cross-compile and add the binary script.
Hey, thanks for the feedback, I was a bit surprised I only got approached by RasPi users because the raspi script was originally only a byproduct :D

If you are unable to compile it, you can use the precompiled RasPi version from this comment: https://github.com/CBiX/gotubecast/issu ... -340281401

gotubecast technically doesn't need any setup, however there are a few options you might check out by running

Code: Select all

gotubecast -h
. Most relevant might be reusing the screen_id so you don't need to pair your app every time.

Good luck :)

Sanskar_85111
Posts: 1
Joined: Sat Jun 01, 2019 12:09 pm

Re: DIY YouTube TV

Sat Jun 01, 2019 12:16 pm

I have compiled gotubecast but it shows error that is
Token parameter not in video error org.freedesktop.DBus.Error.serviceunknown
The name media player2.omxPlayer was not provided by any service file

Return to “Media centres”