New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 853396 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 27
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Severe stuttering in webm playback on some devices

Project Member Reported by michae...@chromium.org, Jun 15 2018

Issue description

Chrome version: 68.0.3440.25, 67.0.3396.78

Devices with 2 GiB of RAM have trouble playing the 4 MB WebM video used by Chromebooks in retail demo mode, resulting in a poor show-off experience in stores.

I tested on banjo, but have reports of similar stutter from other devices. I've tried playing the video in a Chrome tab, in the Chrome OS video player, and in the demo screensaver app -- in all cases, the video freezes frequently. Each freeze lasts from about half a second to 6 seconds.

I've included a trace. The stutters are obvious because activity drops significantly on most threads, including the browser process, IO thread, compositor and gpu. I haven't found anything that seems to be blocking playback, although I'm a noob with this tool.

The file plays smoothly on other devices, including caroline and eve. Also, another, even larger .webm file I tried works fine on the banjo. Perhaps there's something especially taxing about the attached video that's causing the stutter? It's a 4MB 30-second video.

Example repros: https://photos.app.goo.gl/E0QifIRinKLblmGq1

about:gpu contents from my banjo:

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: Disabled
Native GpuMemoryBuffers: Hardware accelerated
Hardware Protected Video Decode: Unavailable
Rasterization: Hardware accelerated
Skia Deferred Display List: Disabled
Skia Renderer: Disabled
Surface Synchronization: Enabled
Video Decode: Hardware accelerated
Viz Service Display Compositor: Disabled
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_discard_framebuffer
disable_framebuffer_cmaa
msaa_is_slow
rely_on_implicit_sync_for_swap_buffers
scalarize_vec_and_mat_constructor_args
Problems Detected
Protected video decoding with swap chain is for Windows and Intel only
Disabled Features: protected_video_decode
Framebuffer discarding causes jumpy scrolling on Mali drivers: 301988
Applied Workarounds: disable_discard_framebuffer
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Mesa drivers in ChromeOS 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
On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565
Applied Workarounds: msaa_is_slow
Use GL_INTEL_framebuffer_CMAA on ChromeOS: 535198
Applied Workarounds: disable_framebuffer_cmaa
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)
Decode and Encode before generateMipmap for srgb format textures on Chromeos Intel: 634519
Applied Workarounds: decode_encode_srgb_for_generatemipmap
Avoid waiting on a egl fence before pageflipping and rely on implicit sync.: 721463
Applied Workarounds: rely_on_implicit_sync_for_swap_buffers
Don't expose disjoint_timer_query extensions to WebGL: 808744
Raster is using a single thread.
Disabled Features: multiple_raster_threads
Viz service display compositor is not enabled by default.
Disabled Features: viz_display_compositor
Skia renderer is not used by default.
Disabled Features: skia_renderer
Skia deferred display list is not used by default.
Disabled Features: skia_deferred_display_list
Version Information
Data exported	2018-06-15T23:17:09.540Z
Chrome version	Chrome/68.0.3440.25
Operating system	Linux 4.4.132-14137-g3bc9182d7a43
Software rendering list URL	https://chromium.googlesource.com/chromium/src/+/2ae8d1b3e748e1d64948045b2e1fb269a4098373/gpu/config/software_rendering_list.json
Driver bug list URL	https://chromium.googlesource.com/chromium/src/+/2ae8d1b3e748e1d64948045b2e1fb269a4098373/gpu/config/gpu_driver_bug_list.json
ANGLE commit id	ba1627086779
2D graphics backend	Skia/68 e9c81ee2ea3a77fb4641435a97fef447c1b85128-
Command Line	/opt/google/chrome/chrome --gpu-sandbox-failures-fatal=yes --enable-logging --enable-native-gpu-memory-buffers --ppapi-flash-path=/opt/google/chrome/pepper/libpepflashplayer.so --ppapi-flash-version=30.0.0.122 --use-cras --use-gl=egl --user-data-dir=/home/chronos --enable-wayland-server --default-wallpaper-large=/usr/share/chromeos-assets/wallpaper/oem_large.jpg --default-wallpaper-small=/usr/share/chromeos-assets/wallpaper/oem_small.jpg --guest-wallpaper-large=/usr/share/chromeos-assets/wallpaper/guest_large.jpg --guest-wallpaper-small=/usr/share/chromeos-assets/wallpaper/guest_small.jpg --has-chromeos-keyboard --login-profile=user --system-developer-mode --bwsi --homepage=chrome://newtab/ --incognito --log-level=1 --login-user=$guest --login-user=$guest --login-profile=533d9f6f468050fd02e33016611afbacd350a056 --vmodule=*chromeos/login/*=1,auto_enrollment_controller=1,*/ui/ozone/*=1,*/ui/display/manager/chromeos/*=1,*night_light*=1,power_button_observer=2,webui_login_view=2,lock_state_controller=2,webui_screen_locker=2,screen_locker=2 --disable-sync --disable-extensions
Driver Information
Initialization time	44
In-process GPU	false
Passthrough Command Decoder	false
Direct Composition	false
Supports overlays	false
Sandboxed	true
GPU0	VENDOR = 0x8086 [Intel Open Source Technology Center], DEVICE= 0x0f31 [Mesa DRI Intel(R) Bay Trail ] *ACTIVE*
Optimus	false
AMD switchable	false
Driver vendor	Mesa
Driver version	18.1.0
Driver date	
Pixel shader version	3.00
Vertex shader version	3.00
Max. MSAA samples	8
Machine model name	
Machine model version	
GL_VENDOR	Intel Open Source Technology Center
GL_RENDERER	Mesa DRI Intel(R) Bay Trail
GL_VERSION	OpenGL ES 3.0 Mesa 18.1.0-devel (git-131e871385)
GL_EXTENSIONS	GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_texture_max_level GL_EXT_blend_func_extended GL_EXT_blend_minmax GL_EXT_clip_cull_distance GL_EXT_color_buffer_float GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_multi_draw_arrays GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix GL_EXT_texture_border_clamp GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_sRGB_decode GL_EXT_texture_type_2_10_10_10_REV GL_EXT_unpack_subimage GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_shader_integer_functions GL_NV_draw_buffers GL_NV_fbo_color_attachments GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_OES_copy_image GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_required_internalformat GL_OES_rgb8_rgba8 GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_multisample_interpolation GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_surfaceless_context GL_OES_texture_3D GL_OES_texture_border_clamp GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object GL_OES_vertex_half_float
Disabled Extensions	GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent
Disabled WebGL Extensions	EXT_disjoint_timer_query EXT_disjoint_timer_query_webgl2
Window system binding vendor	Mesa Project
Window system binding version	1.4 (DRI2)
Window system binding extensions	EGL_ANDROID_native_fence_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export
Direct rendering	Yes
Reset notification strategy	0x8252
GPU process crash count	0
Compositor Information
Tile Update Mode	One-copy
Partial Raster	Enabled
GpuMemoryBuffers Status
ATC	Software only
ATCIA	Software only
DXT1	Software only
DXT5	Software only
ETC1	Software only
R_8	CAMERA_AND_CPU_READ_WRITE, SCANOUT_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE_PERSISTENT
R_16	Software only
RG_88	SCANOUT_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE_PERSISTENT
BGR_565	GPU_READ
RGBA_4444	Software only
RGBX_8888	GPU_READ, SCANOUT, SCANOUT_CPU_READ_WRITE
RGBA_8888	GPU_READ, SCANOUT, SCANOUT_CPU_READ_WRITE
BGRX_8888	GPU_READ, SCANOUT, SCANOUT_CPU_READ_WRITE
BGRX_1010102	Software only
RGBX_1010102	Software only
BGRA_8888	GPU_READ, SCANOUT, SCANOUT_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE_PERSISTENT
RGBA_F16	Software only
YVU_420	GPU_READ
YUV_420_BIPLANAR	SCANOUT_CAMERA_READ_WRITE, SCANOUT_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE, GPU_READ_CPU_READ_WRITE_PERSISTENT
UYVY_422	Software only
Display(s) Information
Info	Display[1881264395124736] bounds=[0,0 1366x768], workarea=[0,0 1366x720], scale=1, internal.
Color space information	{primaries:INVALID, transfer:INVALID, matrix:INVALID, range:INVALID}
Bits per color component	8
Bits per pixel	24
Video Acceleration Information
Decode h264 baseline	up to 4096x4096 pixels
Decode h264 main	up to 4096x4096 pixels
Decode h264 high	up to 4096x4096 pixels
Encode h264 baseline	up to 4096x4096 pixels and/or 30.000 fps
Encode h264 main	up to 4096x4096 pixels and/or 30.000 fps
Encode h264 high	up to 4096x4096 pixels and/or 30.000 fps
Log Messages
[2829:2834:0615/161503.761239:VERBOSE1:drm_device_manager.cc(53)] : Could not initialize DRM device for /sys/devices/platform/vgem/drm/card1
[2829:2834:0615/161504.947682:VERBOSE1:drm_display.cc(104)] : DRM configuring: device=/sys/devices/pci0000:00/0000:00:02.0/drm/card0 crtc=38 connector=60 origin=0,0 size=1366x768
 
