User avatar
quarkjuggler
Posts: 155
Joined: Wed Nov 27, 2013 4:37 am
Location: Aransas Pass, Texas, U.S.A.

Re: BETA: Chromium v51 on ARMv6 w/ HW video acceleration

Mon Sep 05, 2016 2:05 pm

kusti8:

When I ran your instructions, the last thing it said was:

Code: Select all

#5 0x000054f4e21c ChromeMain
#6 0x000075b33294 __libc_start_main

No protocol specified
[2836:2836:0905/083906:ERROR:browser_main_loop.cc(271)] Gtk: cannot open display: :0.0
[email protected]:~#
Is this something to worry about?
Last edited by quarkjuggler on Mon Sep 05, 2016 2:08 pm, edited 1 time in total.
Statements resembling facts are IMO only. "he" means "he or she", etc. "Mother Nature" is an abstraction, not a real spirit.
John

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

Re: BETA: Chromium v51 on ARMv6 w/ HW video acceleration

Mon Sep 05, 2016 2:07 pm

quarkjuggler wrote:When I ran your instructions, the last thing it said was:

Code: Select all

#5 0x000054f4e21c ChromeMain
#6 0x000075b33294 __libc_start_main

No protocol specified
[2836:2836:0905/083906:ERROR:browser_main_loop.cc(271)] Gtk: cannot open display: :0.0
[email protected]:~#
Is this something to worry about?
It's because you're running as root. Run it as a normal user.
There are 10 types of people: those who understand binary and those who don't.

User avatar
quarkjuggler
Posts: 155
Joined: Wed Nov 27, 2013 4:37 am
Location: Aransas Pass, Texas, U.S.A.

Re: BETA: Chromium v51 on ARMv6 w/ HW video acceleration

Mon Sep 05, 2016 2:10 pm

Thanks.
Statements resembling facts are IMO only. "he" means "he or she", etc. "Mother Nature" is an abstraction, not a real spirit.
John

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

Re: BETA: Chromium v51 on ARMv6 w/ HW video acceleration

Mon Sep 05, 2016 2:18 pm

I have a new build available, thanks to the people at the Pi Foundation. This includes general improvements, and now the recommended GPU mem is 80. Vimeo now works fine. Sandbox now works, but requires a rpi-update until it enters stable. General performance and bug fixes. Here are the release notes:
This still requires >64M GPU memory for most video but the amount has
been reduced. SD or smaller video streams may work in 64M, but HD
won't. I recommend 80M (gpu_mem=80 in boot/config.txt) to be on the
safe side. Having said that that will only allow for 1 stream. If you
are playing >1 stream (even transienntly) then you will need more (say
gpu_mem=128). The code should give up cleanly if it cannot allocate a
h/w video decoder and give the stream to old-stle ffmpeg decode, but as
it stands in many cases it thinks it has allocated a decoder cleanly
only to find that it fails when it tries to use it.

There are a few command-line switches - in general you shoudln't use
them!

--mmal-zero-copy By default the decoder copies frames out of
h/w buffers into s/w buffers before giving them to the main part of
chrome. This helps keep the gpu-mem requirement down. If you have
allocated a lot of gpu-mem (say gpu_mem=192) then this will allocate
more gpu frame buffers and use them instead. This is normally faster
but does require quite a lot more gpu mem than the default

--mmal-frame-buffers=<n> Set the number of gpu frame buffers (8M each).
Defaults to 2 or 6 if zero-copy is set. Probably shouldn't be changed.

--mmal-red-pixel Puts a red square in the top left of a frame
decoded by mmal so you can tell that it is active. Doesn't work if
zero-copy is set.
A simple

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update #For sandboxing, only temporary
Will upgrade it.

Enjoy! :D
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 3:06 pm

