Michael Erwin

iMX8M display shifted after playing decoded video with gstreamer

Discussion created by Michael Erwin on Aug 15, 2019
Latest reply on Oct 17, 2019 by Joan Xie

Sometimes after playing decoded video with a gstreamer pipeline the display (including most but not all windows) gets shifted maybe 5 to 10 percent with the right side wrapping around to the left side (pictures attached).  This happens most often when using a 4k60 HDMI output and is more likely when playing multiple files at the same time.  The shift usually persists and sometimes eventually results in a blank display which requires a reboot to recover.  I am using the latest release 4.14.98_2.0.0 on an iMX8M EVK board.

 

The following script (along with the attached mp4 file copied to the /home/root directory) will cause the problem on a 4k60 screen within 10 minutes.  The script is stopped by removing the 'running' file.

 

touch running
while [ -e running ]; do gst-launch-1.0 uridecodebin uri=file:///home/root/bbba_1080p30.mp4 ! waylandsink window-width=1920 window-height=1080 >/dev/null; done &
sleep 1
while [ -e running ]; do gst-launch-1.0 uridecodebin uri=file:///home/root/bbba_1080p30.mp4 ! waylandsink window-width=1920 window-height=1080 >/dev/null; done &
sleep 1
while [ -e running ]; do gst-launch-1.0 uridecodebin uri=file:///home/root/bbba_1080p30.mp4 ! waylandsink window-width=1920 window-height=1080 >/dev/null; done &
sleep 1
while [ -e running ]; do gst-launch-1.0 uridecodebin uri=file:///home/root/bbba_1080p30.mp4 ! waylandsink window-width=1920 window-height=1080 >/dev/null; done &
sleep 1
while [ -e running ]; do gst-launch-1.0 uridecodebin uri=file:///home/root/bbba_1080p30.mp4 ! waylandsink window-width=1920 window-height=1080 >/dev/null; done &

 

i.mx8mq evk

imx8m-quad

weston

gstreamer 1.0

Outcomes