New issue
Advanced search Search tips

Issue 889866 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Playing at 2x speed is laggy and choppy

Reported by amitmory...@gmail.com, Sep 27

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Example URL:
netflix.com

Steps to reproduce the problem:
1. Go to Netflix.com
2. Play a video, change the playback speed to 2x (either using a browser extension or just change the attribute)
3. Watch for a minute or so, the frames will drop and the stream will be laggy, although the buffer is fully loaded

What is the expected behavior?
No dropping frames.

What went wrong?
Frames drop, video is choppy

Did this work before? Yes 68

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? N/A

Chrome version: 69.0.3497.100  Channel: stable
OS Version: 10.0
Flash Version: 

Contents of chrome://gpu: 

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: Software only. Hardware acceleration disabled
Out-of-process Rasterization: Disabled
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
decode_encode_srgb_for_generatemipmap
disable_delayed_copy_nv12
disable_discard_framebuffer
disable_framebuffer_cmaa
exit_on_context_lost
force_cube_complete
scalarize_vec_and_mat_constructor_args
texsubimage_faster_than_teximage
Problems Detected
Protected video decoding with swap chain is for Windows and Intel only
Disabled Features: protected_video_decode
Some drivers are unable to reset the D3D device in the GPU process sandbox
Applied Workarounds: exit_on_context_lost
TexSubImage is faster for full uploads on ANGLE
Applied Workarounds: texsubimage_faster_than_teximage
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
ANGLE crash on glReadPixels from incomplete cube map texture: 518889
Applied Workarounds: force_cube_complete
Framebuffer discarding can hurt performance on non-tilers: 570897
Applied Workarounds: disable_discard_framebuffer
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 Windows: 634519
Applied Workarounds: decode_encode_srgb_for_generatemipmap
Delayed copy NV12 displays incorrect colors on NVIDIA drivers.: 728670
Applied Workarounds: disable_delayed_copy_nv12
Don't expose disjoint_timer_query extensions to WebGL: 808744
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
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-09-27T13:33:54.529Z
Chrome version	Chrome/69.0.3497.100
Operating system	Windows NT 10.0.17134
Software rendering list URL	https://chromium.googlesource.com/chromium/src/+/8920e690dd011895672947112477d10d5c8afb09/gpu/config/software_rendering_list.json
Driver bug list URL	https://chromium.googlesource.com/chromium/src/+/8920e690dd011895672947112477d10d5c8afb09/gpu/config/gpu_driver_bug_list.json
ANGLE commit id	6ffc489d4f18
2D graphics backend	Skia/69 e110fd1ebd2d559838c49a8821ebf18986bd6ec2-
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end --restore-last-session --flag-switches-begin --flag-switches-end --flag-switches-begin --flag-switches-end --flag-switches-begin --flag-switches-end
Driver Information
Initialization time	243
In-process GPU	false
Passthrough Command Decoder	false
Sandboxed	true
GPU0	VENDOR = 0x10de, DEVICE= 0x13c2 *ACTIVE*
GPU1	VENDOR = 0x8086, DEVICE= 0x0412
Optimus	false
AMD switchable	false
Desktop compositing	Aero Glass
Direct Composition	true
Supports overlays	false
Overlay capabilities
Diagonal Monitor Size of \\.\DISPLAY1	21.6"
Diagonal Monitor Size of \\.\DISPLAY3	22.9"
Driver D3D12 feature level	D3D 12.1
Driver Vulkan API version	Vulkan API 1.1.0
Driver vendor	NVIDIA
Driver version	24.21.13.9907
Driver date	8-21-2018
Pixel shader version	5.0
Vertex shader version	5.0
Max. MSAA samples	8
Machine model name	
Machine model version	
GL_VENDOR	Google Inc.
GL_RENDERER	ANGLE (NVIDIA GeForce GTX 970 Direct3D11 vs_5_0 ps_5_0)
GL_VERSION	OpenGL ES 2.0 (ANGLE 2.1.0.6ffc489d4f18)
GL_EXTENSIONS	GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_explicit_context GL_ANGLE_explicit_context_gles1 GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_program_cache_control GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_KHR_parallel_shader_compile GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context 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 OES_compressed_EAC_R11_signed_texture OES_compressed_EAC_R11_unsigned_texture OES_compressed_EAC_RG11_signed_texture OES_compressed_EAC_RG11_unsigned_texture OES_compressed_ETC2_RGB8_texture OES_compressed_ETC2_RGBA8_texture OES_compressed_ETC2_punchthroughA_RGBA8_texture OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture OES_compressed_ETC2_sRGB8_alpha8_texture OES_compressed_ETC2_sRGB8_texture
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	Google Inc. (adapter LUID: 000000000000d886)
Window system binding version	1.4 (ANGLE 2.1.0.6ffc489d4f18)
Window system binding extensions	EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_CHROMIUM_sync_control EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_ANGLE_create_context_extensions_enabled
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	Software only
R_16	Software only
RG_88	Software only
BGR_565	Software only
RGBA_4444	Software only
RGBX_8888	GPU_READ, SCANOUT
RGBA_8888	GPU_READ, SCANOUT
BGRX_8888	Software only
BGRX_1010102	Software only
RGBX_1010102	Software only
BGRA_8888	Software only
RGBA_F16	Software only
YVU_420	Software only
YUV_420_BIPLANAR	Software only
UYVY_422	Software only
Display(s) Information
Info	Display[2528732444] bounds=[-1920,0 1920x1080], workarea=[-1920,0 1920x1040], scale=1, external.
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Info	Display[2779098405] bounds=[1920,0 1920x1080], workarea=[1920,0 1920x1040], scale=1, external.
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Info	Display[2841568472] bounds=[0,0 1920x1080], workarea=[0,0 1920x1040], scale=1, external.
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
Bits per color component	8
Bits per pixel	24
Video Acceleration Information
Decode h264 baseline	up to 4096x2304 pixels
Decode h264 baseline	up to 2304x4096 pixels
Decode h264 main	up to 4096x2304 pixels
Decode h264 main	up to 2304x4096 pixels
Decode h264 high	up to 4096x2304 pixels
Decode h264 high	up to 2304x4096 pixels
Encode h264 baseline	up to 3840x2176 pixels and/or 30.000 fps
Encode h264 main	up to 3840x2176 pixels and/or 30.000 fps
Encode h264 high	up to 3840x2176 pixels and/or 30.000 fps
Diagnostics
... loading ...
Log Messages
GpuProcessHostUIShim: The GPU process exited normally. Everything is okay.
[11276:120:0927/104849.017:WARNING:ipc_message_attachment_set.cc(49)] : MessageAttachmentSet destroyed with unconsumed attachments: 0/1
[11276:120:0927/125844.003:WARNING:ipc_message_attachment_set.cc(49)] : MessageAttachmentSet destroyed with unconsumed attachments: 0/1