Will it work without rpi-update (I just don't want to do this right now)?
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: 3441
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 3:12 pm

gkreidl wrote:Will it work without rpi-update (I just don't want to do this right now)?
Yes. Right in the browser with HW acceleration.

Edit: I thought you said rpi-youtube. It may if you add --no-sandbox but I haven't tried it.
There are 10 types of people: those who understand binary and those who don't.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5145
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 5:22 pm

kusti8 wrote:Edit: I thought you said rpi-youtube. It may if you add --no-sandbox but I haven't tried it.
My understanding is that without rpi-update the browser will work but only with software video decode.
--no-sandbox should allow hardware video decode to work.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 5:24 pm

dom wrote:
kusti8 wrote:Edit: I thought you said rpi-youtube. It may if you add --no-sandbox but I haven't tried it.
My understanding is that without rpi-update the browser will work but only with software video decode.
--no-sandbox should allow hardware video decode to work.
Yeah that's what I thought. I just didn't know if there was any code depending on the newer firmware that wouldn't work anymore with no sandbox and the older, but I guess not.
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 7:54 pm

It doesn't work at all (even with --no-sandbox):
undefined symbol: mmal_vc_init_fd

I didn't run rpi-update - cannot afford an unstable system right now.
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: 259
Joined: Sat Jul 07, 2012 3:53 pm

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 9:43 pm

Ok, I've been using your chromium + rpi-YouTube extension for ages and it's been brilliant, so I thought I'd give this update a whirl on my rpi3. All went well following adding dev to the source, an apt-get update and apt-get dist-upgrade and then finally a run_omxplayer.py -U, but now clicking Extract Video on the rpi-YouTube icon does not load up the omxplayer window for full-window video playing. Does this update diasable the rpi-YouTube extension?

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 9:46 pm

Trixster wrote:Ok, I've been using your chromium + rpi-YouTube extension for ages and it's been brilliant, so I thought I'd give this update a whirl on my rpi3. All went well following adding dev to the source, an apt-get update and apt-get dist-upgrade and then finally a run_omxplayer.py -U, but now clicking Extract Video on the rpi-YouTube icon does not load up the omxplayer window for full-window video playing. Does this update diasable the rpi-YouTube extension?
Make sure the RPi-youtube package is installed. The whole point of this is not to require rpi-youtube at all, have it right in the browser will all the speed of rpi-youtube
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 9:56 pm

Sorry but you've lost me. I thought your rpi-YouTube was just an extension to get full screen video working through omxplayer. I have that installed and up until updating to this hardware enabled version of chromium that's what I've been using to get full screen video working smoothly. What is this rpi-YouTube package you're talking about? Is that something different?

With everything updated, full screen YouTube videos are still not smooth. There is frequent buffering and stuttering. Gpu mem is 256 (I need that for RetroPie). Is this too little? Too much?

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 10:07 pm

Trixster wrote:Sorry but you've lost me. I thought your rpi-YouTube was just an extension to get full screen video working through omxplayer. I have that installed and up until updating to this hardware enabled version of chromium that's what I've been using to get full screen video working smoothly. What is this rpi-YouTube package you're talking about? Is that something different?

With everything updated, full screen YouTube videos are still not smooth. There is frequent buffering and stuttering. Gpu mem is 256 (I need that for RetroPie). Is this too little? Too much?
This is updated with this version? What does:

Code: Select all

apt-cache policy chromium-browser
apt-cache policy rpi-youtube
Rpi-youtube depends on a local python file, which may have gotten uninstalled. Did you install H264ify because that is important for this HW acceleration to work? Did you also perform a rpi-update like it said in the instructions?
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 10:14 pm

Hi, yes i installed h264ify. I ran apt-get update then apt-get dist-upgrade then rpi-update. I then rebooted and did run_omxplayer.py-U (this is what I've been doing to update rpi-YouTube).

I'm now on version 51.0.2704.91 of chromium.

Rpi-YouTube is 5.1.0-1

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Mon Sep 05, 2016 10:29 pm

Trixster wrote:Hi, yes i installed h264ify. I ran apt-get update then apt-get dist-upgrade then rpi-update. I then rebooted and did run_omxplayer.py-U (this is what I've been doing to update rpi-YouTube).

I'm now on version 51.0.2704.91 of chromium.

Rpi-YouTube is 5.1.0-1
What does it say when you run it from the terminal?
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 12:42 am

thanks, now P2 can play 720p youtube, who need P3?

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 7:26 am

apt-cache policy chromium-browser returns:

Code: Select all

  Installed: 51.0.2704.91-0ubuntu0.14.04.1.6000
  Candidate: 51.0.2704.91-0ubuntu0.14.04.1.6000
  Version table:
 *** 51.0.2704.91-0ubuntu0.14.04.1.6000 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/dev armhf Packages
        100 /var/lib/dpkg/status
     51.0.2704.79-0ubuntu0.14.04.1.1121 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/dev armhf Packages
     50.0.2661.102-0ubuntu0.14.04.1.1118 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     50.0.2661.102-0ubuntu0.14.04.1.1117 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/dev armhf Packages
     49.0.2623.108-0ubuntu0.14.04.1.1113 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     48.0.2564.82-0ubuntu0.15.04.1.1193 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
        500 http://dl.bintray.com/pipplware/dists/jessie/main/binary/ ./ Packages
     47.0.2526.73-0ubuntu0.15.04.1.1190 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     45.0.2454.85-0ubuntu0.15.04.1.1181 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
        500 http://dl.bintray.com/pipplware/dists/jessie/main/binary/ ./ Packages
[email protected] ~ $
apt-cache policy rpi-youtube returns:

Code: Select all

rpi-youtube:
  Installed: 5.1.0-1
  Candidate: 5.1.0-1
  Version table:
 *** 5.1.0-1 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
     5.0.1-2 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     5.0.0-1 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     4.0.2-1 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
Normal wIndowed youtube videos play smoothly, cinema-mode videos play smoothly, full screen videos still stutter every few seconds.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 10:06 am

That's normal. Fullscreen won't work, the point is that it will work on all versions. What does:
omxplayergui ytdl [url]
Say?
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 5:22 pm

Hi!

omxplayergui ytdl [url] correctly loads omxplayergui and runs videos full screen, however playing a video in youtube and then clicking the rpi-youtube icon at the top right of the window no longer works to bring up the omxplaygui. it's as if the updates to the HW video accelerated version of chromium v51 has disabled this shortcut from working.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 5:26 pm

Trixster wrote:Hi!

omxplayergui ytdl [url] correctly loads omxplayergui and runs videos full screen, however playing a video in youtube and then clicking the rpi-youtube icon at the top right of the window no longer works to bring up the omxplaygui. it's as if the updates to the HW video accelerated version of chromium v51 has disabled this shortcut from working.
What's the output of :
cat /usr/bin/run_omxplayer.py
?
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 5:32 pm

That returns:

Code: Select all

#!/usr/bin/env python
import struct
import sys
import json
import subprocess
import urllib2
import os

VERSION="0.5"


def check_update():
    new_py = urllib2.urlopen("https://raw.githubusercontent.com/kusti8/RPi-chromium/master/native/run_omxplayer.py").read()
    old_py = open("/usr/bin/run_omxplayer.py", 'r').read()
    if new_py != old_py:
        open("run_omxplayer.py", 'w').write(new_py)
        subprocess.call("sudo mv run_omxplayer.py /usr/bin/run_omxplayer.py && sudo chmod +x /usr/bin/run_omxplayer.py", shell=True)
    new_man = urllib2.urlopen("https://raw.githubusercontent.com/kusti8/RPi-chromium/master/native/run_omx.json").read()
    old_man = open("/etc/chromium-browser/native-messaging-hosts/run_omx.json", 'r')
    if new_man != old_man:
        open("run_omx.json", "w").write(new_man)
        subprocess.call("sudo mv run_omx.json /etc/chromium-browser/native-messaging-hosts/run_omx.json", shell=True)
    subprocess.call("update-ytdl", shell=True)

#open('/home/pi/test', 'w').write(''.join(sys.argv))
if len(sys.argv) > 1:
    if sys.argv[1] == '-U':
        check_update()
        sys.exit(0)
else:
    print "Invalid command line option!\nTo update: run_omxplayer.py -U"
    sys.exit(0)

def read_thread_func():
  message_number = 0
  # Read the message length (first 4 bytes).
  text_length_bytes = sys.stdin.read(4)
  # Unpack message length as 4 byte integer.
  text_length = struct.unpack('i', text_length_bytes)[0]
  # Read the text (JSON object) of the message.
  text = sys.stdin.read(text_length).decode('utf-8')
  return text


url = json.loads(read_thread_func())['text']
FNULL = open(os.devnull, 'w')
print 'OK'
try:
    urllib2.urlopen('http://localhost:9192')
except:
    subprocess.Popen(['nohup', 'start_ytdl_server.sh', '&'], stdout=FNULL)

subprocess.call("omxplayergui ytdl " + url, shell=True)

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 5:34 pm

I'll look into it if I get time, but honestly there's no reason for rpi-youtube now that there is this.
There are 10 types of people: those who understand binary and those who don't.

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 5:36 pm

Isn't it still the quickest way to run fullscreen youtube videos without typing a url into the terminal?

User avatar
DavidS
Posts: 3096
Joined: Thu Dec 15, 2011 6:39 am
Location: USA
Contact: Website

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 7:58 pm

At least on the RPi 2 the accelerated WebKit browsers have no trouble playing 1080i youtube videos full screen on a screen resolution of [email protected] And that is using the HTML5 player in WebKit (accelerated for the RPi)..
26-Bit R15 to 32-bit. 16-bit addressing to 24-bit. ARM and 65xx two CPU's that continue on, and are better than ever. Assembly Language forever :) .

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

Re: BETA: Chromium v51 ARMv6 w/ HW video acceleration (updat

Tue Sep 06, 2016 8:34 pm

DavidS wrote:At least on the RPi 2 the accelerated WebKit browsers have no trouble playing 1080i youtube videos full screen on a screen resolution of [email protected] And that is using the HTML5 player in WebKit (accelerated for the RPi)..
Chromium is WebKit based (Blink is a fork of WebKit ) and this patch does pretty much what the patch for WebKit did, although with a more stable browser. I'll try it, but fullscreen should work and there are still a few more improvements planned.
There are 10 types of people: those who understand binary and those who don't.

Return to “General discussion”

Who is online

Users browsing this forum: allfox, PK232 and 48 guests