cjan
Posts: 712
Joined: Sun May 06, 2012 12:00 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 11:08 am

@kusti8
in ur repo still -48, right?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 11:10 am

cjan wrote:@kusti8
in ur repo still -48, right?
Yeah. I'm compiling v49, but it's taking ages. I had to restart it because it ran out of its 2GB of swap and 1GB of RAM while compiling. So now I have 12 GB of swap and hope for the best. :lol:
There are 10 types of people: those who understand binary and those who don't.

ddurdle
Posts: 59
Joined: Sat May 04, 2013 12:20 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 5:22 pm

I tried this out on two pi3 today, running raspbian from 3-18.

I have no issue installing chromium 0.48 (working fine), but the omxplayer doesn't seem to like youtube streams. When I try to play them through chromium, the loading icon never disappears, and when I try to start them in omxplayergui, they won't start.

I have youtube-dl version 2016.04.06. All up-to-date on anything, but I notice running the run_omxplayer.py -U reports "youtube-dl github not found". Using the pi user.

gkreidl
Posts: 5999
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 5:43 pm

ddurdle wrote:I tried this out on two pi3 today, running raspbian from 3-18.

I have no issue installing chromium 0.48 (working fine), but the omxplayer doesn't seem to like youtube streams. When I try to play them through chromium, the loading icon never disappears, and when I try to start them in omxplayergui, they won't start.

I have youtube-dl version 2016.04.06. All up-to-date on anything, but I notice running the run_omxplayer.py -U reports "youtube-dl github not found". Using the pi user.
During installation you have been asked if you want to install the github version of youtube-dl. If you didn't do that, it's missing.
Try the following:

Code: Select all

youtube-dl --version
If that works, omxplayerGUI should be able to use it. You can test it, by starting omxplayerGUI frontend, enter a video page URL and click "Extract".
If you want to install the github version (for faster access), run

Code: Select all

ginstall-ytdl
If you have installed youtube-dl via pip, it might not work.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

ddurdle
Posts: 59
Joined: Sat May 04, 2013 12:20 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 6:08 pm

gkreidl wrote:
ddurdle wrote:I tried this out on two pi3 today, running raspbian from 3-18.

I have no issue installing chromium 0.48 (working fine), but the omxplayer doesn't seem to like youtube streams. When I try to play them through chromium, the loading icon never disappears, and when I try to start them in omxplayergui, they won't start.

I have youtube-dl version 2016.04.06. All up-to-date on anything, but I notice running the run_omxplayer.py -U reports "youtube-dl github not found". Using the pi user.
During installation you have been asked if you want to install the github version of youtube-dl. If you didn't do that, it's missing.
Try the following:

Code: Select all

youtube-dl --version
If that works, omxplayerGUI should be able to use it. You can test it, by starting omxplayerGUI frontend, enter a video page URL and click "Extract".
If you want to install the github version (for faster access), run

Code: Select all

ginstall-ytdl
If you have installed youtube-dl via pip, it might not work.
Yes, got the prompt and said YES

youtube-dl returns 2016.04.06
omxplayerGUI works, plays videos, etc, just not anything from youtube. I can use youtube-dl and download the video to MP4 and select that MP4 in omxplayerGUI and it plays back just fine.

I will try ginstall-ytdl

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:09 pm

What does
ls ~/
ls /root
Say?
There are 10 types of people: those who understand binary and those who don't.

Ben_is_best
Posts: 89
Joined: Fri Dec 25, 2015 11:01 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:26 pm

ddurdle wrote:I tried this out on two pi3 today, running raspbian from 3-18.

I have no issue installing chromium 0.48 (working fine), but the omxplayer doesn't seem to like youtube streams. When I try to play them through chromium, the loading icon never disappears, and when I try to start them in omxplayergui, they won't start.

I have youtube-dl version 2016.04.06. All up-to-date on anything, but I notice running the run_omxplayer.py -U reports "youtube-dl github not found". Using the pi user.
That happened to me, too.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:28 pm

Ben_is_best wrote:
ddurdle wrote:I tried this out on two pi3 today, running raspbian from 3-18.

