coding
Posts: 40
Joined: Sun Jul 20, 2014 7:23 am

How to properly use the new Raspberry Pi open source video d

Wed Jan 20, 2016 5:24 pm

Some days ago I read news about a new Raspberry Pi open source video driver being officially integrated into the Linux Kernel. I found the website http://dri.freedesktop.org/wiki/VC4/ which links to another site with ready-to-use Raspbian images which use the new driver: http://sukzessiv.net/~gohai/vc4-buildbot/build/

However, that custom Raspbian has major issues. The whole OS seems to freeze whenever you scroll a web page (the default browser won't even start), create a large selection rectangle on the desktop, or move windows. I wonder if the driver which is already included in the Linux 4.4 Kernel is that buggy, too.
Furthermore, I couldn't start or compile any application that tries to display a little more than basic unaccelerated 2D. Video players, emulators, and such.
All browsers I tried (Iceweasel, NetSurf, Dillo, Links2) except Ubuntu ARM Chromium with hardware acceleration enabled trigger the scroll-freeze bug.

Did anyone of you try or still use this new driver with different results?

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

Re: How to properly use the new Raspberry Pi open source vid

Wed Jan 20, 2016 6:35 pm

coding wrote:Some days ago I read news about a new Raspberry Pi open source video driver being officially integrated into the Linux Kernel. I found the website http://dri.freedesktop.org/wiki/VC4/ which links to another site with ready-to-use Raspbian images which use the new driver: http://sukzessiv.net/~gohai/vc4-buildbot/build/

However, that custom Raspbian has major issues. The whole OS seems to freeze whenever you scroll a web page (the default browser won't even start), create a large selection rectangle on the desktop, or move windows. I wonder if the driver which is already included in the Linux 4.4 Kernel is that buggy, too.
Furthermore, I couldn't start or compile any application that tries to display a little more than basic unaccelerated 2D. Video players, emulators, and such.
All browsers I tried (Iceweasel, NetSurf, Dillo, Links2) except Ubuntu ARM Chromium with hardware acceleration enabled trigger the scroll-freeze bug.

Did anyone of you try or still use this new driver with different results?
Still in very much in development, this is Anholt's Blog http://anholt.livejournal.com
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

pire.dejaco
Posts: 6
Joined: Tue Feb 16, 2016 7:39 am

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 10:51 am

With the new raspian release the user can enable an experimental OpenGL driver for the desktop throgh raspian-config (under advance options).

I tested this new driver with chromium (version 48) but the video (youtube) rendering is still slow and the browser use a lot of CPU.
It seems chromium does not use this driver.
My question is: is that a problem with the chromium or with the driver itself?

I would like to use a raspberry to make video call using webRTC API but the streaming of the webcam video is to slow and use a lot of CPU. What is the best way to do this?

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

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 12:40 pm

pire.dejaco wrote:With the new raspian release the user can enable an experimental OpenGL driver for the desktop throgh raspian-config (under advance options).

I tested this new driver with chromium (version 48) but the video (youtube) rendering is still slow and the browser use a lot of CPU.
It seems chromium does not use this driver.
My question is: is that a problem with the chromium or with the driver itself?

I would like to use a raspberry to make video call using webRTC API but the streaming of the webcam video is to slow and use a lot of CPU. What is the best way to do this?
Yes the initial post and my response are out-of-date now, well spotted !! You also posted here very confusing ! viewtopic.php?f=63&t=121195&start=200#p907167

Look at this blog, ignore the first part about installation, it shows how to test whether or not WebGL is initialised..

The Chromium Browser afaiaa is not optimised for hardware accelleration, hence your over-expectations of the EXPERIMENTAL driver...

https://www.scirra.com/blog/ashley/23/h ... berry-pi-2


Regards WebRTC see:

viewtopic.php?f=43&t=105019

http://www.linux-projects.org/modules/s ... e&artid=14
Last edited by fruitoftheloom on Tue Feb 16, 2016 12:59 pm, edited 1 time in total.
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

ghans
Posts: 7878
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 12:53 pm

1) The experimental driver breaks all video acceleration
and official camera support
2) The 3D driver does not do video acceleration (yet ?!)
3) Chromium never supported video acceleration in the
first place , whether this has to be fixed in Chromium ,
gtreamer , Raspbian or in all three projects i don't know


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

pire.dejaco
Posts: 6
Joined: Tue Feb 16, 2016 7:39 am

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 1:06 pm

ghans wrote:1) The experimental driver breaks all video acceleration
and official camera support
2) The 3D driver does not do video acceleration (yet ?!)
3) Chromium never supported video acceleration in the
first place , whether this has to be fixed in Chromium ,
gtreamer , Raspbian or in all three projects i don't know


ghans
It would mean that currently it is not possible to use any webbrowser to make video calling with the webRTC API (with or without OpenGL driver)?

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

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 1:16 pm

pire.dejaco wrote:
ghans wrote:1) The experimental driver breaks all video acceleration
and official camera support
2) The 3D driver does not do video acceleration (yet ?!)
3) Chromium never supported video acceleration in the
first place , whether this has to be fixed in Chromium ,
gtreamer , Raspbian or in all three projects i don't know


ghans
It would mean that currently it is not possible to use any webbrowser to make video calling with the webRTC API (with or without OpenGL driver)?
Yes that is quite so, until the RPF Epiphany Browser is considerably updated.

Alternatively you can compile your own Chromium Browser it is open source :D
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

mathboy4life
Posts: 197
Joined: Fri Jan 08, 2016 7:29 pm

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 4:15 pm

I think the RPF should ditch Epiphany Browser and make Chromium browser the main Raspbian browser and try to get hardware acceleration.

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

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 8:50 pm

mathboy4life wrote:I think the RPF should ditch Epiphany Browser and make Chromium browser the main Raspbian browser and try to get hardware acceleration.
The problem is that Chromium only works on the Pi2 and without significant overhaul won't work on a Pi1, probably more work than its worth. The Foundation states backward compatibility as a must.
There are 10 types of people: those who understand binary and those who don't.

mathboy4life
Posts: 197
Joined: Fri Jan 08, 2016 7:29 pm

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 8:58 pm

kusti8 wrote:
mathboy4life wrote:I think the RPF should ditch Epiphany Browser and make Chromium browser the main Raspbian browser and try to get hardware acceleration.
The problem is that Chromium only works on the Pi2 and without significant overhaul won't work on a Pi1, probably more work than its worth. The Foundation states backward compatibility as a must.
They're going to have to get a new GPU soon at least for the PI4. Do you think there would be a backward compatibility? If the PI4 doesn't support 4k video I am not buying. I will buy the PI4 no matter what but if the foundation doesn't have 4K availability for the PI4 I am moving on to something else.

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

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 9:12 pm

The Pi4 is a long way away. I don't know if they could have a driver for both, but that's not what I was talking about. Chromium is compiled for ARMv7 and won't work on ARMv6. I'm having a look at the source to try to compile it with patches from Ubuntu and the old version but it's probably not going to work.
There are 10 types of people: those who understand binary and those who don't.

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

Re: How to properly use the new Raspberry Pi open source vid

Tue Feb 16, 2016 9:26 pm

mathboy4life wrote:I think the RPF should ditch Epiphany Browser and make Chromium browser the main Raspbian browser and try to get hardware acceleration.
Chromium for ARMv6 is only compatible to version 28..

...version 29 forwards uses the Blink Engine which despite efforts does not work satisfactorily.

Hence why Debian pulled from repositories.....


Epiphany was recompiled to work with all RPi's, this work was undertaken and paid for, so would be a shame to ditch it !
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

Return to “Beginners”