trace_stutter.json.gz
4.7 MB Download
default.webm
4.0 MB View Download
60fps videos on youtube.com also seem to exhibit this problem on my banjo -- there's a spinner that appears when the video freezes, and according to the loading bar, the video has already "buffered" far enough ahead.

Note: also tested in Canary (69).
Cc: hiroh@chromium.org johnylin@chromium.org
Components: OS>Kernel>Video
+other people working on video bugs to suggest how to triage this issue

Comment 3 Deleted

Comment 4 by hiroh@chromium.org, Jun 17 2018

banjo, whose processor is Baytrail, does not have capability to decode VP9 with HW acceleration, although it can decode H264 with HW acceleration.
The video is VP9, 2400x1600@60fps video. So software decoder should be used there. It is hard for low-end devices to decode the video using a software decoder without any frame droppings.

> 60fps videos on youtube.com also seem to exhibit this problem on my banjo -- there's a spinner that appears when the video freezes, and according to the loading bar, the video has already "buffered" far enough ahead.

Most youtube videos are vp9. This is because of the same reason.

What if playing this youtube video? This is H264, 1920x1080@60fps video.
https://www.youtube.com/watch?v=rdzLFGeZJnk
You can observe a drop frame rate by right click on the video and select "Stats for nerds".
On banjo, that video plays fairly well (about 2% of frames dropped). I also confirmed that the other YouTube videos I was seeing major issues on are vp9. For those, we're talking >25% of frames dropped, for 1080p@60fps.

Sounds like this is just a known issue. Is there a list of boards and which codecs they support HW acceleration for? Perhaps we should change the encoding of the videos we ship with demo mode.

Comment 6 by hiroh@chromium.org, Jun 19 2018

go/crosvideocodec shows the current availability on Chrome OS device.
go/crosplaybackperf shows the playback performance of Chrome OS devices by our performance test.

I think all the supported Chrome OS devices can decode H264 video with HW acceleration.
I am 100% sure almost no frame is dropped in playing 1080p@30fps at any device.
I think 1080p@60fps is doable. I mean, dropping frames is not visible to user because the rate is too small.
Status: WontFix (was: Untriaged)
From comment #4 and #5, it seems there is nothing to be done on the Chrome side, so closing this as WontFix.

Sign in to add a comment