Open MartinX3 opened 2 years ago
Hi @MartinX3, I noticed you have 2 devices, render128 and render129. could you please provide following info?
sudo cat /sys/kernel/debug/dri/128/name
sudo cat /sys/kernel/debug/dri/129/name
$ sudo cat /sys/kernel/debug/dri/128/name
i915 dev=0000:00:02.0 master=pci:0000:00:02.0 unique=0000:00:02.0
sudo cat /sys/kernel/debug/dri/129/name
nvidia-drm dev=0000:02:00.0 unique=0000:02:00.0
Please check your env setting and avoid runing iHD driver on nvidia card.
Get more information from previous reporting https://github.com/intel/media-driver/issues/1359 which running iHD driver on AMD card.
I use my intel iGPU for everything except games. For games I use my GTX940MX without any encoding hardware. The GTX940MX is castrated because the hardware vendor nvidia wants me to use the iGPU for decoding and encoding.
my only env settings are
LIBVA_DRIVER_NAME=iHD
VAAPI_MPEG4_ENABLED=true
VDPAU_DRIVER=va_gl
these failure message should happened in initialization stage, vainfo also call these step, but looks it success
Yes, it seems that only h.264/h.265 videos are broken if I see it correctly
But via handbrake I can covert a h.264 video to h.265 via intel quick sync on my iGPU. And also VLC plays these videos.
I don't know if handbrake uses gstreamer or ffmpeg and if ffmpeg uses gstreamer.
I wonder if parole chose a wrong device. By the result of vainfo/handbrake/VLC, all works. @MartinX3, do you know how to let parole choose /dev/dri/renderD128?
Sadly I don't see a option to choose the device, but if the application throws i915
in the error message I assume it already uses the iGPU.
log.log.zip
Sadly I don't see a option to choose the device, but if the application throws
i915
in the error message I assume it already uses the iGPU. log.log.zip
@MartinX3 There's no mention of "i915" in your attached 60MB log file?
Lines with ERROR on them:
$ grep -e ERROR log.log
0:01:07.477961298 726649 0x559647906400 INFO GST_ERROR_SYSTEM gstelement.c:2271:gst_element_message_full_with_details:<matroskademux1> posting message: Internal data stream error.
0:01:07.478092020 726649 0x559647906400 DEBUG bin gstbin.c:3695:gst_bin_handle_message_func:<decodebin1> got ERROR message, unlocking state change
0:01:07.478157518 726649 0x559647906400 DEBUG bin gstbin.c:3695:gst_bin_handle_message_func:<uridecodebin1> got ERROR message, unlocking state change
0:01:07.478261705 726649 0x559647906400 DEBUG bin gstbin.c:3695:gst_bin_handle_message_func:<player> got ERROR message, unlocking state change
0:01:07.478479821 726649 0x559647906400 INFO GST_ERROR_SYSTEM gstelement.c:2298:gst_element_message_full_with_details:<matroskademux1> posted error message: Internal data stream error.
0:01:07.477961298 726649 0x559647906400 INFO GST_ERROR_SYSTEM gstelement.c:2271:gst_element_message_full_with_details:<matroskademux1> posting message: Internal data stream error.
0:01:07.478092020 726649 0x559647906400 DEBUG bin gstbin.c:3695:gst_bin_handle_message_func:<decodebin1> got ERROR message, unlocking state change
0:01:07.478157518 726649 0x559647906400 DEBUG bin gstbin.c:3695:gst_bin_handle_message_func:<uridecodebin1> got ERROR message, unlocking state change
0:01:07.478261705 726649 0x559647906400 DEBUG bin gstbin.c:3695:gst_bin_handle_message_func:<player> got ERROR message, unlocking state change
0:01:07.478479821 726649 0x559647906400 INFO GST_ERROR_SYSTEM gstelement.c:2298:gst_element_message_full_with_details:<matroskademux1> posted error message: Internal data stream error.
Warnings, in order, with timestamps and identical successive messages removed:
$ grep WARN log.log | cut -d' ' -f4- | uniq
WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<source> pad not activated yet
WARN structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field 'context' of type 'GstContext'
WARN matroskareadcommon matroska-read-common.c:713:gst_matroska_read_common_parse_skip:<matroskademux1:sink> Unknown CueTrackPositions subelement 0xf0 - ignoring
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN GST_PADS gstpad.c:4351:gst_pad_peer_query:<capsfilter3:src> could not send sticky events
WARN structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field 'params' of type 'GstAllocationParams'
WARN structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field 'meta' of type 'GArray'
WARN structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field 'allocator' of type 'GArray'
WARN structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field 'pool' of type 'GArray'
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN vaapipostproc gstvaapipostprocutil.c:750:_get_preferred_caps:<vaapipostproc1> Could not fixate src caps
WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc1> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, views=(int)2, framerate=(fraction)30/1 in anything we support
WARN matroskademux matroska-demux.c:6067:gst_matroska_demux_loop:<matroskademux1> error: Internal data stream error.
WARN matroskademux matroska-demux.c:6067:gst_matroska_demux_loop:<matroskademux1> error: streaming stopped, reason not-negotiated (-4)
...
Hi @MartinX3 , I also tried the parole, and could not reproduce it. Could you apt install intel-gpu-tools and run cmd intel_gpu_top. It could show workload when you running your parole app. You may also need to build release-internal driver and refer to this link https://github.com/intel/media-driver/wiki/Video-Processing-Debug-Tool to get hlt log. igfx_user_feature_next.txt
@LhGu I get a short spike in intel_gpu_top
until I see the error message.
Setting up a compile environment and compiling C code is too hard for me.
Hi, @MartinX3 , Just use intel_gpu_top to observe the workload. You must need to give our more debug detail info, because we could not reproduce it. Just download media driver code and Use this command cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TYPE=release-internal ../media-driver to compile it. Then, you need to replace /etc/igfx_user_feature_next.txt. https://github.com/intel/media-driver/wiki/Video-Processing-Debug-Tool
@LhGu Compiling in the media-driver folder results in
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:73 (execute_process):
execute_process attempted to output into a file: into a source directory.
Call Stack (most recent call first):
media_driver/media_top_cmake.cmake:23 (find_package)
media_driver/CMakeLists.txt:95 (include)
Hi, pls read README.md just need to use cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TYPE=release-internal ../media-driver cmd to replace original cmake cmd
@MartinX3 you can also find all things in https://github.com/intel/media-driver/wiki our wiki. You need to compile our release-internal driver to get debug info.
Which component impacted?
Video Processing
Is it regression? Good in old configuration?
Yes, it's good in old version
What happened?
$ GST_DEBUG=2 LIBVA_LOG=1 parole 2022-06-09_15-27-00.mk
https://user-images.githubusercontent.com/4518092/172860351-7c4922fa-d94b-47b5-832d-835ce51d512d.mp4
I can't play the video because of a gstreamer backend error.
What's the usage scenario when you are seeing the problem?
Playback
What impacted?
No response
Debug Information
libva 2.14.0 libva-utils 2.14.0 gmmlib 22.1.3 media-driver 22.4.2
$ ls /dev/dri
$ vainfo
$ GST_DEBUG=2 LIBVA_LOG=1 parole 2022-06-09_15-27-00.mk
Do you want to contribute a patch to fix the issue?
No.