High CPU usage with Video



  • Hi,
    i want to play a video with the Video module in qml.

    The video is rendered with the WMV3 codec.

    When I start the video, the cpu usage increses up to 100% and the video runs very slow, like a slideshow.
    If I watch the video with the Windows Media Player, the cpu usage increses aswell, but the video is shown smoothly.

    The application is created on Win10, the target system is Win7.

    I tried the examples of the multimedia module, both the widget and qml example. The frame rate in the qml example is about 10 fps. But if i start the widget example the video plays very well. I set the logging rules qt.qpa.gl=true and qt.scenegraph.general=true.
    The output from Win10:

    00000001	0.00000000	[15060] qt.qpa.gl: Basic wglCreateContext gives version 4.3	
    00000002	0.00008240	[15060] qt.qpa.gl: OpenGL 2.0 entry points available	
    00000003	0.00314273	[15060] qt.qpa.gl: GPU features: QSet()	
    00000004	0.00319464	[15060] qt.qpa.gl: QWindowsOpenGLTester::supportedRenderers GpuDescription(vendorId=0x8086, deviceId=0x41e, subSysId=0x6221028, revision=6, driver: "igdumdim32.dll", version=20.19.15.4531, "Intel(R) HD Graphics 4400") renderer:  QFlags(0x1|0x2|0x4|0x8|0x20)	
    00000005	0.00336238	[15060] qt.qpa.gl: Qt: Using WGL and OpenGL from "opengl32.dll"	
    00000006	0.00879420	[15060] qt.qpa.gl: QOpenGLStaticContext::create OpenGL: "Intel","Intel(R) HD Graphics 4400" default ContextFormat: v4.3 profile: QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile) options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions),SampleBuffers, Extension-API present	
    00000007	0.00879420	[15060] Extensions: 200	
    00000008	0.01160292	[15060] qt.scenegraph.general: threaded render loop	
    00000009	0.01167682	[15060] qt.scenegraph.general: Using sg animation driver	
    00000010	0.01171670	[15060] qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms	
    00000011	0.38530344	[15060] qt.qpa.gl: QWindowsIntegration::createPlatformOpenGLContext QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))	
    00000012	0.38577262	[15060] qt.qpa.gl: QWindowsGLContext::QWindowsGLContext WGL extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_INTEL_cl_sharing WGL_NV_DX_interop2 WGL_ARB_create_context_robustness 	
    00000013	0.38640282	[15060] qt.qpa.gl: "ARB::choosePixelFormat  Attributes:  0x2003 , 0x2027 , 0x2010 , 0x1 , 0x2001 , 0x1 , 0x2014 , 0x18 , 0x2011 , 0x1 , 0x2022 , 0x18 , 0x2013 , 0x202b , 0x201b , 0x8 , 0x2023 , 0x8 , 0x2041 , 0x0 , \n    obtained px # 5  of  1 \n     PIXELFORMATDESCRIPTOR dwFlags=0x8225 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=24 cStencilBits=8 iLayerType=0 cAlphaBits=8 cAlphaShift=24 cAccumBits=64 cAccumRedBits=16 cAccumGreenBits=16 cAccumBlueBits=16 cAccumAlphaBits=16 "	
    00000014	0.38669547	[15060] qt.qpa.gl: ARB::createContext Creating context version 2 . 0 3 attributes	
    00000015	0.39162731	[15060] qt.qpa.gl: QWindowsGLContext::QWindowsGLContext 0xa929c50 ARB  requested:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 	
    00000016	0.39162731	[15060]     obtained # 5 ARB QSurfaceFormat(version 4.3, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) 	
    00000017	0.39162731	[15060]      PIXELFORMATDESCRIPTOR dwFlags=0x8225 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=24 cStencilBits=8 iLayerType=0 cAlphaBits=8 cAlphaShift=24 cAccumBits=64 cAccumRedBits=16 cAccumGreenBits=16 cAccumBlueBits=16 cAccumAlphaBits=16  swap interval:  1 	
    00000018	0.39162731	[15060]     default:  ContextFormat: v4.3 profile: QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile) options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions) 	
    00000019	0.39162731	[15060]     HGLRC= 0x30000	
    00000020	0.39189562	[15060] qt.scenegraph.general: Using sg animation driver	
    00000021	0.39212438	[15060] qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms	
    00000022	0.39376479	[15060] qt.scenegraph.general: texture atlas dimensions: 1024x512	
    00000023	0.39385453	[15060] qt.scenegraph.general: R/G/B/A Buffers:   8 8 8 8	
    00000024	0.39390409	[15060] qt.scenegraph.general: Depth Buffer:      24	
    00000025	0.39394838	[15060] qt.scenegraph.general: Stencil Buffer:    8	
    00000026	0.39399412	[15060] qt.scenegraph.general: Samples:           0	
    00000027	0.39403957	[15060] qt.scenegraph.general: GL_VENDOR:         Intel	
    00000028	0.39408416	[15060] qt.scenegraph.general: GL_RENDERER:       Intel(R) HD Graphics 4400	
    00000029	0.39413106	[15060] qt.scenegraph.general: GL_VERSION:        4.3.0 - Build 20.19.15.4531	
    00000030	0.39448121	[15060] qt.scenegraph.general: GL_EXTENSIONS:     GL_ARB_texture_env_crossbar GL_ARB_stencil_texturing GL_ARB_texture_rg GL_NV_blend_square GL_NV_texgen_reflection GL_EXT_texture_env_add GL_EXT_bgra GL_ARB_fragment_shader GL_ARB_depth_texture GL_EXT_texture_lod_bias GL_ARB_clip_control GL_ARB_shader_precision GL_NV_conditional_render GL_SGIS_texture_edge_clamp GL_ARB_texture_cube_map_array GL_ARB_shadow WGL_EXT_swap_control GL_ARB_depth_buffer_float GL_ARB_framebuffer_sRGB GL_ARB_draw_instanced GL_EXT_geometry_shader4 GL_ARB_transpose_matrix GL_ARB_texture_env_add GL_ARB_internalformat_query GL_ARB_fragment_program GL_ARB_draw_indirect GL_ARB_texture_multisample GL_EXT_blend_equation_separate GL_ARB_vertex_shader GL_EXT_gpu_program_parameters GL_ARB_texture_non_power_of_two GL_EXT_texture_compression_s3tc GL_ARB_separate_shader_objects GL_EXT_blend_color GL_NV_primitive_restart WGL_ARB_pbuffer GL_ARB_seamless_cube_map GL_EXT_timer_query WGL_ARB_create_context GL_ARB_multisample GL_ARB_program_interface_query GL_ARB_vertex_array_object GL_EXT_shader_integer_mix GL_ARB_tessellation_shader GL_INTEL_map_texture WGL_EXT_depth_float WGL_EXT_extensions_string GL_EXT_texture_rectangle GL_ARB_shading_language_packing GL_ARB_occlusion_query GL_EXT_texture_array GL_ARB_compressed_texture_pixel_storage GL_ARB_texture_view GL_ARB_ES3_compatibility GL_EXT_blend_minmax GL_ARB_viewport_array GL_ARB_shading_language_420pack GL_ARB_explicit_uniform_location GL_EXT_framebuffer_blit WGL_ARB_multisample WGL_ARB_create_context_profile GL_EXT_texture_filter_anisotropic GL_ARB_get_program_binary WGL_ARB_pixel_format GL_EXT_secondary_color GL_ARB_half_float_pixel GL_ARB_fragment_coord_conventions GL_ARB_map_buffer_range GL_3DFX_texture_compression_FXT1 GL_ARB_geometry_shader4 GL_ARB_vertex_attrib_binding GL_ARB_draw_buffers GL_ARB_map_buffer_alignment GL_ARB_copy_buffer GL_ARB_texture_storage GL_ARB_sampler_objects GL_ARB_shader_storage_buffer_object GL_EXT_transform_feedback GL_ARB_vertex_buffer_object GL_ARB_texture_mirror_clamp_to_edge GL_EXT_rescale_normal GL_EXT_direct_state_access GL_ARB_transform_feedback3 GL_ARB_texture_storage_multisample GL_ARB_uniform_buffer_object GL_ARB_gpu_shader_fp64 GL_EXT_framebuffer_multisample GL_ARB_fragment_program_shadow GL_EXT_texture_snorm WGL_INTEL_cl_sharing GL_ARB_ES2_compatibility GL_KHR_blend_equation_advanced GL_ARB_texture_rgb10_a2ui WGL_EXT_pixel_format_packed_float GL_ARB_shader_objects GL_ARB_shader_bit_encoding GL_ARB_texture_buffer_range WGL_EXT_create_context_es2_profile WGL_EXT_create_context_es_profile GL_ARB_window_pos GL_EXT_abgr GL_ARB_half_float_vertex GL_EXT_packed_pixels GL_EXT_texture_storage GL_ARB_texture_compression_bptc GL_ARB_sync GL_ARB_shader_atomic_counters GL_ARB_transform_feedback_instanced GL_AMD_vertex_shader_viewport_index GL_ARB_texture_query_lod GL_EXT_framebuffer_object WGL_EXT_swap_control_tear GL_ARB_framebuffer_no_attachments GL_ARB_texture_gather GL_EXT_stencil_two_side GL_ARB_clear_buffer_object GL_EXT_texture_sRGB_decode GL_ARB_timer_query GL_ARB_arrays_of_arrays GL_ARB_robust_buffer_access_behavior GL_SGIS_texture_lod GL_EXT_packed_float GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_multi_draw_indirect GL_EXT_draw_range_elements GL_ARB_enhanced_layouts GL_ARB_pixel_buffer_object GL_ARB_texture_mirrored_repeat GL_ARB_color_buffer_float WGL_ARB_framebuffer_sRGB GL_ARB_seamless_cubemap_per_texture GL_ARB_texture_barrier GL_ARB_robustness GL_ARB_shader_image_size GL_EXT_texture_env_combine WGL_ARB_extensions_string GL_ARB_vertex_array_bgra GL_ARB_draw_buffers_blend GL_INTEL_fragment_shader_ordering GL_ARB_texture_query_levels GL_ARB_conservative_depth GL_ARB_internalformat_query2 GL_SGIS_generate_mipmap GL_EXT_texture3D GL_ARB_framebuffer_object GL_EXT_polygon_offset_clamp GL_EXT_blend_func_separate GL_ARB_depth_clamp GL_ATI_separate_stencil GL_EXT_separate_specular_color GL_EXT_gpu_shader4 GL_ARB_buffer_storage GL_ARB_texture_compression_rgtc GL_ARB_vertex_attrib_64bit GL_ARB_texture_compression GL_ARB_transform_feedback2 GL_WIN_swap_hint GL_ARB_fragment_shader_interlock	
    00000031	0.39454189	[15060]  GL_ARB_texture_border_clamp GL_EXT_compiled_vertex_array GL_ARB_texture_stencil8 GL_ARB_occlusion_query2 GL_ARB_draw_elements_base_vertex GL_ARB_texture_swizzle GL_ARB_copy_image GL_ARB_gpu_shader5 GL_EXT_blend_subtract GL_IBM_texture_mirrored_repeat GL_EXT_texture_edge_clamp GL_ARB_query_buffer_object WGL_ARB_make_current_read GL_ARB_texture_buffer_object_rgb32 GL_EXT_clip_volume_hint GL_ARB_indirect_parameters GL_ARB_texture_env_combine GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_vertex_program GL_ARB_shader_image_load_store GL_ARB_instanced_arrays GL_ARB_texture_cube_map GL_EXT_texture_shared_exponent WGL_ARB_pixel_format_float GL_EXT_draw_buffers2 GL_ARB_texture_rectangle GL_AMD_vertex_shader_layer GL_ARB_invalidate_subdata GL_ARB_point_sprite GL_ARB_fragment_layer_viewport GL_ARB_clear_texture GL_ARB_shading_language_100 GL_SUN_multi_draw_arrays GL_ARB_debug_output WGL_NV_DX_interop2 GL_ARB_cl_event GL_ARB_explicit_attrib_location GL_ARB_blend_func_extended GL_ARB_multi_bind GL_ARB_multitexture WGL_NV_DX_interop GL_EXT_multi_draw_arrays GL_EXT_shadow_funcs GL_EXT_texture_integer GL_ARB_base_instance GL_ARB_texture_env_dot3 GL_ARB_compute_shader GL_ARB_shader_subroutine GL_EXT_texture_swizzle WGL_ARB_buffer_region GL_ARB_compatibility GL_EXT_fog_coord GL_EXT_stencil_wrap GL_ARB_provoking_vertex GL_INTEL_performance_query GL_ARB_point_parameters GL_KHR_debug GL_EXT_texture_sRGB GL_ARB_texture_float GL_ARB_sample_shading WGL_ARB_create_context_robustness GL_EXT_packed_depth_stencil	
    00000032	0.39460465	[15060] qt.scenegraph.general: Max Texture Size: 16384	
    00000033	0.39463985	[15060] qt.scenegraph.general: Debug context:    false	
    

    And the output from Win7:

    00000001	0.00000000	[2920] qt.qpa.gl: Basic wglCreateContext gives version 4.0	
    00000002	0.00024435	[2920] qt.qpa.gl: OpenGL 2.0 entry points available	
    00000003	0.00734715	[2920] qt.qpa.gl: GPU features: QSet()	
    00000004	0.00757823	[2920] qt.qpa.gl: QWindowsOpenGLTester::supportedRenderers GpuDescription(vendorId=0x8086, deviceId=0xf31, subSysId=0xf318086, revision=17, driver: "igdumdim32.dll", version=10.18.10.4653, "Intel(R) HD Graphics") renderer:  QFlags(0x1|0x2|0x4|0x8|0x20)	
    00000005	0.00773950	[2920] qt.qpa.gl: Qt: Using WGL and OpenGL from "opengl32.dll"	
    00000006	0.02937255	[2920] qt.qpa.gl: QOpenGLStaticContext::create OpenGL: "Intel","Intel(R) HD Graphics" default ContextFormat: v4.0 profile: QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile) options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions),SampleBuffers, Extension-API present	
    00000007	0.02937255	[2920] Extensions: 170	
    00000008	0.03324369	[2920] qt.scenegraph.general: threaded render loop	
    00000009	0.03489687	[2920] qt.scenegraph.general: Using sg animation driver	
    00000010	0.03552030	[2920] qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms	
    00000011	0.67804551	[2920] qt.qpa.gl: QWindowsIntegration::createPlatformOpenGLContext QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))	
    00000012	0.67825913	[2920] qt.qpa.gl: QWindowsGLContext::QWindowsGLContext WGL extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_ARB_create_context_robustness 	
    00000013	0.68158925	[2920] qt.qpa.gl: "ARB::choosePixelFormat  Attributes:  0x2003 , 0x2027 , 0x2010 , 0x1 , 0x2001 , 0x1 , 0x2014 , 0x18 , 0x2011 , 0x1 , 0x2022 , 0x18 , 0x2013 , 0x202b , 0x201b , 0x8 , 0x2023 , 0x8 , 0x2041 , 0x0 , \n    obtained px # 5  of  1 \n     PIXELFORMATDESCRIPTOR dwFlags=0x8225 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=24 cStencilBits=8 iLayerType=0 cAlphaBits=8 cAlphaShift=24 cAccumBits=64 cAccumRedBits=16 cAccumGreenBits=16 cAccumBlueBits=16 cAccumAlphaBits=16 "	
    00000014	0.70851904	[2920] qt.qpa.gl: ARB::createContext Creating context version 2 . 0 3 attributes	
    00000015	0.70871174	[2920] qt.qpa.gl: QWindowsGLContext::QWindowsGLContext 0x3267810 ARB  requested:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 	
    00000016	0.70871174	[2920]     obtained # 5 ARB QSurfaceFormat(version 4.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) 	
    00000017	0.70871174	[2920]      PIXELFORMATDESCRIPTOR dwFlags=0x8225 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=24 cStencilBits=8 iLayerType=0 cAlphaBits=8 cAlphaShift=24 cAccumBits=64 cAccumRedBits=16 cAccumGreenBits=16 cAccumBlueBits=16 cAccumAlphaBits=16  swap interval:  1 	
    00000018	0.70871174	[2920]     default:  ContextFormat: v4.0 profile: QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile) options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions) 	
    00000019	0.70871174	[2920]     HGLRC= 0x30000	
    00000020	0.71069723	[2920] qt.scenegraph.general: Using sg animation driver	
    00000021	0.71118170	[2920] qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms	
    00000022	0.72249913	[2920] qt.scenegraph.general: texture atlas dimensions: 1024x512	
    00000023	0.72263390	[2920] qt.scenegraph.general: R/G/B/A Buffers:   8 8 8 8	
    00000024	0.72274560	[2920] qt.scenegraph.general: Depth Buffer:      24	
    00000025	0.72288382	[2920] qt.scenegraph.general: Stencil Buffer:    8	
    00000026	0.72302902	[2920] qt.scenegraph.general: Samples:           0	
    00000027	0.72321683	[2920] qt.scenegraph.general: GL_VENDOR:         Intel	
    00000028	0.72333133	[2920] qt.scenegraph.general: GL_RENDERER:       Intel(R) HD Graphics	
    00000029	0.72412163	[2920] qt.scenegraph.general: GL_VERSION:        4.0.0 - Build 10.18.10.4653	
    00000030	0.72416908	[2920] qt.scenegraph.general: GL_EXTENSIONS:     GL_ARB_sampler_objects GL_ARB_vertex_shader GL_EXT_texture_compression_s3tc GL_ARB_depth_buffer_float GL_ARB_blend_func_extended WGL_EXT_swap_control_tear GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_ARB_texture_non_power_of_two GL_ARB_texture_env_combine GL_ARB_debug_output GL_EXT_draw_range_elements GL_EXT_texture_integer GL_EXT_gpu_program_parameters GL_EXT_blend_equation_separate GL_WIN_swap_hint GL_EXT_gpu_shader4 GL_EXT_texture_sRGB GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_multitexture GL_ARB_framebuffer_sRGB GL_EXT_transform_feedback GL_ARB_window_pos GL_EXT_blend_subtract GL_ARB_draw_buffers GL_ARB_provoking_vertex GL_ARB_copy_buffer GL_ARB_map_buffer_range GL_INTEL_performance_queries GL_EXT_framebuffer_object GL_ARB_shader_objects WGL_ARB_buffer_region GL_ARB_explicit_attrib_location WGL_ARB_make_current_read GL_ARB_vertex_array_object WGL_ARB_create_context_profile GL_ARB_fragment_shader GL_ARB_texture_border_clamp WGL_ARB_extensions_string GL_ARB_shading_language_100 GL_ARB_texture_compression_bptc GL_ARB_draw_elements_base_vertex GL_INTEL_performance_query GL_ARB_shader_bit_encoding GL_ARB_texture_env_crossbar GL_NV_blend_square GL_EXT_texture_shared_exponent GL_EXT_rescale_normal GL_KHR_blend_equation_advanced GL_ARB_texture_env_dot3 GL_EXT_packed_pixels GL_ARB_texture_compression_rgtc GL_ARB_fragment_program_shadow GL_ARB_occlusion_query GL_SGIS_texture_lod GL_EXT_blend_color GL_ARB_sample_shading GL_INTEL_map_texture GL_EXT_texture_buffer GL_ARB_map_buffer_alignment GL_ARB_depth_clamp GL_NV_conditional_render GL_ARB_get_program_binary GL_ARB_uniform_buffer_object GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_EXT_blend_minmax GL_EXT_compiled_vertex_array GL_ARB_depth_texture GL_NV_primitive_restart GL_ARB_gpu_shader_fp64 WGL_EXT_pixel_format_packed_float GL_ATI_separate_stencil GL_ARB_gpu_shader5 GL_ARB_program_interface_query GL_EXT_abgr GL_ARB_half_float_pixel GL_EXT_packed_float WGL_EXT_swap_control GL_ARB_half_float_vertex GL_EXT_framebuffer_blit GL_ARB_buffer_storage GL_ARB_draw_buffers_blend GL_ARB_texture_env_add GL_ARB_shadow GL_EXT_texture_sRGB_decode GL_ARB_multisample GL_EXT_secondary_color GL_3DFX_texture_compression_FXT1 GL_ARB_sync GL_EXT_texture_env_combine GL_ARB_texture_buffer_object_rgb32 GL_ARB_vertex_program GL_ARB_timer_query GL_ARB_arrays_of_arrays WGL_EXT_depth_float GL_EXT_texture_filter_anisotropic GL_EXT_texture_storage GL_ARB_texture_storage_multisample GL_EXT_texture_swizzle GL_ARB_texture_query_lod GL_ARB_color_buffer_float GL_EXT_texture_env_add GL_EXT_shader_integer_mix GL_ARB_vertex_attrib_binding GL_ARB_texture_buffer_range GL_ARB_texture_float GL_ARB_multi_draw_indirect GL_ARB_framebuffer_no_attachments GL_ARB_transform_feedback2 GL_ARB_texture_swizzle GL_EXT_multi_draw_arrays GL_ARB_texture_storage GL_ARB_base_instance GL_ARB_geometry_shader4 GL_EXT_texture_rectangle GL_ARB_transform_feedback_instanced GL_KHR_debug GL_ARB_robustness GL_ARB_instanced_arrays GL_ARB_texture_compression GL_ARB_compatibility GL_EXT_stencil_two_side GL_ARB_shading_language_420pack GL_IBM_texture_mirrored_repeat GL_SGIS_generate_mipmap WGL_ARB_pixel_format_float GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_vertex_array_bgra GL_ARB_stencil_texturing WGL_ARB_multisample GL_EXT_bgra WGL_NV_DX_interop GL_EXT_separate_specular_color GL_SUN_multi_draw_arrays GL_ARB_tessellation_shader GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object WGL_EXT_create_context_es2_profile GL_ARB_draw_indirect GL_ARB_shader_precision GL_EXT_texture_snorm GL_ARB_shading_language_packing GL_ARB_fragment_coord_conventions GL_ARB_framebuffer_object GL_EXT_blend_func_separate GL_ARB_internalformat_query GL_ARB_texture_multisample GL_EXT_fog_coord GL_ARB_draw_instanced GL_ARB_texture_rgb10_a2ui GL_ARB_point_sprite GL_EXT_texture_array GL_EXT_texture_edge_clamp GL_EXT_stencil_wrap GL_ARB_shader_subroutine GL_ARB_internalformat_query2 GL_EXT_packed_depth_stencil WGL_EXT_create_context_es_profile WGL_ARB_create_context WGL_ARB_pbuffer GL_EXT_shadow_funcs GL	
    00000031	0.72442949	[2920] _EXT_clip_volume_hint GL_ARB_texture_cube_map_array GL_ARB_shader_atomic_counters WGL_EXT_extensions_string GL_ARB_texture_gather GL_EXT_texture_lod_bias GL_ARB_conservative_depth GL_NV_texgen_reflection WGL_ARB_create_context_robustness GL_ARB_occlusion_query2 GL_SGIS_texture_edge_clamp GL_EXT_geometry_shader4 GL_ARB_seamless_cube_map GL_EXT_framebuffer_multisample WGL_ARB_pixel_format GL_ARB_texture_rectangle GL_ARB_fragment_program WGL_ARB_framebuffer_sRGB GL_EXT_texture3D GL_ARB_separate_shader_objects GL_ARB_transform_feedback3 GL_ARB_texture_cube_map GL_ARB_texture_rg GL_EXT_draw_buffers2 GL_ARB_compressed_texture_pixel_storage	
    00000032	0.72456282	[2920] qt.scenegraph.general: Max Texture Size: 16384	
    00000033	0.72485882	[2920] qt.scenegraph.general: Debug context:    false	
    
    

    So why is the frame rate with QML so low?

    Any helps? Thanks!


  • Moderators

    Can you share the QML code that plays the video?

    Only thing I really notice is you are using an integrated intel video card. It should play a video just fine, but they are really slow. If you have a system with a 3D card (nvidia or amd) it's possible that windows media player is using that card and not the intel card to play the video. Hence it's nice and fast, meanwhile being slow in qml.

    If you share the QML I can build and play it on my system and let you know if it does that to me or if I get good performance out of it. I don't have any integrated graphics cards though.



  • @ambershark

    I forgot to tell, that only on Win7 the fps rate is very low with qml. I used the following examples: qml video and widget player

    I summarized my results:

    Example Win10 Win7
    widget fluent fluent
    qml fluent slideshow

    I also set the logging rules qt.multimedia.*=true with the following output.
    Win10:

    00000001	0.00000000	[8656] qt.multimedia.video: source is QDeclarativeAudio(0xde40a50)	
    00000002	0.00002845	[8656] qt.multimedia.video: media object is QMediaPlayer(0xdeecdd0)	
    00000003	1.50212240	[8656] qt.multimedia.video: Video surface format: QVideoSurfaceFormat(Format_ARGB32, QSize(1280, 720), viewport=QRect(0,0 1280x720), pixelAspectRatio=QSize(1, 1), handleType=NoHandle, yCbCrColorSpace=YCbCr_Undefined)	
    00000004	1.50212240	[8656]     handleType = QVariant(QAbstractVideoBuffer::HandleType, )	
    00000005	1.50212240	[8656]     pixelFormat = QVariant(QVideoFrame::PixelFormat, )	
    00000006	1.50212240	[8656]     frameSize = QVariant(QSize, QSize(1280, 720))	
    00000007	1.50212240	[8656]     frameWidth = QVariant(int, 1280)	
    00000008	1.50212240	[8656]     viewport = QVariant(QRect, QRect(0,0 1280x720))	
    00000009	1.50212240	[8656]     scanLineDirection = QVariant(QVideoSurfaceFormat::Direction, )	
    00000010	1.50212240	[8656]     frameRate = QVariant(double, 0)	
    00000011	1.50212240	[8656]     pixelAspectRatio = QVariant(QSize, QSize(1, 1))	
    00000012	1.50212240	[8656]     sizeHint = QVariant(QSize, QSize(1280, 720))	
    00000013	1.50212240	[8656]     yCbCrColorSpace = QVariant(QVideoSurfaceFormat::YCbCrColorSpace, )	
    00000014	1.50212240	[8656]     mirrored = QVariant(bool, false) all supported formats: (Format_YUV420P, Format_YV12, Format_NV12, Format_NV21, Format_UYVY, Format_YUYV, Format_RGB32, Format_ARGB32, Format_BGR32, Format_BGRA32, Format_RGB565)	
    00000015	1.54488170	[8656] qt.multimedia.video: updatePaintNode: no frames yet	
    00000016	1.57825267	[8656] qt.multimedia.video: Video surface format: QVideoSurfaceFormat(Format_ARGB32, QSize(1280, 720), viewport=QRect(0,0 1280x720), pixelAspectRatio=QSize(1, 1), handleType=NoHandle, yCbCrColorSpace=YCbCr_Undefined)	
    00000017	1.57825267	[8656]     handleType = QVariant(QAbstractVideoBuffer::HandleType, )	
    00000018	1.57825267	[8656]     pixelFormat = QVariant(QVideoFrame::PixelFormat, )	
    00000019	1.57825267	[8656]     frameSize = QVariant(QSize, QSize(1280, 720))	
    00000020	1.57825267	[8656]     frameWidth = QVariant(int, 1280)	
    00000021	1.57825267	[8656]     viewport = QVariant(QRect, QRect(0,0 1280x720))	
    00000022	1.57825267	[8656]     scanLineDirection = QVariant(QVideoSurfaceFormat::Direction, )	
    00000023	1.57825267	[8656]     frameRate = QVariant(double, 0)	
    00000024	1.57825267	[8656]     pixelAspectRatio = QVariant(QSize, QSize(1, 1))	
    00000025	1.57825267	[8656]     sizeHint = QVariant(QSize, QSize(1280, 720))	
    00000026	1.57825267	[8656]     yCbCrColorSpace = QVariant(QVideoSurfaceFormat::YCbCrColorSpace, )	
    00000027	1.57825267	[8656]     mirrored = QVariant(bool, false) all supported formats: (Format_YUV420P, Format_YV12, Format_NV12, Format_NV21, Format_UYVY, Format_YUYV, Format_RGB32, Format_ARGB32, Format_BGR32, Format_BGRA32, Format_RGB565)	
    00000028	1.59507012	[8656] qt.multimedia.video: updatePaintNode: Video node created. Handle type: NoHandle  Supported formats for the handle by this node: (Format_RGB32, Format_ARGB32, Format_BGR32, Format_BGRA32, Format_RGB565)	
    00000029	2.76116896	[8656] qt.multimedia.video: updatePaintNode: deleting old video node because frame format changed	
    00000030	2.76126742	[8656] qt.multimedia.video: updatePaintNode: no frames yet	
    

    and on Win7:

    00000001	0.00000000	[5088] qt.multimedia.video: source is QDeclarativeAudio(0x645aad0)	
    00000002	0.00243230	[5088] qt.multimedia.video: media object is QMediaPlayer(0x6514f88)	
    00000003	7.88404274	[5088] qt.multimedia.video: Video surface format: QVideoSurfaceFormat(Format_ARGB32, QSize(1280, 720), viewport=QRect(0,0 1280x720), pixelAspectRatio=QSize(1, 1), handleType=NoHandle, yCbCrColorSpace=YCbCr_Undefined)	
    00000004	7.88404274	[5088]     handleType = QVariant(QAbstractVideoBuffer::HandleType, )	
    00000005	7.88404274	[5088]     pixelFormat = QVariant(QVideoFrame::PixelFormat, )	
    00000006	7.88404274	[5088]     frameSize = QVariant(QSize, QSize(1280, 720))	
    00000007	7.88404274	[5088]     frameWidth = QVariant(int, 1280)	
    00000008	7.88404274	[5088]     viewport = QVariant(QRect, QRect(0,0 1280x720))	
    00000009	7.88404274	[5088]     scanLineDirection = QVariant(QVideoSurfaceFormat::Direction, )	
    00000010	7.88404274	[5088]     frameRate = QVariant(double, 0)	
    00000011	7.88404274	[5088]     pixelAspectRatio = QVariant(QSize, QSize(1, 1))	
    00000012	7.88404274	[5088]     sizeHint = QVariant(QSize, QSize(1280, 720))	
    00000013	7.88404274	[5088]     yCbCrColorSpace = QVariant(QVideoSurfaceFormat::YCbCrColorSpace, )	
    00000014	7.88404274	[5088]     mirrored = QVariant(bool, false) all supported formats: (Format_YUV420P, Format_YV12, Format_NV12, Format_NV21, Format_UYVY, Format_YUYV, Format_RGB32, Format_ARGB32, Format_BGR32, Format_BGRA32, Format_RGB565)	
    00000015	7.95767069	[5088] qt.multimedia.video: updatePaintNode: no frames yet	
    00000016	8.08413506	[5088] qt.multimedia.video: Video surface format: QVideoSurfaceFormat(Format_ARGB32, QSize(1280, 720), viewport=QRect(0,0 1280x720), pixelAspectRatio=QSize(1, 1), handleType=NoHandle, yCbCrColorSpace=YCbCr_Undefined)	
    00000017	8.08413506	[5088]     handleType = QVariant(QAbstractVideoBuffer::HandleType, )	
    00000018	8.08413506	[5088]     pixelFormat = QVariant(QVideoFrame::PixelFormat, )	
    00000019	8.08413506	[5088]     frameSize = QVariant(QSize, QSize(1280, 720))	
    00000020	8.08413506	[5088]     frameWidth = QVariant(int, 1280)	
    00000021	8.08413506	[5088]     viewport = QVariant(QRect, QRect(0,0 1280x720))	
    00000022	8.08413506	[5088]     scanLineDirection = QVariant(QVideoSurfaceFormat::Direction, )	
    00000023	8.08413506	[5088]     frameRate = QVariant(double, 0)	
    00000024	8.08413506	[5088]     pixelAspectRatio = QVariant(QSize, QSize(1, 1))	
    00000025	8.08413506	[5088]     sizeHint = QVariant(QSize, QSize(1280, 720))	
    00000026	8.08413506	[5088]     yCbCrColorSpace = QVariant(QVideoSurfaceFormat::YCbCrColorSpace, )	
    00000027	8.08413506	[5088]     mirrored = QVariant(bool, false) all supported formats: (Format_YUV420P, Format_YV12, Format_NV12, Format_NV21, Format_UYVY, Format_YUYV, Format_RGB32, Format_ARGB32, Format_BGR32, Format_BGRA32, Format_RGB565)	
    00000028	8.10387135	[5088] qt.multimedia.video: updatePaintNode: Video node created. Handle type: NoHandle  Supported formats for the handle by this node: (Format_RGB32, Format_ARGB32, Format_BGR32, Format_BGRA32, Format_RGB565)	
    00000029	25.18303871	[5088] qt.multimedia.video: updatePaintNode: deleting old video node because frame format changed	
    00000030	25.18331337	[5088] qt.multimedia.video: updatePaintNode: no frames yet	
    00000031	26.69268417	[5088] qt.multimedia.video: media object is QObject(0x0)	
    

  • Moderators

    Here's the only differences between those 2 outputs:

    1,2c1,2
    < qt.multimedia.video: source is QDeclarativeAudio(0xde40a50)
    < qt.multimedia.video: media object is QMediaPlayer(0xdeecdd0)
    ---
    > qt.multimedia.video: source is QDeclarativeAudio(0x645aad0)
    > qt.multimedia.video: media object is QMediaPlayer(0x6514f88)
    30a31
    > qt.multimedia.video: media object is QObject(0x0)
    

    Nothing of significance other than the null media object at the bottom of the win7 one.

    This may be a bug in Qt, or it could be an issue with your win7. I don't think there's any good code reason for it though. If you can try setting up a vm with a fresh win7 and test it in there.

    Maybe someone else will have some better ideas..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.