Video playback with HW decoder for i.mx8 - TechNexion/u-boot-tn-imx GitHub Wiki
Video playback with HW decoder
Video and audio playback via gstreamer
For i.mx8MQ:
H.264/H.265(HEVC) movie playback:
~# gst-launch-1.0 playbin3 uri=file:/run/media/sda1/LG_Eye_of_Storm_4K_Demo.ts
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
For i.mx8MM:
H.264 movie playback:
export TEST_FILE=/run/media/sda/bbb_sunflower_1080p_30fps_normal.mp4
~# gst-launch-1.0 filesrc location=$TEST_FILE typefind=true \
! video/quicktime ! aiurdemux ! queue max-size-time=0 \
! vpudec ! waylandsink window-width=1280 window-height=720 async=false enable-last-sample=false qos=false sync=true
Note:
The parameter width=1280 window-height=720
for waylandsink
corresponds to the display resolution.
It has to use Yocto with xwayland backend
. wayland backend
can't display properly. It only shows green on display.
It's known issue in Yocto 2.5.