Closed Bug 1418510 Opened 8 years ago Closed 8 years ago

user reports high cpu usage on video in FF57 on mac

Categories

(Core :: Audio/Video: Playback, defect, P2)

57 Branch
Unspecified
macOS
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox57 --- affected

People

(Reporter: bkelly, Unassigned)

References

Details

(Keywords: perf)

I've seen a number of users on twitter complaining about higher CPU usage on mac with FF57. It seems somewhat correlated to video playback. One user was kind enough to sure the dump from the media devtools addon here: https://gist.github.com/ezanol/88a9185193259a236500be4729224b1c It seems this is using software decoding, but its only a 30fps video. Chat on IRC suggests this should not be that expensive to software decode. We should try to reproduce on a mac to see if we can get a profile out of it. If we can't reproduce I'll ask the user to try the profiler.
Likely a dupe of bug 1400787
See Also: → 1400787
Can you get the output of about:support, to determine why the hardware decoder is disabled...
Flags: needinfo?(bkelly)
I've asked the user to post about:support info here. I also tried reproducing on my macbook pro 2016 touchbar running MacOS 10.12.6. Unfortunately I seem to get hardware decoding on this machine.
Flags: needinfo?(bkelly)
I got an about:support from a user reporting really high CPU while watching video. Does this help identify why they are getting software decoding? Application Basics Name Firefox Version 57.0 Build ID 20171112125346 Update History Update Channel release User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0 OS Darwin 17.2.0 Profile Folder Enabled Plugins about:plugins Build Configuration about:buildconfig Memory Use about:memory Performance about:performance Registered Service Workers about:serviceworkers Multiprocess Windows 2/2 (Enabled by default) Web Content Processes 4/4 Stylo true (enabled by default) Google Key Found Mozilla Location Service Key Found Safe Mode false Profiles about:profiles Crash Reports for the Last 3 Days Report ID Submitted bp-68ea37d7-295a-46e7-81e8-33ff91171119 1 day ago All Crash Reports This application has not been configured to display crash reports. Firefox Features Name Version ID Activity Stream 2017.11.07.1100-7f4e3634 activity-stream@mozilla.org Application Update Service Helper 2.0 aushelper@mozilla.org Firefox Screenshots 19.2.0 screenshots@mozilla.org Follow-on Search Telemetry 0.9.6 followonsearch@mozilla.com Form Autofill 1.0 formautofill@mozilla.org Multi-process staged rollout 3.05 e10srollout@mozilla.org Photon onboarding 1.0 onboarding@mozilla.org Pocket 1.0.5 firefox@getpocket.com Shield Recipe Client 76.1 shield-recipe-client@mozilla.org Web Compat 1.1 webcompat@mozilla.org Extensions Name Version Enabled ID 1Password: Password Manager and Secure Wallet 4.6.12.90 true onepassword4@agilebits.com uBlock Origin 1.14.18 true uBlock0@raymondhill.net Vertical Tabs Reloaded 0.9.3 true verticaltabsreloaded@go-dev.de Vertigo Tabs 1.2 false {81b88459-b274-4e81-936c-e3caa19d46e0} Graphics Features Compositing OpenGL Asynchronous Pan/Zoom wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled WebGL 1 Driver WSI Info CGL WebGL 1 Driver Renderer Intel Inc. -- Intel Iris Pro OpenGL Engine WebGL 1 Driver Version 4.1 INTEL-10.28.29 WebGL 1 Driver Extensions GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier WebGL 1 Extensions ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture WebGL 2 Driver WSI Info CGL WebGL 2 Driver Renderer Intel Inc. -- Intel Iris Pro OpenGL Engine WebGL 2 Driver Version 4.1 INTEL-10.28.29 WebGL 2 Driver Extensions GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier WebGL 2 Extensions EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc GPU #1 Active Yes Vendor ID 0x8086 Device ID 0x0d26 Diagnostics AzureCanvasAccelerated 1 AzureCanvasBackend skia AzureContentBackend skia AzureFallbackCanvasBackend none TileHeight 512 TileWidth 512 Decision Log WEBRENDER opt-in by default: WebRender is an opt-in feature unavailable by runtime: Build doesn't include WebRender Media Audio Backend audiounit Max Channels 2 Preferred Channel Layout stereo Preferred Sample Rate 44100 Output Devices Name Group Vendor State Preferred Format Channels Rate Latency Internal Speakers AppleHDAEngineOutput:1B,0,1,1:0 Apple Inc. Enabled All default: F32LE, support: S16LE S16BE F32LE F32BE 2 default: 44100, support: 44100 - 96000 506 - 4588 Input Devices Name Group Vendor State Preferred Format Channels Rate Latency Internal Microphone AppleHDAEngineInput:1B,0,1,0:1 Apple Inc. Enabled All default: F32LE, support: S16LE S16BE F32LE F32BE 2 default: 44100, support: 44100 - 96000 80 - 4162 Important Modified Preferences Name Value accessibility.typeaheadfind.flashBar 0 browser.cache.disk.capacity 358400 browser.cache.disk.filesystem_reported 1 browser.cache.disk.smart_size_cached_value 358400 browser.cache.disk.smart_size.first_run false browser.cache.disk.smart_size.use_old_max false browser.cache.frecency_experiment 2 browser.download.useDownloadDir false browser.places.smartBookmarksVersion 8 browser.search.suggest.enabled false browser.sessionstore.upgradeBackup.latestBuildID 20171112125346 browser.startup.homepage_override.buildID 20171112125346 browser.startup.homepage_override.mstone 57.0 browser.tabs.remote.autostart.2 true browser.urlbar.daysBeforeHidingSuggestionsPrompt 0 browser.urlbar.lastSuggestionsPromptDate 20171028 browser.urlbar.timesBeforeHidingSuggestionsHint 0 dom.apps.lastUpdate.buildID 20161019084923 dom.apps.lastUpdate.mstone 49.0.2 dom.apps.reset-permissions true dom.ipc.processCount.web 4 dom.mozApps.used true extensions.lastAppVersion 57.0 font.internaluseonly.changed true gfx.blacklist.direct2d.failureid FEATURE_FAILURE_DL_BLACKLIST_g984 gfx.crash-guard.glcontext.appVersion 45.0.1 gfx.crash-guard.glcontext.deviceID 0x0d26 gfx.crash-guard.status.glcontext 2 media.benchmark.vp9.fps 167 media.benchmark.vp9.versioncheck 1 media.gmp-gmpopenh264.abi x86_64-gcc3 media.gmp-gmpopenh264.lastUpdate 1510665585 media.gmp-gmpopenh264.version 1.7.1 media.gmp-manager.buildID 20171112125346 media.gmp-manager.lastCheck 1511016388 media.gmp-widevinecdm.abi x86_64-gcc3 media.gmp-widevinecdm.lastUpdate 1509195121 media.gmp-widevinecdm.version 1.4.8.1008 media.gmp.storage.version.observed 1 media.webrtc.debug.log_file /Users/plyons/Library/Caches/TemporaryItems/WebRTC.log network.cookie.prefsMigrated true network.dns.disablePrefetch true network.http.speculative-parallel-limit 0 network.predictor.cleaned-up true network.predictor.enabled false network.prefetch-next false places.database.lastMaintenance 1510860127 places.history.expiration.transient_current_max_pages 54371 plugin.disable_full_page_plugin_for_types application/pdf plugin.importedState true plugin.state.googletalkbrowserplugin 2 plugin.state.o1dbrowserplugin 2 plugin.state.quicktime plugin 2 plugins.ctprollout.cohort test plugins.ctprollout.cohortSample 0.337082 print.print_bgcolor false print.print_bgimages false print.print_duplex -437918235 print.print_evenpages true print.print_in_color true print.print_margin_bottom 0.5 print.print_margin_left 0.5 print.print_margin_right 0.5 print.print_margin_top 0.5 print.print_oddpages true print.print_orientation 0 print.print_page_delay 50 print.print_paper_data 0 print.print_paper_height 11.00 print.print_paper_name print.print_paper_size_type 1 print.print_paper_size_unit 0 print.print_paper_width 8.50 print.print_resolution -437918235 print.print_reversed false print.print_scaling 1.00 print.print_shrink_to_fit true print.print_to_file false print.print_unwriteable_margin_bottom 17 print.print_unwriteable_margin_left 25 print.print_unwriteable_margin_right 25 print.print_unwriteable_margin_top 17 privacy.cpd.cookies false privacy.cpd.sessions false privacy.sanitize.migrateFx3Prefs true privacy.sanitize.timeSpan 0 security.sandbox.content.tempDirSuffix {d1baa32d-5e71-ab4b-ba49-30a2e2a7dd12} services.sync.declinedEngines storage.vacuum.last.index 1 storage.vacuum.last.places.sqlite 1511040984 user.js Preferences Your profile folder contains a user.js file, which includes preferences that were not created by Firefox. Important Locked Preferences Name Value Places Database Integrity JavaScript Incremental GC true Accessibility Activated false Prevent Accessibility 0 Library Versions Expected minimum version Version in use NSPR 4.17 4.17 NSS 3.33 3.33 NSSSMIME 3.33 3.33 NSSSSL 3.33 3.33 NSSUTIL 3.33 3.33 Experimental Features Name ID Description Active End Date Homepage Branch Sandbox Content Process Sandbox Level 3 Effective Content Process Sandbox Level 3
Flags: needinfo?(jyavenard)
Summary: user reports high cpu usage on video in FF57 → user reports high cpu usage on video in FF57 on mac
Julien, this is another bug that I've seen many users complaining about. Very high CPU on mac when watching video. We have a known issue with software decoding using a lot of cpu, but we don't know why so many users are getting software decoding.
Flags: needinfo?(jcristau)
A user provided a profile... https://perfht.ml/2ja4hAq I don't see much here, so asking them to collect another one with decoder threads included.
Please ignore comment 6. They were measuring flash video. (And I think they have an addon problem.)
Here is a Hacker News thread about Firefox 57 also has complaints about high CPU usage when playing video on Mac. Some mention YouTube, others Flash (HBO). I linked back to this bug, asking for about:support information. https://news.ycombinator.com/item?id=15740430
OS: Unspecified → Mac OS X
So this is an Intel Iris pro, and it supports H264 hardware decoder. We have unfortunately no control on when we can or can't use a hardware decoder. We ask the Apple VideoToolbox framework for a H264 decoder and it gives you one. We can then query if it's hardware accelerated or not, but the code stays the same all the way to how to render the decoded frame. The only way to be certain if it was a software decoder that was in use, is with the media devtools add-on installed.
Flags: needinfo?(jyavenard)
I am the user from the original bug description, here is my about:support text: Application Basics ------------------ Name: Firefox Version: 57.0 Build ID: 20171112125346 Update Channel: release User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0 OS: Darwin 17.2.0 Multiprocess Windows: 1/1 (Enabled by default) Web Content Processes: 4/4 Stylo: true (enabled by default) Google Key: Found Mozilla Location Service Key: Found Safe Mode: false Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Firefox Features ---------------- Name: Activity Stream Version: 2017.11.07.1100-7f4e3634 ID: activity-stream@mozilla.org Name: Application Update Service Helper Version: 2.0 ID: aushelper@mozilla.org Name: Firefox Screenshots Version: 19.2.0 ID: screenshots@mozilla.org Name: Follow-on Search Telemetry Version: 0.9.6 ID: followonsearch@mozilla.com Name: Form Autofill Version: 1.0 ID: formautofill@mozilla.org Name: Multi-process staged rollout Version: 3.05 ID: e10srollout@mozilla.org Name: Photon onboarding Version: 1.0 ID: onboarding@mozilla.org Name: Pocket Version: 1.0.5 ID: firefox@getpocket.com Name: Shield Recipe Client Version: 76.1 ID: shield-recipe-client@mozilla.org Name: Web Compat Version: 1.1 ID: webcompat@mozilla.org Extensions ---------- Name: Dashlane Version: 5.5.3 Enabled: true ID: jetpack-extension@dashlane.com Name: Media Panel Version: 1.2 Enabled: true ID: {68d048f4-9449-4c97-8425-6dac7f743b14} Graphics -------- Features Compositing: OpenGL Asynchronous Pan/Zoom: wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled WebGL 1 Driver WSI Info: CGL WebGL 1 Driver Renderer: Intel Inc. -- Intel(R) Iris(TM) Graphics 6100 WebGL 1 Driver Version: 4.1 INTEL-10.28.29 WebGL 1 Driver Extensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture WebGL 2 Driver WSI Info: CGL WebGL 2 Driver Renderer: Intel Inc. -- Intel(R) Iris(TM) Graphics 6100 WebGL 2 Driver Version: 4.1 INTEL-10.28.29 WebGL 2 Driver Extensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier WebGL 2 Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc GPU #1 Active: Yes Vendor ID: 0x8086 Device ID: 0x162b Diagnostics AzureCanvasAccelerated: 1 AzureCanvasBackend: skia AzureContentBackend: skia AzureFallbackCanvasBackend: none TileHeight: 1024 TileWidth: 1024 Decision Log WEBRENDER: opt-in by default: WebRender is an opt-in feature unavailable by runtime: Build doesn't include WebRender Media ----- Audio Backend: audiounit Max Channels: 2 Preferred Channel Layout: stereo Preferred Sample Rate: 44100 Output Devices Name: Group Internal Speakers: AppleHDAEngineOutput:1B,0,1,1:0 Input Devices Name: Group Internal Microphone: AppleHDAEngineInput:1B,0,1,0:1 Important Modified Preferences ------------------------------ accessibility.typeaheadfind.flashBar: 0 browser.cache.disk.capacity: 358400 browser.cache.disk.filesystem_reported: 1 browser.cache.disk.smart_size.first_run: false browser.cache.frecency_experiment: 4 browser.places.smartBookmarksVersion: 8 browser.sessionstore.upgradeBackup.latestBuildID: 20171112125346 browser.startup.homepage_override.buildID: 20171112125346 browser.startup.homepage_override.mstone: 57.0 browser.tabs.remote.autostart.2: true browser.urlbar.lastSuggestionsPromptDate: 20171114 browser.urlbar.timesBeforeHidingSuggestionsHint: 0 dom.ipc.processCount.web: 4 extensions.lastAppVersion: 57.0 font.internaluseonly.changed: true media.gmp-gmpopenh264.abi: x86_64-gcc3 media.gmp-gmpopenh264.lastUpdate: 1510679307 media.gmp-gmpopenh264.version: 1.7.1 media.gmp-manager.buildID: 20171112125346 media.gmp-manager.lastCheck: 1511200293 media.gmp-widevinecdm.abi: x86_64-gcc3 media.gmp-widevinecdm.lastUpdate: 1510679308 media.gmp-widevinecdm.version: 1.4.8.1008 media.gmp.storage.version.observed: 1 network.cookie.prefsMigrated: true network.predictor.cleaned-up: true places.database.lastMaintenance: 1510682139 places.history.expiration.transient_current_max_pages: 104858 plugin.disable_full_page_plugin_for_types: application/pdf print.printer_Brother_HL-2140_series.print_bgcolor: false print.printer_Brother_HL-2140_series.print_bgimages: false print.printer_Brother_HL-2140_series.print_duplex: -437918235 print.printer_Brother_HL-2140_series.print_edge_bottom: 0 print.printer_Brother_HL-2140_series.print_edge_left: 0 print.printer_Brother_HL-2140_series.print_edge_right: 0 print.printer_Brother_HL-2140_series.print_edge_top: 0 print.printer_Brother_HL-2140_series.print_evenpages: true print.printer_Brother_HL-2140_series.print_footercenter: print.printer_Brother_HL-2140_series.print_footerleft: &PT print.printer_Brother_HL-2140_series.print_footerright: &D print.printer_Brother_HL-2140_series.print_headercenter: print.printer_Brother_HL-2140_series.print_headerleft: &T print.printer_Brother_HL-2140_series.print_headerright: &U print.printer_Brother_HL-2140_series.print_in_color: true print.printer_Brother_HL-2140_series.print_margin_bottom: 0.5 print.printer_Brother_HL-2140_series.print_margin_left: 0.5 print.printer_Brother_HL-2140_series.print_margin_right: 0.5 print.printer_Brother_HL-2140_series.print_margin_top: 0.5 print.printer_Brother_HL-2140_series.print_oddpages: true print.printer_Brother_HL-2140_series.print_orientation: 0 print.printer_Brother_HL-2140_series.print_page_delay: 50 print.printer_Brother_HL-2140_series.print_paper_data: 0 print.printer_Brother_HL-2140_series.print_paper_height: 11.00 print.printer_Brother_HL-2140_series.print_paper_name: na-letter print.printer_Brother_HL-2140_series.print_paper_size_unit: 0 print.printer_Brother_HL-2140_series.print_paper_width: 8.50 print.printer_Brother_HL-2140_series.print_resolution: -437918235 print.printer_Brother_HL-2140_series.print_reversed: false print.printer_Brother_HL-2140_series.print_scaling: 1.00 print.printer_Brother_HL-2140_series.print_shrink_to_fit: true print.printer_Brother_HL-2140_series.print_to_file: false print.printer_Brother_HL-2140_series.print_unwriteable_margin_bottom: 17 print.printer_Brother_HL-2140_series.print_unwriteable_margin_left: 25 print.printer_Brother_HL-2140_series.print_unwriteable_margin_right: 25 print.printer_Brother_HL-2140_series.print_unwriteable_margin_top: 17 security.sandbox.content.tempDirSuffix: {0aa7f3ad-c7af-9d46-a671-d3595021d2ba} services.sync.declinedEngines: storage.vacuum.last.index: 1 storage.vacuum.last.places.sqlite: 1510682139 Important Locked Preferences ---------------------------- Places Database --------------- JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Library Versions ---------------- NSPR Expected minimum version: 4.17 Version in use: 4.17 NSS Expected minimum version: 3.33 Version in use: 3.33 NSSSMIME Expected minimum version: 3.33 Version in use: 3.33 NSSSSL Expected minimum version: 3.33 Version in use: 3.33 NSSUTIL Expected minimum version: 3.33 Version in use: 3.33 Experimental Features --------------------- Sandbox ------- Content Process Sandbox Level: 3 Effective Content Process Sandbox Level: 3
Any chance you could try again after refreshing your profile? go to about:support and click on the "Refresh ..." button in the top right corner. You will keep your bookmarks, passwords, forms etc... thanks
Flags: needinfo?(ezanol)
Sure, here you go: Application Basics ------------------ Name: Firefox Version: 57.0 Build ID: 20171112125346 Update Channel: release User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0 OS: Darwin 17.2.0 Multiprocess Windows: 1/1 (Enabled by default) Web Content Processes: 2/4 Stylo: true (enabled by default) Google Key: Found Mozilla Location Service Key: Found Safe Mode: false Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Firefox Features ---------------- Name: Activity Stream Version: 2017.11.07.1100-7f4e3634 ID: activity-stream@mozilla.org Name: Application Update Service Helper Version: 2.0 ID: aushelper@mozilla.org Name: Firefox Screenshots Version: 19.2.0 ID: screenshots@mozilla.org Name: Follow-on Search Telemetry Version: 0.9.6 ID: followonsearch@mozilla.com Name: Form Autofill Version: 1.0 ID: formautofill@mozilla.org Name: Multi-process staged rollout Version: 3.05 ID: e10srollout@mozilla.org Name: Photon onboarding Version: 1.0 ID: onboarding@mozilla.org Name: Pocket Version: 1.0.5 ID: firefox@getpocket.com Name: Shield Recipe Client Version: 76.1 ID: shield-recipe-client@mozilla.org Name: Web Compat Version: 1.1 ID: webcompat@mozilla.org Extensions ---------- Graphics -------- Features Compositing: OpenGL Asynchronous Pan/Zoom: wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled WebGL 1 Driver WSI Info: CGL WebGL 1 Driver Renderer: Intel Inc. -- Intel(R) Iris(TM) Graphics 6100 WebGL 1 Driver Version: 4.1 INTEL-10.28.29 WebGL 1 Driver Extensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture WebGL 2 Driver WSI Info: CGL WebGL 2 Driver Renderer: Intel Inc. -- Intel(R) Iris(TM) Graphics 6100 WebGL 2 Driver Version: 4.1 INTEL-10.28.29 WebGL 2 Driver Extensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier WebGL 2 Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc GPU #1 Active: Yes Vendor ID: 0x8086 Device ID: 0x162b Diagnostics AzureCanvasAccelerated: 1 AzureCanvasBackend: skia AzureContentBackend: skia AzureFallbackCanvasBackend: none TileHeight: 1024 TileWidth: 1024 Decision Log WEBRENDER: opt-in by default: WebRender is an opt-in feature unavailable by runtime: Build doesn't include WebRender Media ----- Audio Backend: audiounit Max Channels: 2 Preferred Channel Layout: stereo Preferred Sample Rate: 44100 Output Devices Name: Group Internal Speakers: AppleHDAEngineOutput:1B,0,1,1:0 Input Devices Name: Group Internal Microphone: AppleHDAEngineInput:1B,0,1,0:1 Important Modified Preferences ------------------------------ browser.cache.disk.capacity: 358400 browser.cache.disk.filesystem_reported: 1 browser.cache.disk.smart_size.first_run: false browser.cache.frecency_experiment: 2 browser.places.smartBookmarksVersion: 8 browser.sessionstore.upgradeBackup.latestBuildID: 20171112125346 browser.startup.homepage_override.buildID: 20171112125346 browser.startup.homepage_override.mstone: 57.0 browser.tabs.remote.autostart.2: true browser.urlbar.lastSuggestionsPromptDate: 20171120 browser.urlbar.timesBeforeHidingSuggestionsHint: 3 dom.ipc.processCount.web: 4 extensions.lastAppVersion: 57.0 font.internaluseonly.changed: true media.gmp.storage.version.observed: 1 network.cookie.prefsMigrated: true places.history.expiration.transient_current_max_pages: 39870 plugin.disable_full_page_plugin_for_types: application/pdf security.sandbox.content.tempDirSuffix: {0cfeb7ba-c25b-d049-9678-5f95c8e62b8d} Important Locked Preferences ---------------------------- Places Database --------------- JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Library Versions ---------------- NSPR Expected minimum version: 4.17 Version in use: 4.17 NSS Expected minimum version: 3.33 Version in use: 3.33 NSSSMIME Expected minimum version: 3.33 Version in use: 3.33 NSSSSL Expected minimum version: 3.33 Version in use: 3.33 NSSUTIL Expected minimum version: 3.33 Version in use: 3.33 Experimental Features --------------------- Sandbox ------- Content Process Sandbox Level: 3 Effective Content Process Sandbox Level: 3
Flags: needinfo?(ezanol)
that's not what I meant :) do you still get high CPU usage after performing a refresh ? (that is does your mac still use sofware decode only?) You can tell by installing the media devtools (https://addons.mozilla.org/en-US/firefox/addon/devtools-media-panel/) and when a video is playing, go to the media devtools (command-option-i and select media). There press the refresh button and copy/paste the output here.
Jean-Yves, do you mean a Firefox profile refresh? https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings As opposed to a page refresh.
Yes, à profile refresh. You do so by going into abouut:support
Gotcha. After I did the profile refresh I still seem to get high CPU, yes. Media Info : [ 0 : { url : "http://www.krem.com/news/local/okanogan-county/graphic-obscene-skydrawings-spotted-in-okanogan-co/492496113" mediaElements : [...] 1 item } ] [ { "url": "http://www.krem.com/news/local/okanogan-county/graphic-obscene-skydrawings-spotted-in-okanogan-co/492496113", "mediaElements": [ { "currentSrc": "http://krem-download.edgesuite.net/video/2804369/2804369_350.mp4?source=babator", "currentTime": 65.747301, "readyState": 4, "videoPlaybackQuality": { "ratio": "100%", "droppedVideoFrames": 0, "corruptedVideoFrames": 0 }, "bufferedRanges": [ { "start": 0, "end": 121.804719 } ], "mozMediaSourceObject": [], "debugInfo": { "Container Type": "video/mp4", "Audio Decoder(audio/mp4a-latm)": "apple coremedia decoder", "Audio Frames Decoded": "2117", "Audio State": "ni=0 no=0 wp=0 demuxr=0 demuxq=0 decoder=0 tt=-1.0 tths=-1 in=2117 out=2117 qs=0 pending=0 wfd=0 eos=0 ds=0 wfk=0 sid=4294967295", "Video Decoder(video/avc, 400x228 @ 29.97)": "apple software VT decoder", "Hardware Video Decoding": "disabled", "Video Frames Decoded": "1979 (skipped=0)", "Video State": "ni=0 no=0 wp=0 demuxr=0 demuxq=0 decoder=0 tt=-1.0 tths=-1 in=1985 out=1979 qs=6 pending:0 wfd=0 eos=0 ds=0 wfk=0 sid=4294967295", "MediaDecoder State": "channels=2 rate=32000 hasAudio=1 hasVideo=1 mPlayState=PLAYING mdsm=16313c000", "MediaDecoderStateMachine State": "GetMediaTime=65747301 GetClock=65758911 mMediaSink=11be80710 state=DECODING mPlayState=3 mSentFirstFrameLoadedEvent=1 IsPlaying=1 mAudioStatus=idle mVideoStatus=idle mDecodedAudioEndTime=67744000 mDecodedVideoEndTime=66083914mAudioCompleted=0 mVideoCompleted=0mIsPrerolling=0", "VideoSink Status": "IsStarted=1 IsPlaying=1 VideoQueue(finished=0 size=11) mVideoFrameEndTime=65750247 mHasVideo=1 mVideoSinkEndRequest.Exists()=0 mEndPromiseHolder.IsEmpty()=0" } } ] } ]
In YouTube, can you select a higher resolution than 240p, and check in the media tab that it changes to HW decoding? Or more easily this one http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4
Which Mac is it? In Chrome can you check which decoder is being used? Go to chrome://media-internals/ while playing this video. Then click the button that's captioned with 'blob' and the video URL. In the table below, look for the value of video_decoder. If it says GpuVideoDecoder, Chrome is using the GPU. If it says anything else, for example FFMpegDecoder, it's using software decoding
Priority: -- → P2
@jya re comment 17 - yes hardware decoding was enabled on that video. re comment 18 - yes it says GpuVideoDecoder. Mac: 13" early 2015 2.7 ghz intel core i5 8gb ram gpu intel iris graphics 6100 1536MB
OK, that's normal. So it's only lower resolutions that aren't hardware accelerated. This is expected behaviour. It should be the same in Chrome if you select the 240p streams. I can't see however, how à 240p stream could stretch the CPU usage to 100%, it should barely register in activity monitor. When you manually select the 240p resolution stream in YouTube, how much CPU is Firefox using? Same question when playing http://www.krem.com/news/local/okanogan-county/graphic-obscene-skydrawings-spotted-in-okanogan-co/492496113
Would you have Twitch.tv in your bookmarks by any chance?
On my late 2013 macbook pro with macOS High Sierra, for playing 240p content, Chrome plays VP9 with around 30% CPU usage and Firefox 57 plays avc1 with around 40% CPU usage.
With a 240p video on YouTube, for Firefox CPU is around 10-15% and the media add-on says hardware decoding is disabled. Chrome the CPU is 5-10%. On that krem.com video, for Firefox CPU is around 50-60% and fwiw there is another process called FirefoxCP Web Content that is between 70-90%. By the way the media inspector says hardware decoding is enabled. With Chrome the CPU is around 10-15% and there are two Chrome Helper processes that are around 10-15% and 40-50% respectively. I don't have twitch.tv in my bookmarks.
(In reply to ezanol from comment #23) > With a 240p video on YouTube, for Firefox CPU is around 10-15% and the media > add-on says hardware decoding is disabled. Chrome the CPU is 5-10%. we're not comparing the same thing. Chrome would be using ffmpeg for h264 or libvpx for vp9. We don't have such freedom and must be using the Apple decoder which isn't as performant as ffmpeg I'll close this as WFM.. Not having a hardware decoder for resolutions < 240p is perfectly normal and isn't something we have any control about. It would be the same for Safari or Chrome.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
(In reply to Jean-Yves Avenard [:jya] from comment #24) > I'll close this as WFM.. Not having a hardware decoder for resolutions < > 240p is perfectly normal and isn't something we have any control about. Just to clarify, is there still an open issue about software decoding taking more CPU than expected on this kind of video?
ni?jya for comment 25
Flags: needinfo?(jcristau) → needinfo?(jyavenard)
(In reply to Ben Kelly [:bkelly] from comment #25) > (In reply to Jean-Yves Avenard [:jya] from comment #24) > > I'll close this as WFM.. Not having a hardware decoder for resolutions < > > 240p is perfectly normal and isn't something we have any control about. > > Just to clarify, is there still an open issue about software decoding taking > more CPU than expected on this kind of video? We have a bug that some software decoder do run slower than they should. This doesn't affect the Apple system H264 decoder however.. And it seems to me that this bug was more about users getting a software decoder when they expected a hardware decoder. That "mystery" has been solved IMHO.
Flags: needinfo?(jyavenard)
You need to log in before you can comment on or make changes to this bug.