This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omapdrmtest in AM57xx

Hi experts,

We found omapdrmtest related program in AM57xx EVM ( SDK is from http://software-dl.ti.com/processor-sw/esd/PROCESSOR-SDK-LINUX-AM57X/latest/index_FDS.html).

We try the following and it works.

root@am57xx-evm:~# viddec3test -s 30:1920x1080 1080p.264 --fps 30 
0x1c070: Opening Display..

Forcing playback rate at 30 fps.
using 1 connectors, 800x480 display, multiplanar: 1
0x1c070: Opening Demuxer..
[h264 @ 0x1d6e0] max_analyze_duration reached
[h264 @ 0x1d6e0] Estimating duration from bitrate, this may be inaccurate
Input #0, h264, from '1080p.264':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: h264 (High), yuv420p, 1920x1080, 25 fps, 25 tbr, 1200k tbn, 60 tbc
0x1c070: infile=1080p.264, width=1920, height=1080
0x1c070: padded_width=2048, padded_height=1184, num_buffers=7
Setting mode 1920x1080 on connector 30, crtc 32
0x1c070: Opening Engine..
displayBufsMode: 1
0x1c070: end of input
ERROR:decoder_process:406: 0x1c070: process returned error: -1
ERROR:decoder_process:407: 0x1c070: extendedError: 00040000
root@am57xx-evm:~#

But we got failure when testing encode, the messages are shown as below. Did you know what's the cause ???

root@am57xx-evm:~# videnc2test
usage: videnc2test width height frames_to_write inpattern outpattern fps bitrate(kbps) codec baseline/high level buffertype
example: videnc2test 1920 1088 300 in.yuv out.h264 15 128 h264 baseline 10 OMAPDRM
example: videnc2test 176 144 300 in.yuv out.m4v 30 64 mpeg4 simple/baseline 0 OMAPDRM
example: videnc2test 176 144 300 in.yuv out.m4v 15 150 h263 simple/baseline 0 OMAPDRM
Currently supported codecs: h264 or mpeg4 or h263
Currently supported Buffertypes: OMAPDRM
Run this command for help on the use case:videnc2test
root@am57xx-evm:~# videnc2test 1920 1080 10 1920x1080.yuv out.264 15 2000 h264 baseline 10 OMAPDRM
/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/omapdrmtest/1.0.0-r8/git/videnc2test.c:833: init_h264_dyn_params error: Codec_control returned err=-1, extendedError=00000001
/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/omapdrmtest/1.0.0-r8/git/videnc2test.c:944: encoder_init error: H264 encoder static parameter error
root@am57xx-evm:~#

I have referred to https://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/p/416930/1505218 

and still got failure after copying libdec* from GLSDK7.00.00.04.  Any further idea??

by following, I confirm that I use another libdce.so
root@am57xx-evm:~# ls -l /usr/lib/libdce.so.1*
lrwxrwxrwx 1 root root 30 Oct 10 09:35 /usr/lib/libdce.so.1 -> /home/root/vid/libdce.so.1.0.0
-rwxr-xr-x 1 root root 22620 Oct 7 19:05 /usr/lib/libdce.so.1.0.0
lrwxrwxrwx 1 root root 15 Oct 7 19:59 /usr/lib/libdce.so.1_ori -> libdce.so.1.0.0
root@am57xx-evm:~# ls -l /home/root/vid/libdce.so.1.0.0
-rw-r--r-- 1 root root 21216 Oct 10 10:02 /home/root/vid/libdce.so.1.0.0
root@am57xx-evm:~#

Thanks.