Created attachment 1498 [details] 1280x720, H264 display images in fullscreen are distorted in gstreamer while the resized are fine. attached sample video clip reproduces the result. tested env: display: HDMI 720P ( uboot: video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 ) media: 1280x720 resolution media file. app: qmediaplayer
Please update status
What is the backend used? Can you share the DISTRO_FEATURE to reproduce the issue? Or even better, can you, please, test it again in daisy? Thanks
The reason for this issue is that mfw_isink doesn't have the option "force-aspect-ratio", so the described behavior of "distorted video" is expected (it generally means changed aspect-ratio). One possible work-around for the issue is to use apply properly calculated scaling when using mfw_isink. Another option is to use mfw_v4lsink plugin instead, which supports "force-aspect-ratio" option. Here's an example media pipeline, that can be used to observe the proper behavior: gst-launch playbin2 uri=file:///video.mp4 video-sink="mfw_v4lsink force-aspect-ratio=true" It's possible that this solution is not appropriate for all use cases, as the mfw_v4lsink plugin doesn't support the IPU FG/BG layers alpha-blending. I can also confirm that the described behaviors of both mfw_isink and mfw_v4lsink can be observed with the current "daisy" code.
Hello, First, thank you for the detailed answer. (In reply to comment #3) > I can also confirm that the described behaviors of both mfw_isink and > mfw_v4lsink can be observed with the current "daisy" code. Is it possible for you to try the Dizzy branch? It has updated codecs and might offer better results (or not).
Hi Otavio. Just tested the gstreamer behavior on Dizzy branch, and it's exactly the same as reported previously.
It appears the NEEDINFO request has been answered
The way I see this issue is that mfw_isink plugins needs the "force-aspect-ratio" property to be implemented. After this is done, mfw_isink will behave as well as mfw_v4lsink, which means that all media streams containing proper metadata (width/height/pixel-aspect-ratio) will be displayed with correct aspect-ratio. In all other cases the image will be displayed with geometric distortion, but this wouldn't be a defect in neither Gstreamer nor fsl-gstreamer-plugins. In such cases the end-user will need to manually specify the video width/height.
I'm closing this bug as "resolved" and "notabug" after one year of latest comment. In last one year, FSL Community BSP has adopted gstreamer 1.0 and 'gst-fsl-plugin' was replaced by 'gst1.0-fsl-plugin', and 'gstreamer-imx' has been used and maintained by community (in github) very responsiveness. In case this is still something still to be discussed, we can reopen this bug, although I think it was stressed enough now.