This is not a network speed issue, the buffer is loaded.

This is not just Netflix, but any website with high quality video, maybe except for Youtube (although I do see it there too in higher speeds)
 
Labels: Needs-Bisect Needs-Triage-M69
Cc: sande...@chromium.org
What cpu do you have? Are things better on Chrome Canary?
CPU: Intel Core i5-4690
Canary: Same behavior. I notice that even in low quality this is the behavior.

Extra note: On Edge this works fine
Cc: tmathmeyer@chromium.org liber...@chromium.org
+liberato, tmathmeyer seems like a dxva issue. Note: reporter says except YouTube, so presumably vp9 is working fine. If you launch chrome canary with --enable-features=D3D11VideoDecoder do you see any improvements?
No improvement on Canary with those arguments.
How about --disable-direct-composition ?
Still choppy
Cc: zmo@chromium.org sunn...@chromium.org
Cc: ligim...@chromium.org
A dumb question: how can you ask Netflix to play at 2x?
I see, through a browser extension. Can you point us to the same extension you used? So we can try to reproduce it in house.
I use `Video speed controller` extension for chrome, or run in console:

Array.from(document.querySelectorAll("video")).forEach(v => v.playbackRate = 2)
Thanks. I can't reproduce on my windows desktop (Win10, NVidia Quadro K2200)
To avoid needing netflix to test, does this clip cause slowdown for you too?