I have no issue installing chromium 0.48 (working fine), but the omxplayer doesn't seem to like youtube streams. When I try to play them through chromium, the loading icon never disappears, and when I try to start them in omxplayergui, they won't start.

I have youtube-dl version 2016.04.06. All up-to-date on anything, but I notice running the run_omxplayer.py -U reports "youtube-dl github not found". Using the pi user.
That happened to me, too.
I'll check it out.
There are 10 types of people: those who understand binary and those who don't.

ddurdle
Posts: 59
Joined: Sat May 04, 2013 12:20 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:32 pm

kusti8 wrote:What does
ls ~/
ls /root
Say?
I'm not sure if you are directing that question at me. I'm logged in with pi user so ~ is /home/pi.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:34 pm

ddurdle wrote:
kusti8 wrote:What does
ls ~/
ls /root
Say?
I'm not sure if you are directing that question at me. I'm logged in with pi user so ~ is /home/pi.
Yes, it's directed at you. When those two commands are entered into the Terminal, what is the output?
There are 10 types of people: those who understand binary and those who don't.

ddurdle
Posts: 59
Joined: Sat May 04, 2013 12:20 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:37 pm

Thanks for the suggestion around ginstall-ytdl. That did the trick. Now launching omxplayergui ytdl https://www.youtube.com/watch?v=.... launches the video.

BTW, some things I noticed when installing this on the two pi 3 raspbian installs (occurred both times):

- I needed to install python-tk It's required for omxplayergui and the setup/install didn't install it.
- omxplayer playback doesn't work the opengl drivers (for now, anyways) -- red-tinted and bad playback

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:38 pm

ddurdle wrote:Thanks for the suggestion around ginstall-ytdl. That did the trick. Now launching omxplayergui ytdl https://www.youtube.com/watch?v=.... launches the video.

BTW, some things I noticed when installing this on the two pi 3 raspbian installs (occurred both times):

- I needed to install python-tk It's required for omxplayergui and the setup/install didn't install it.
- omxplayer playback doesn't work the opengl drivers (for now, anyways) -- red-tinted and bad playback
Omxplayer won't work with the GL driver and that is a known problem.
The RPi-youtube extension in Chromium does the automatically, no typing.
There are 10 types of people: those who understand binary and those who don't.

ddurdle
Posts: 59
Joined: Sat May 04, 2013 12:20 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:41 pm

kusti8 wrote:
ddurdle wrote:
kusti8 wrote:What does
ls ~/
ls /root
Say?
I'm not sure if you are directing that question at me. I'm logged in with pi user so ~ is /home/pi.
Yes, it's directed at you. When those two commands are entered into the Terminal, what is the output?

Code: Select all

[email protected]:~ $ sudo ls ~
chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb		   Desktop    Music	Templates
chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb	   Documents  Pictures	Videos
chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb  Downloads  Public	youtube-dl
[email protected]:~ $ sudo ls /root
Desktop  Downloads  ktop  kweb_about_c.html

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 7:43 pm

Interesting. I don't know why it failed. Anyway, enjoy.
There are 10 types of people: those who understand binary and those who don't.

gkreidl
Posts: 5999
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 9:29 pm

ddurdle wrote:Thanks for the suggestion around ginstall-ytdl. That did the trick. Now launching omxplayergui ytdl https://www.youtube.com/watch?v=.... launches the video.

BTW, some things I noticed when installing this on the two pi 3 raspbian installs (occurred both times):

- I needed to install python-tk It's required for omxplayergui and the setup/install didn't install it.
- omxplayer playback doesn't work the opengl drivers (for now, anyways) -- red-tinted and bad playback
omxplayerGUI uses Python Tkinter module which should be installed on any full Raspbian image.

And yes, almost nothing using the GPU will work with the current OpenGL driver, and this includes omxplayer. It seems to claim the GPU just for itself.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

kelvien
Posts: 5
Joined: Wed Apr 06, 2016 4:58 am

Re: Guide: Chromium 48 on Raspbian Jessie

Fri Apr 08, 2016 11:22 pm

