mpp icon indicating copy to clipboard operation
mpp copied to clipboard

all tests run, but don't print anything

Open Timvrakas opened this issue 1 year ago • 5 comments

./mpp_platform_test for example, just runs and returns with no information printed.

I built from latest source, on a ROCK 3A, RK3568, with rock-3a-ubuntu-focal-server-arm64-20221001-0212-gpt.img.xz

I can see /dev/mpp_service

What am I doing wrong?

Timvrakas avatar Oct 10 '22 04:10 Timvrakas

export mpp_syslog_perror=1 then run

HermanChen avatar Oct 10 '22 07:10 HermanChen

Ah, I didn't realize the log output would end up in /var/log/syslog, rather than printed directly.

That export does not appear to change anything, but I now have the encoder working.

Is there a way to have the test programs print to stdout, rather than to syslog?

Timvrakas avatar Oct 10 '22 09:10 Timvrakas

I find this behavior strange:

mpi_enc_test: failed to open input file big_buck_bunny_1080p_H264_AAC_25fps_7200K-nv12.yuv mpi_enc_test: create default yuv image for test

If the file specified does not exist, I would expect the program to exit with error.

Timvrakas avatar Oct 10 '22 09:10 Timvrakas

Good point. We will change it.

HermanChen avatar Oct 10 '22 10:10 HermanChen

Change the os_log_xxx function to printf in os_log.cpp at osal/linux

HermanChen avatar Oct 10 '22 10:10 HermanChen