ztealmax
Posts: 75
Joined: Sat Aug 19, 2017 5:19 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Mon Oct 01, 2018 7:51 am

sorry m8 been chaos, ill set a reminder to myself to fix it when i get home tomorow at 18.30

ztealmax
Posts: 75
Joined: Sat Aug 19, 2017 5:19 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Tue Oct 02, 2018 3:15 am

config.txt

Code: Select all

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=82

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Disabled onboard audio as im using a small usb audiocard for microphone and headset
dtparam=audio=off
# 32-bit screenmode
framebuffer_depth=32
framebuffer_ignore_alpha=1
# 192Mb GPU memory
gpu_mem=192
/etc/chromium-browser/customizations/00-piws-vars

Code: Select all

CHROMIUM_FLAGS="--disable-quic --enable-fast-unload --enable-checker-imaging --enable-tcp-fast-open --enable-native-gpu-memory-buffers --enable-gpu-rasterization --enable-zero-copy"
*still tweaking chromium-settings but it works for now

to check if its working
[url]chrome://gpu/[/url]

and a 1080p Trailer
https://www.youtube.com/watch?v=Z1BCujX3pw8

mattiasottosson
Posts: 5
Joined: Sat Apr 06, 2013 1:15 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Tue Oct 02, 2018 11:03 am

Hm, unfortunately GPU acceleration dosen't seem to be activated:
Image

ztealmax
Posts: 75
Joined: Sat Aug 19, 2017 5:19 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Tue Oct 02, 2018 11:05 am

hmm that looks weird should be workin, ill get back to you when i get home / Sincerlly Martin

ztealmax
Posts: 75
Joined: Sat Aug 19, 2017 5:19 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Tue Oct 02, 2018 11:09 am

message me on facebook if u want and ill try and sort it out

[email protected]

ztealmax
Posts: 75
Joined: Sat Aug 19, 2017 5:19 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Fri Oct 12, 2018 9:44 pm

Use this for full hardware acceleration in chromium-browser and speed up browsing with some tweak as you see in code field:

Code: Select all

chromium-browser --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-checker-imaging --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version= --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512
copy everything except chromium-browser to your 00-pi-wars or 00-piws-vars

grandcanyon
Posts: 3
Joined: Sun Oct 14, 2018 11:14 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Sun Oct 14, 2018 11:37 pm

ztealmax wrote:
Fri Oct 12, 2018 9:44 pm
Use this for full hardware acceleration in chromium-browser and speed up browsing with some tweak as you see in code field:

Code: Select all

chromium-browser --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-checker-imaging --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version= --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512
copy everything except chromium-browser to your 00-pi-wars or 00-piws-vars
I'm able to view 1080p graphics on my raspberry pi 3+ just as long as I don't go to fullscreen mode. When I goto full screen mode, I get buffering and pause issues. I'm not sure how to solve it. I used the command line above to start chrome and below is my chrome://gpu. I have also changed the memory splits to 192MB. I can get youtube working by using the omxplayergui but this seems only to work on videos that are saved and it only works on youtube at least that is what I have tried.

Also, I do not understand the GL Drivers. I have tried both the fake and the full and when I try to view video through chromium I always get an Aw snap crash. I then just go back to legacy.

Can someone give me any pointers?

Code: Select all

Graphics Feature Status
Canvas: Hardware accelerated
CheckerImaging: Force enabled
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Force enabled
Native GpuMemoryBuffers: Hardware accelerated
Rasterization: Hardware accelerated
Video Decode: Hardware accelerated
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Driver Bug Workarounds
clear_uniforms_before_first_program_use
count_all_in_varyings_packing
decode_encode_srgb_for_generatemipmap
disable_framebuffer_cmaa
disable_post_sub_buffers_for_onscreen_surfaces
scalarize_vec_and_mat_constructor_args
Problems Detected
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Mesa drivers in Linux handle varyings without static use incorrectly: 333885
Applied Workarounds: count_all_in_varyings_packing
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
Use GL_INTEL_framebuffer_CMAA on ChromeOS: 535198
Applied Workarounds: disable_framebuffer_cmaa
Disable partial swaps on Mesa drivers (detected with GL_VERSION): 339493
Applied Workarounds: disable_post_sub_buffers_for_onscreen_surfaces
Decode and encode before generateMipmap for srgb format textures on os except macosx: 634519
Applied Workarounds: decode_encode_srgb_for_generatemipmap
Disable KHR_blend_equation_advanced until cc shaders are updated: 661715
Applied Workarounds: disable(GL_KHR_blend_equation_advanced), disable(GL_KHR_blend_equation_advanced_coherent)
Don't expose disjoint_timer_query extensions to WebGL: 808744
Gpu compositing has been disabled, either via blacklist, about:flags or the command line. The browser will fall back to software compositing and hardware acceleration will be unavailable.
Disabled Features: gpu_compositing
Version Information
Data exported	2018-10-14T23:21:34.702Z
Chrome version	Chrome/65.0.3325.181
Operating system	Linux 4.14.71-v7+