kusti8 wrote:
kelvien wrote:Here are a couple of questions to clarify my doubts:
Why would Google Chrome has no limit on using the Speech API, whereas Chromium has?
A quick google suggests that both are the same, but you have a limit of 50 requests per day. I would look at your Raspbian audio settings closer.
I'm positive that this is not my Rpi Audio issue. I've tested this 3 days in a row without changing my audio settings and it works only in the morning (I'm assuming that Google WebSpeech API limit is reset back to 0) And when I come back in the evening, it is no longer working (I think this is because I used all up in the morning)

User avatar
DougieLawson
Posts: 35580
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Guide: Chromium 48 on Raspbian Jessie

Sat Apr 09, 2016 5:31 pm

kusti8 wrote:
CooloutAC wrote:Hello, i wanted to install chromium to print to a printer i have connected to the pi with my android devices. Am I correct to assume this is the only way to do it and I guess hardware acceleration wouldn't make a diff to me since i don't plan on watching videos on it.

I just wish there was some way to verify the file.
You have to be more specific. Cloud print? This would be the only way for cloud print.
There's easier ways to get your RPi running as a cloudprint'er

sudo apt-get install cloudprint # to get the auto start at boot time stuff and v0.12
sudo pip install cloudprint # because the Raspbian Jessie version (0.12) doesn't work

There's a hack you need to do to the /etc/init.d/cloudprintd file (disable the AUTHFILE stuff, change it to use /usr/local/bin/cloudprint and add a sleep 90 because it starts too early before the network is alive).

I had to do this when my wife bought a Chromebook and wanted to print on my ancient old 2005 vintage HP6840 WiFi printer.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

mi7chy
Posts: 27
Joined: Mon Mar 28, 2016 5:50 am

Re: Guide: Chromium 48 on Raspbian Jessie

Mon Apr 11, 2016 5:22 pm

ddurdle wrote:I tried this out on two pi3 today, running raspbian from 3-18.

I have no issue installing chromium 0.48 (working fine), but the omxplayer doesn't seem to like youtube streams. When I try to play them through chromium, the loading icon never disappears, and when I try to start them in omxplayergui, they won't start.

I have youtube-dl version 2016.04.06. All up-to-date on anything, but I notice running the run_omxplayer.py -U reports "youtube-dl github not found". Using the pi user.
Had the same issues which appear to be permission related accessing as pi user since youtube-dl is installed in the root user directory even though chmod file attributes appear to be correct. Those commands only work if I append 'sudo'. Anyhow, 'ginstall-ytdl' seems to have fixed it since it installs in the pi user directory and they work from command line without 'sudo'.
Last edited by mi7chy on Mon Apr 11, 2016 11:51 pm, edited 1 time in total.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Mon Apr 11, 2016 7:22 pm

I don't know why that happens. It worked for me and it should be run as the pi user installing it into the correct place. I'm updating the instructions anyway just to be safe.
There are 10 types of people: those who understand binary and those who don't.

gkreidl
Posts: 5999
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Guide: Chromium 48 on Raspbian Jessie

Mon Apr 11, 2016 8:20 pm

This might happen, if you login as root before running apt-get ....
The installation must be run as default user (pi or other) using sudo.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Mon Apr 11, 2016 8:23 pm

gkreidl wrote:This might happen, if you login as root before running apt-get ....
The installation must be run as default user (pi or other) using sudo.
Yes, but I didn't realize this many people were running as root. I'll update the instructions.
There are 10 types of people: those who understand binary and those who don't.

mi7chy
Posts: 27
Joined: Mon Mar 28, 2016 5:50 am

Re: Guide: Chromium 48 on Raspbian Jessie

Mon Apr 11, 2016 10:48 pm

kusti8 wrote:
gkreidl wrote:This might happen, if you login as root before running apt-get ....
The installation must be run as default user (pi or other) using sudo.
Yes, but I didn't realize this many people were running as root. I'll update the instructions.
I installed as pi user and not root (sudo -s) although it doesn't hurt to clarify. Also, helps to clarify to press 'y' and not just return which in other cases defaults to 'yes' when prompted to install youtube-dl.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Guide: Chromium 48 on Raspbian Jessie

Tue Apr 12, 2016 10:53 am

That's strange. What does
logname
sudo logname
Say?
There are 10 types of people: those who understand binary and those who don't.

gkreidl
Posts: 5999
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

omxplayerGUI tutorial for rpi-youtube users.

Wed Apr 13, 2016 11:08 am

If you install kusti8's rpi-youtube extension to enable playing web video in high resolution with omxplayer(GUI), you will also get the kweb package, which provides omxplayerGUI. The extension basically adds a button to the chromium-browser interface similar like kweb's "Play" button, which sends the video page URL to omxplayerGUI, which extracts the real video URL (using youtube-dl) and plays it. This doesn't only work for youtube, but for 600+ video websites and all websites containing static HTML5 video tags. This tutorial is for people who are not familiar with omxplayerGUI and the kweb environment. It will also show you, how to manage the youtube-dl server.

youtube-dl support
During installation you will be asked, if you want to install the the github version of youtube-dl, which is highly recommended. If you missed that, you can install (and update) it later on:
Start kweb (from the application menu). Click on "Applications". At the bottom you'll see a heading "Youtube-dl Tools". The first two buttons let you install and update (for later use) the github version of youtube-dl (some other buttons will be explained later).

Using the youtube-dl server
If you have installed the github version of youtube-dl, you will be able to use the youtube-dl server (another tool from the kweb package). It will speed up access time for web videos considerably: the time it takes from clicking the button to start playing the video (1-3 seconds, the first video may take a bit longer). It's especially useful if you plan to watch a lot of web videos.
Note: The latest version of rpi-youtube starts the the youtube-dl server automatically, if it is not running already. It will also stop the server cleanly a few seconds after you have closed the chromium browser.

Starting the youtube-dl server separately
1) From the kweb Application page: Click the "Start Server" button.
2) From a terminal: Type
ytdl_server.py
In both cases the server will run inside a terminal. Do not simply close the terminal, because that will leave the server in an undefined state because of its multi-threaded nature (a special Python problem). Use one of the stop methods described below.
3) Start the omxplayerGUI frontend from the application menu. This will also start the server. Closing the frontend will automatically stop the server again (no separate stop method needed).

