paticpatic
Posts: 11
Joined: Mon Feb 23, 2015 4:13 pm

Youtube

Sun Mar 22, 2015 2:06 am

How can I setup my Raspberry Pi B+ to watch youtube videos using the Raspbian OS?

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Youtube

Sun Mar 22, 2015 7:20 am

paticpatic wrote:How can I setup my Raspberry Pi B+ to watch youtube videos using the Raspbian OS?
kweb is the best solution, but read the manual before installing

http://www.raspberrypi.org/forums/viewt ... 66&t=40860
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Youtube

Sun Mar 22, 2015 10:29 am

paticpatic wrote:How can I setup my Raspberry Pi B+ to watch youtube videos using the Raspbian OS?
You need to visit http://youtube.com/html5 to activate HTML5 support, then things just play normally.

The other way is with youtube-dl to download the videos as mp4.

sudo apt-get install youtube-dl
youtube-dl https://www.youtube.com/watch?v=XjAcyTXRunY
omxplayer XjAcyTXRunY.mp4
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Youtube

Sun Mar 22, 2015 10:40 am

DougieLawson wrote:
paticpatic wrote:How can I setup my Raspberry Pi B+ to watch youtube videos using the Raspbian OS?
You need to visit http://youtube.com/html5 to activate HTML5 support, then some (but by no means all) things just play normally.

The other way is with youtube-dl to download the videos as mp4.

sudo apt-get install youtube-dl
youtube-dl https://www.youtube.com/watch?v=XjAcyTXRunY
omxplayer XjAcyTXRunY.mp4
You can do that - and this is good if you want to build up a local library of your favorite videos.

But if you just want to play them "on the fly", like normal browsers do on normal computers, there are ways to do that, using youtube-dl and omxplayer. The "K web" guy has built this into a project called "omxplayerGUI". Also, other folks (including me) have done it in our own, customized, way.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Youtube

Sun Mar 22, 2015 11:37 am

The first part, which you ignored, is heading to http://youtube.com/html5 to get the YouTube HTML5 cookie set in your browser. They useragent handler doesn't recognise Epiphany as HTML5 ready so you have to enable it with the explicit URL.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Youtube

Sun Mar 22, 2015 1:22 pm

DougieLawson wrote:The first part, which you ignored, is heading to http://youtube.com/html5 to get the YouTube HTML5 cookie set in your browser. They useragent handler doesn't recognise Epiphany as HTML5 ready so you have to enable it with the explicit URL.
What makes you think I haven't done that?
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

Bananaguns
Posts: 83
Joined: Sun Mar 01, 2015 9:59 pm

Re: Youtube

Sun Mar 22, 2015 1:38 pm

The new update of epiphany browser suppprts html5 and plays most YouTube videos with no problems (no need for omxplayer, tbo GUI, etc). In my time using it I've realized to make it work from one video to the next you need to click the next video, once the page loads then hit refresh and it should work. Otherwise it does a weird load, reload, reload kind of deal.

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Youtube

Sun Mar 22, 2015 1:56 pm

Bananaguns wrote:The new update of epiphany browser suppprts html5 and plays most YouTube videos with no problems (no need for omxplayer, tbo GUI, etc). In my time using it I've realized to make it work from one video to the next you need to click the next video, once the page loads then hit refresh and it should work. Otherwise it does a weird load, reload, reload kind of deal.
Yes, but it appears you have a RPi2 B, the OP has a B+

fyi the RPF Epiphany Web Browser has always supported HTML5, as does kweb and IceWeasel
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Youtube

Sun Mar 22, 2015 2:25 pm

Bananaguns wrote:The new update of epiphany browser suppprts html5 and plays most some YouTube videos with no problems...
Fixed it for you. It may be a location thing or a "What kind of vids do you play?" thing, but the fact is that most music vids (which are what me and my friends here in the USA are most interested in) still display "Encrypted Streams not supported" when the attempt is made to view/play them in Epiphany (on a Pi 2).

Playing with Omxplayer is the fix and it works nicely.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Youtube

Sun Mar 22, 2015 2:31 pm

Joe Schmoe wrote:
Bananaguns wrote:The new update of epiphany browser suppprts html5 and plays most some YouTube videos with no problems...
Fixed it for you. It may be a location thing or a "What kind of vids do you play?" thing, but the fact is that most music vids (which are what me and my friends here in the USA are most interested in) still display "Encrypted Streams not supported" when the attempt is made to view/play them in Epiphany (on a Pi 2).

Playing with Omxplayer is the fix and it works nicely.
On my RPi2 B use IceWeasel Browser...

...but as stated the OP has a B+ so yes OmxPlayer / kweb / youtube-dl are the solutions as already mentioned in responses. ;)
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

Bananaguns
Posts: 83
Joined: Sun Mar 01, 2015 9:59 pm

Re: Youtube

Mon Mar 23, 2015 11:35 am

Joe Schmoe wrote:
Bananaguns wrote:The new update of epiphany browser suppprts html5 and plays most some YouTube videos with no problems...
Fixed it for you. It may be a location thing or a "What kind of vids do you play?" thing, but the fact is that most music vids (which are what me and my friends here in the USA are most interested in) still display "Encrypted Streams not supported" when the attempt is made to view/play them in Epiphany (on a Pi 2).

Playing with Omxplayer is the fix and it works nicely.
Hmm I dunno, I too live in the US (Philadelphia) and have only received that error on probably 2% of videos I've tried watching. However, as you said, I'm not really Interested in music videos, most videos I watch have no content to protect.

Admittedly I kind of just skimmed over their question, well in the case of the b+, yeah I'd try omxplayer and if you want a GUI check out tbo..

Emexrulsier
Posts: 9
Joined: Thu Oct 31, 2013 12:40 pm

Re: Youtube

Mon Mar 23, 2015 11:54 am

the youtube addon in kodi works just fine, that maybe is an option for you?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Youtube

Mon Mar 23, 2015 12:00 pm

Emexrulsier wrote:the youtube addon in kodi works just fine, that maybe is an option for you?
Susprisingly enough, the YouTube player in Kodi/OpenElec/whatever doesn't work very well for me (pauses/hangs during playback). But omxplayer under Raspbian works flawlessly.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

Return to “Beginners”