Command Line	/usr/lib/chromium-browser/chromium-browser --enable-pinch --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-checker-imaging --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512 --flag-switches-begin --flag-switches-end
Driver Information
Initialization time	1087
In-process GPU	false
Passthrough Command Decoder	false
Direct Composition	false
Supports overlays	false
Sandboxed	false
GPU0	VENDOR = 0x0000, DEVICE= 0x0000 *ACTIVE*
Optimus	false
Optimus	false
AMD switchable	false
Driver vendor	Mesa
Driver version	13.0.6
Driver date	
Pixel shader version	1.30
Vertex shader version	1.30
Max. MSAA samples	0
Machine model name	

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

Re: [HowTo!] Smooth youtube 1080p in Chromium

Sun Oct 28, 2018 12:54 am

vc4 driver, almost all h/w enable.

Code: Select all

Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Hardware accelerated
Out-of-process Rasterization: Disabled
Hardware Protected Video Decode: Hardware accelerated
Rasterization: Hardware accelerated
Skia Deferred Display List: Disabled
Skia Renderer: Disabled
Surface Synchronization: Enabled
Video Decode: Hardware accelerated
Viz Service Display Compositor: Enabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

grandcanyon
Posts: 3
Joined: Sun Oct 14, 2018 11:14 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Sun Oct 28, 2018 1:12 am

cjan wrote:
Sun Oct 28, 2018 12:54 am
vc4 driver, almost all h/w enable.

Code: Select all

Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Hardware accelerated
Out-of-process Rasterization: Disabled
Hardware Protected Video Decode: Hardware accelerated
Rasterization: Hardware accelerated
Skia Deferred Display List: Disabled
Skia Renderer: Disabled
Surface Synchronization: Enabled
Video Decode: Hardware accelerated
Viz Service Display Compositor: Enabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
I take it you compiled the mesa drivers to get the vc4 drivers?

https://github.com/anholt/mesa/wiki/Bui ... sa-for-VC4

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

Re: [HowTo!] Smooth youtube 1080p in Chromium

Sun Oct 28, 2018 11:45 pm

1. use software (CPU) rendering with the zero copy for CJK-fonts or Arabic on web site.
2. use hardware (GPU) rendering with the one copy for animations and transition effects on web site.

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

Re: [HowTo!] Smooth youtube 1080p in Chromium

Mon Oct 29, 2018 1:07 am

grandcanyon wrote:
Sun Oct 14, 2018 11:37 pm
Also, I do not understand the GL Drivers. I have tried both the fake and the full and when I try to view video through chromium I always get an Aw snap crash. I then just go back to legacy.

Can someone give me any pointers?
what i setup is while enable vc4 driver,
1. enable H/W in chromium setting
2. del OP's --disable-gpu-compositing

swb90
Posts: 1
Joined: Fri Nov 02, 2018 5:13 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Fri Nov 02, 2018 5:16 pm

hi cjan

did you have to compile vc4 on your own?
i am able to switch to vc4-kms-v3d via raspi-config
does that mean i do not have to recompile?

also, could you clarify on the following?
1. use software (CPU) rendering with the zero copy for CJK-fonts or Arabic on web site.
2. use hardware (GPU) rendering with the one copy for animations and transition effects on web site.
how do you do this?

thank you

ajizzo
Posts: 1
Joined: Sun Nov 04, 2018 4:59 pm

Re: [HowTo!] Smooth youtube 1080p in Chromium

Sun Nov 04, 2018 5:01 pm

ztealmax wrote:
Fri Jul 27, 2018 9:18 am
ztealmax wrote:
Fri Jul 20, 2018 5:30 pm
fjleon wrote:
Tue Jul 03, 2018 2:45 pm
i don't really care about 1080p but i appreciate the offer. what i am curious to see is a screenshot of your chrome://gpu and maybe your whole config.txt and what chromium version are you using.
Sorry havent been on much, will post it later today :)

Sorry have been working to much, ill fix it this weekend and put up an downloadable image so you can test it with out doing mods to your own.

//Martin
Yes please post a link to the full dmg working dmg/image file! Thanks!

Return to “Raspbian”