Stopping the youtube-dl server
1) From the kweb Application page: Click the "Stop Server" button.
2) From inside chromium: go to http://localhost:9192/stop (add this as a bookmark!).

Configuring omxplayerGUI
omxplayerGUI has lots of configuration options. The easiest way to configure it is the following:
Open the omxplayerGUI frontend from the Application menu (Multimedia).
Click the "Help" button to open the manual in your PDF reader. Click on "7) omxplayerGUI settings" on the content page.
Click the "Edit Settings" button in omxplayerGUI. This will close the frontend and open a specially configured kweb instance showing the "Settings" page.
Now you can edit all the settings you like. Some are very special. The manual will give you some hints, which may be important for you.
After applying some changes, you can save them as a "Preset" which will make them accessible with one mouse click later on. Check the manual for more details.
If you close kweb, the omxplayerGUI frontend will be restarted using the new settings (good for testing them).

Switching to full screen mode
omxplayerGUI can be preset to display video in different ways. By default it will run in a maximized window with controls at the bottom. To switch to full screen view, while a video is already running, press ALT+h (hide controls) followed by ALT+f (full screen). To return to window mode, press both key combinations again.

Offset between window and video content
If you experience an offset between the video window and the video content, it is caused by "overscan" settings. omxplayer, kodi and all software using the screen hardware directly, use the hardware coordinates of the current screen resolution, while the frame buffer (used by the GUI) may have a different size if overscan is enabled.
Remove all overscan and framebuffer size settings ftom /boot/config.txt. Overscan is never needed for monitors and TVs can be set to the right screen size (no borders etc) from their menu functions.

omxplayerGUI can also be used to play any media content from your file system. For more details, check the manual. If you have question not related to rpi-youtube, please ask them in this thread: viewtopic.php?t=40860
Last edited by gkreidl on Fri May 13, 2016 7:12 am, edited 5 times in total.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
Trixster
Posts: 261
Joined: Sat Jul 07, 2012 3:53 pm

Re: Guide: Chromium 48 on Raspbian Jessie

Wed Apr 13, 2016 9:44 pm

Rpi-YouTube just doesn't seem to work for me. I followed the instructions in first post but I just get the rotating circle when I click OK to say I want to use omxplayer. Using an rpi 3.

Return to “General discussion”