http://storage.googleapis.com/dalecurtis/tag.html?src=short/buck1080p60.mp4&rate=2&autoplay=true
That clip works perfectly at up to 4x speed. (5+ is choppy, but that is normal)
Huh, I wasn't expecting that. What other sites do you have trouble with?
I don't consume many other videos, so I really can't say much. Facebook has this also, although to a much lesser extent.

This all worked fine in Chrome 68
Can you collect a chrome://trace with the "media" and "audio" categories enabled on Netflix when you hit these glitches? I recommend only having the netflix + tracing tab open.
chrome://tracing that is.
Please collect it from the latest canary.
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET TE-NeedsTriageFromHYD
As we do not have NetFlix account credentials to test and confirm the issue, forwarding it to Inhouse to check it from their end. Hence adding label TE-NeedsTriageFromHYD.

Thanks!
Cc: jbanavatu@chromium.org
Tested the issue on Windows 10 (CPU: Intel Core i7-6700) using 69.0.3497.100 as per below steps and unable to reproduce this issue.

Steps:
1.Go to Netflix.com
2. Play a video, change the playback speed to 2x (by running in console:
Array.from(document.querySelectorAll("video")).forEach(v => v.playbackRate = 2)
3. Watch for a nearly 5 minutes and no slowness or chopped video is observed.

Attaching screen-cast for reference.

Thanks!

Sep 28 2018 12_05 PM.webm
13.7 MB View Download
The thing is - I do see choppiness in your video.
It might be that Netflix is choppy for you, or that the chromium bugs player is choppy for me.
Anyway, I recorded a trace and a video.

Maybe it's the WebM format?

Can't attach the video here because it's over 10mb, so: https://youtu.be/U0afY5xkQPI
trace_trace.json.gz
1.9 MB Download
Components: -Internals>Media Internals>Media>Encrypted
Owner: xhw...@chromium.org
Status: Assigned (was: Unconfirmed)
=>xhwang playback is choppy because CDM is slow to respond to decode requests.

There are regular 100ms+ decodes taking place due to the decode call into the CDM being delayed for some reason; e.g., take this example:

Title    : DecoderStream<VIDEO>::Decode
Start    : 20,473.833 ms
Duration : 132.111 ms

The CDM doesn't start this decode until:

Title    : CdmAdapter::DecryptAndDecodeVideo
Start    : 20,604.050 ms
Duration : 1.602 ms (cpu= 1.564 ms)

Which is ~130ms later. It's unclear why this is happening.
@amitmoryossef are you familiar enough with Process Explorer or the Windows Task Manager to inspect the "cdm" process and see what priority it's listed as? Or if you know how to use PowerShell "Get-Process -Id <id>" You can find the process id in the Chrome Task Manager.
To be honest, I have no idea what those things mean. Sorry.
I would suggest trying upgrading Nvidia drivers. I ran into a similar issue: https://bugs.chromium.org/p/chromium/issues/detail?id=887931&can=4&q=&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

New drivers seem to have solved the issue.
Thanks. I updated to the latest drivers, (411.70), restarted my PC, and it is still the same problem.
I really think its a problem in chrome as it happened right when I updated from 68 to 69. I did it manually to get the new design and was in the middle of watching a film. Then I got back to the film and it was choppy.
Tested this issue on windows 10 (Intel Core i7-6700) using both M68-68.0.344.134 and M69-39.0.3497.100. Somehow we are unable to reproduce his issue,observed that in both the chrome versions video played fine.(no chopped video or lagging is seen).

Attaching screen-casts for reference.

Thanks!


M68.webm
27.1 MB Download
M69.webm
16.9 MB Download
Labels: -Needs-Bisect -TE-NeedsTriageFromHYD
As testing team unable to reproduce the issue as per C#21 and c#29,removing Needs bisect label for now & removing 'TE-NeedsTriageFromHYD' label too. Requesting xhwang@ to take a look a look into this issue and update the thread accordingly.

Thanks..!

Sign in to add a comment