imx93 play video fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx93 play video fail

1,856 Views
charleshuang
Senior Contributor II

I got an error when I used gst-launch-1.0 to play the video,

root@imx93evk:gst-launch-1.0 filesrc location=/tools/Elecard_about_Tomsk_part2_HEVC_1080p.mp4 ! decodebin ! autovideosink

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

====== AIUR: 4.8.1 build on Aug 4 2023 01:42:29. ======
Core: MPEG4PARSER_06.21.04 build on Jun 20 2023 02:49:18
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
------------------------
Track 00 [video_0] Enabled
Duration: 0:02:54.086655000
Language: unk
Mime:
video/x-h265, parsed=(boolean)true, alignment=(string)au, stream-format=(string)hev1, width=(int)1920, height=(int)1080, framerate=(fraction)22500/899, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000303200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a003c08010e7f96526491b61a588aa93130cbecfaf37e59f5e1446272ec9220001000b4401e1a542040520842624
------------------------
Redistribute latency...
Missing element: H.265 (Main Profile) decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
/usr/src/debug/gstreamer1.0-plugins-base/1.22.0.imx-r0/gst/playback/gstdecodebin2.c(4738): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: H.265 (Main Profile) (video/x-h265, parsed=(boolean)true, alignment=(string)au, stream-format=(string)hev1, width=(int)1920, height=(int)1080, framerate=(fraction)22500/899, codec_data=(buffer)01016000000000000000000000f000fcfdf8f800000f03200001001940010c01ffff01600000030000030000030000030000949024210001003142010101600000030000030000030000030000a003c08010e7f96526491b61a588aa93130cbecfaf37e59f5e1446272ec9220001000b4401e1a542040520842624, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, profile=(string)main, tier=(string)main)

ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
k_part2_HEVC_1080p.mp4 ! decodebin ! autovideosink^Con=/tools/Elecard_about_Tomsk

How to play video on imx93, please

0 Kudos
Reply
4 Replies

1,595 Views
marekb
Contributor III

I'm trying to play video with latest image from yocto (nanbield - NXP i.MX Release Distro 6.6-nanbield) and it seems playback is started but nothing on screen:

 

mp4t@imx93-11x11-lpddr4x-evk:~# gplay-1.0 https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180

FSL_GPLAY2_01.00_LINUX build on Mar 6 2024 07:41:00

playbin3 is enabled

====== AIUR: 4.8.3 build on Mar 6 2024 07:41:00. ======
Core: MPEG4PARSER_06.21.07 build on Jan 19 2024 08:12:16
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
------------------------
Track 00 [video_0] Enabled
Duration: 0:09:56.458333000
Language: und
Mime:
video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)320, height=(
------------------------
------------------------
Track 01 [audio_0] Enabled
Duration: 0:09:56.245333000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)0, stream-format=(string)raw,
------------------------

====== BEEP: 4.8.3 build on Mar 6 2024 07:41:00. ======
Core: AAC decoder Wrapper build on Sep 8 2023 20:17:24
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_ARMV8 build on Sep 8 2023 17:16:00.
=========== fsl_player_play() ==================

FSL_GPLAY2_01.00_LINUX build on Mar 6 2024 07:41:00
[h]display the operation Help
[p]Play
[s]Stop
[e]Seek
[a]Pause when playing, play when paused
[v]Volume
[m]Switch to mute or not
[>]Play next file
[<]Play previous file
[r]Switch to repeated mode or not
[u]Select the video track
[d]Select the audio track
[b]Select the subtitle track
[n]Select adaptive playback track
[f]Set full screen
[z]resize the width and height
[t]Rotate
[c]Setting play rate
[i]Display the metadata
[x]eXit
State changed: buffering
State changed: paused
State changed: playing

I've tried add --video-sink=waylandsink but still no video output. Any ideas please? Thanks.

 

0 Kudos
Reply

1,587 Views
joanxie
NXP TechSupport
NXP TechSupport

i.mx93 doesn't have vpu, you need install the software decoder to support this

Tags (1)
0 Kudos
Reply

1,583 Views
marekb
Contributor III

What do you mean install sw decoder? I'm building image using yocto and gstreamer videotestsrc works fine I just want to display video. Thanks.

0 Kudos
Reply

1,828 Views
joanxie
NXP TechSupport
NXP TechSupport

do you mind sharing the video with me?let me reproduce this on my side, and tell me what bsp version  you use

0 Kudos
Reply