How to configure vpu enc when recording video on imx8qm

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

How to configure vpu enc when recording video on imx8qm

4,814 Views
jack-cap
Contributor III

Hardware platform: imx8qm

software platform: imx-p9.0.0_2.1.1-auto-ga-android

I wrote an application for recording 4-way videos, the application using Camera 1.0 Api. When the recording application is started, It using software coding rather then vpu enc,The cpu is high occupancy as shown in the figure. and adb logcat in the appendix.

Has anyone had this problem?  please give me a solution, Thanks!

微信图片_20200331104826.png

12 Replies

4,306 Views
joanxie
NXP TechSupport
NXP TechSupport

how many camera do you use? I haven't tested mediarecorder, but for gstreamer, which can support multi-channel encoding

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

any progress ,pls notify me. thanks.

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

i.MX ProcessorsProcessor Expert Software@‌joanxie 
about android record multiple videos, any plans to solve skip frame?

4,307 Views
chenguoyin
NXP Employee
NXP Employee

can you try to use android-10 GA version? In pi version, we may limited the vpu instance to be used as 1

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

chenguoyin i.MX ProcessorsProcessor Expert Software
when recording four videos, I found four vpu_instance on  top command result. so in android p version, the number of vpu instance is four.

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III


chenguoyin

when record four videos , I find four vpu_instance on top command result.

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

Any progress ?

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

@joanxie 

The board has 4 cameras on imx8 about android OS. Recording one camera video is normal when use mediarecorder. but recording multiple (>2) channel camera video has skip frame. when mediarecorder is working ,the vpu_instance process will be found on top command. The number of vpu_instance is the same as the mediarecorder channel video number.

And how to use gstreamer on Android OS ?

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III
0 Kudos
Reply

4,307 Views
joanxie
NXP TechSupport
NXP TechSupport

maybe you can refer to the surroundview solution from official website, you can find application note and source code there:

https://www.nxp.com/design/designs/i-mx-surround-view-system:SURROUND-VIEW-APPLICATION

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

@Joan Xie

Are there other test cases for recording multiple videos on android ?

0 Kudos
Reply

4,307 Views
jack-cap
Contributor III

I want to record four channels of video with android api (mediarecorder), but the recorded video has skip frame, please help to analysis.

0 Kudos
Reply