[SOLVED] mpp영상재생 문제

ODROID-M1/M1S
Post Reply
cocoiot
Posts: 3
Joined: Wed Dec 13, 2023 2:25 pm
languages_spoken: korean
ODROIDs: N2L, M1, M1S
Has thanked: 0
Been thanked: 1 time
Contact:

[SOLVED] mpp영상재생 문제

Post by cocoiot »

안녕하세요.. 영상재생이 느려서 찾아보니
https://wiki.odroid.com/odroid-m1s/application_note/mpp
요 링크 보고 하드웨어 가속을 쓰려고 가이드따라했는데 재생이 안되네요. 뭐가 잘못된걸까요?
HDMI에 모니터를 연결해놓은 상태이고, 로그인 되어있는 계정에 SSH로 접속해서 실행했습니다.

fhd-264.mp4는 벤치마크에있는 Valkyrie영상입니다.

➜ ~ uname -a
Linux gnome-desktop 5.10.0-odroid-arm64 #1 SMP Ubuntu 5.10.198-202407021940~focal (2024-07-02) aarch64 aarch64 aarch64 GNU/Linux
➜ ~ gst-launch-1.0 filesrc location=${PWD}/Shared/fhd-264.mp4 \
! qtdemux ! h264parse ! mppvideodec \
! fpsdisplaysink text-overlay=false video-sink=rkximagesink -v

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstRkXImageSink:rkximagesink0: Could not initialise X output
Additional debug info:
../gst/rkximage/ximagesink.c(1799): gst_x_image_sink_xcontext_get (): /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstRkXImageSink:rkximagesink0:
Could not open display
Setting pipeline to NULL ...
Freeing pipeline ...

그리고 gst-inspect-1.0 을 실행했을때 결과가 root와 일반사용자일때 다르게 나오는데 왤까요?
➜ odroid ~ gst-inspect-1.0| grep Rockchip
rockchipmpp: mppvideodec: Rockchip's MPP video decoder
rockchipmpp: mppjpegdec: Rockchip's MPP JPEG image decoder
➜ ~ sudo su
➜ odroid gst-inspect-1.0| grep Rockchip
rockchipmpp: mpph264enc: Rockchip Mpp H264 Encoder
rockchipmpp: mpph265enc: Rockchip Mpp H265 Encoder
rockchipmpp: mppvp8enc: Rockchip Mpp VP8 Encoder
rockchipmpp: mppjpegenc: Rockchip Mpp JPEG Encoder
rockchipmpp: mppvideodec: Rockchip's MPP video decoder
rockchipmpp: mppjpegdec: Rockchip's MPP JPEG image decoder

User avatar
tobetter
Posts: 13380
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 1033 times
Been thanked: 2328 times
Contact:

Re: mpp영상재생 문제

Post by tobetter »

혹시 Gnome Desktop OS가 설치된 상태에서 실행해보신건가요?

cocoiot
Posts: 3
Joined: Wed Dec 13, 2023 2:25 pm
languages_spoken: korean
ODROIDs: N2L, M1, M1S
Has thanked: 0
Been thanked: 1 time
Contact:

Re: mpp영상재생 문제

Post by cocoiot »

tobetter wrote:
Tue Jul 09, 2024 10:10 pm
혹시 Gnome Desktop OS가 설치된 상태에서 실행해보신건가요?
https://wiki.odroid.com/odroid-m1s/os_i ... u/20231226
20231226에 배포된 Ubuntu Gnome Desktop with NPU버전을 사용했습니다.

~ gnome-shell --version
GNOME Shell 3.36.9

~ apt list | grep gnome-desktop
gnome-desktop-testing/focal 2018.1-3 arm64
gnome-desktop3-data/focal-updates,now 3.36.8-0ubuntu1 all [installed]
libgnome-desktop-3-19/focal-updates,now 3.36.8-0ubuntu1 arm64 [installed]
libgnome-desktop-3-dev/focal-updates 3.36.8-0ubuntu1 arm64
ubuntu-gnome-desktop/focal 0.87 arm64
vanilla-gnome-desktop/focal 0.87 arm64

User avatar
tobetter
Posts: 13380
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 1033 times
Been thanked: 2328 times
Contact:

Re: mpp영상재생 문제

Post by tobetter »

cocoiot wrote:
Wed Jul 10, 2024 12:51 pm
tobetter wrote:
Tue Jul 09, 2024 10:10 pm
혹시 Gnome Desktop OS가 설치된 상태에서 실행해보신건가요?
https://wiki.odroid.com/odroid-m1s/os_i ... u/20231226
20231226에 배포된 Ubuntu Gnome Desktop with NPU버전을 사용했습니다.

~ gnome-shell --version
GNOME Shell 3.36.9

~ apt list | grep gnome-desktop
gnome-desktop-testing/focal 2018.1-3 arm64
gnome-desktop3-data/focal-updates,now 3.36.8-0ubuntu1 all [installed]
libgnome-desktop-3-19/focal-updates,now 3.36.8-0ubuntu1 arm64 [installed]
libgnome-desktop-3-dev/focal-updates 3.36.8-0ubuntu1 arm64
ubuntu-gnome-desktop/focal 0.87 arm64
vanilla-gnome-desktop/focal 0.87 arm64
올려주신 내용 다시 확인을 해보니 SSH로 접속해서 명령어 상태에서 실행을 하신거였네요.

화면에서 터미널을 열어서 동일한 명령어로 플레이를 하시거나, 혹은 명령어 상태에서 플레이를 해야 하는 경우 아래의 명령을 실행한 후에 다시 플레이를 해보시기 바랍니다.

Code: Select all

export DISPLAY=:0

cocoiot
Posts: 3
Joined: Wed Dec 13, 2023 2:25 pm
languages_spoken: korean
ODROIDs: N2L, M1, M1S
Has thanked: 0
Been thanked: 1 time
Contact:

Re: mpp영상재생 문제

Post by cocoiot »

저 명령어 쓰니 잘 되네요... 감사합니다
These users thanked the author cocoiot for the post:
tobetter (Thu Jul 11, 2024 7:38 pm)

Post Reply

Return to “M1/M1S”

Who is online

Users browsing this forum: No registered users and 1 guest