[i.MX93] play video(MP4)

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

[i.MX93] play video(MP4)

Jump to solution
624 Views
yoooh8668
Contributor III

Hi,

I want to play video on i.MX93 evk but failed.

root@imx93evk:~# gplay-1.0 ../weston/videoplayback.mp4 

FSL_GPLAY2_01.00_LINUX build on May 10 2023 01:50:04

playbin3 is enabled

====== AIUR: 4.8.0 build on May 10 2023 01:50:04. ======
        Core: MPEG4PARSER_06.20.12  build on Feb  2 2023 06:07:55
 file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:04:43.016066000
        Language: und
    Mime:
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)464, height=(int)360, framerate=(fraction)30000/1001, codec_data=(buffer)0142c016ffe1001a6742c016da0742ff97016a020202800001f480007530078b175001000468ce3c80 
------------------------
------------------------
    Track 01 [audio_0] Enabled
        Duration: 0:04:43.074467000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrate=(int)0, stream-format=(string)raw, codec_data=(buffer)12100000000000000000000000000000 
------------------------

====== BEEP: 4.8.0 build on May 10 2023 01:50:04. ======
        Core: AAC decoder Wrapper  build on Jul 25 2022 15:45:05
 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 16 2022 13:23:31.

===!!! Current pulsesink device is alsa_output.platform-sound-xcvr.iec958-stereo !!!===

=========== fsl_player_play() ==================

FSL_GPLAY2_01.00_LINUX build on May 10 2023 01:50:04
        [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
[Stop (No Repeated)][Vol=1.0][00:00:00/00:04:43]        [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: playing
[Playing (No Repeated)][Vol=1.0][00:04:42/00:04:43]EOS Found
getNextItem No next item!
No more media file, exit gplay!
FSL_PLAYER_UI_MSG_EXIT
Exit display thread
fsl_player_deinit

 

I follow the page here and found no change.

https://docs.nxp.com/bundle/AN13917/page/topics/video_playback_local_gplay.html

root@imx93evk:~# ./setup_video.sh 
[  889.088365] imx-dwmac 428a0000.ethernet eth1: FPE workqueue stop
[  889.099820] audit: type=1334 audit(1720686677.319:22): prog-id=17 op=LOAD
[  889.110532] audit: type=1334 audit(1720686677.327:23): prog-id=18 op=LOAD
[  889.198447] imx-dwmac 428a0000.ethernet eth1: PHY [stmmac-1:01] driver [RTL8211F-VD Gigabit Ethernet] (irq=POLL)
[  889.208662] imx-dwmac 428a0000.ethernet eth1: configuring for phy/rgmii-id link mode
root@imx93evk:~# gplay-1.0 ../weston/videoplayback.mp4 

FSL_GPLAY2_01.00_LINUX build on May 10 2023 01:50:04

playbin3 is enabled

====== AIUR: 4.8.0 build on May 10 2023 01:50:04. ======
        Core: MPEG4PARSER_06.20.12  build on Feb  2 2023 06:07:55
 file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:04:43.016066000
        Language: und
    Mime:
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)464, height=(int)360, framerate=(fraction)30000/1001, codec_data=(buffer)0142c016ffe1001a6742c016da0742ff97016a020202800001f480007530078b175001000468ce3c80 
------------------------
------------------------
    Track 01 [audio_0] Enabled
        Duration: 0:04:43.074467000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrate=(int)0, stream-format=(string)raw, codec_data=(buffer)12100000000000000000000000000000 
------------------------

====== BEEP: 4.8.0 build on May 10 2023 01:50:04. ======
        Core: AAC decoder Wrapper  build on Jul 25 2022 15:45:05
 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 16 2022 13:23:31.

===!!! Current pulsesink device is alsa_output.platform-sound-xcvr.iec958-stereo !!!===

[Stop (No Repeated)][Vol=1.0][00:00:00/00:04:43]=========== fsl_player_play() ==================

FSL_GPLAY2_01.00_LINUX build on May 10 2023 01:50:04
        [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: playing
[Playing (No Repeated)][Vol=1.0][00:00:27/00:04:43]^C Aborted by signal[2] Interrupt...
FSL_PLAYER_UI_MSG_EXIT
Exit display thread
fsl_player_deinit

 

THANKS~~

Joe

Tags (2)
0 Kudos
Reply
1 Solution
359 Views
praveen_adi
NXP Employee
NXP Employee

There is no hardware decoder for i.MX93. 

The SW decoder can be enabled in the build by making the following changes to the  conf/local.conf file:

 

LICENSE_FLAGS_ACCEPTED += "commercial"
IMAGE_INSTALL:append = "gstreamer1.0-libav"
PACKAGECONFIG:append_pn-gstreamer1.0-libav = "x264"

 

 

View solution in original post

0 Kudos
Reply
2 Replies
360 Views
praveen_adi
NXP Employee
NXP Employee

There is no hardware decoder for i.MX93. 

The SW decoder can be enabled in the build by making the following changes to the  conf/local.conf file:

 

LICENSE_FLAGS_ACCEPTED += "commercial"
IMAGE_INSTALL:append = "gstreamer1.0-libav"
PACKAGECONFIG:append_pn-gstreamer1.0-libav = "x264"

 

 

0 Kudos
Reply
284 Views
yoooh8668
Contributor III
LICENSE_FLAGS_ACCEPTED:append += "commercial"
IMAGE_INSTALL:append = "gstreamer1.0-libav"
PACKAGECONFIG:append_pn-gstreamer1.0-libav = "x264"

 

This works, but need to fix dependency of other packages.

But we will fix that later, thanks for help.

THANKS~~

Joe

0 Kudos
Reply