Hi,
I met a error on DM355 EVM ,DVSDK 1.30 when I create mpeg4 encoder and decoder instant at the same time.
All programe are ok when runs respectly.
1. Run a mpeg4 encoder programe on the background( just create encoder instant and set the params,then Pause )
# ./display-test &
2. Run mpeg4 decoder demo .
# ./decode-t3 -v recordui4.mpeg4
then I got:
Decode demo started.
CMEMK Error: GETPHYS: Failed to convert virtual 0x401369a0 to physical.
CMEM Error: getPhys: Failed to get physical address of 0x401369a0
invalid param address
Decode Error: Failed to open video decode algorithm
What makes me confused is :
1.Run mpeg4 encoder demo first:
# ./encode-t3 -v recordui3.mpeg4 &
then press the pause button on remote, so encoder demo is paused
2. Run decoder demo
# ./decode-t3 -v recordui4.mpeg4
NO ERRORS and runs successfully.
The difference between my programe and encoder demo is : my programe has some GTK+ code,
and I have to add "-Wl,-rpath=/opt/gtkdfb/lib " at the end of LD_FLAGS in Makefile , like below:
" LD_FLAGS += -lfreetype -lpng -ljpeg -lpthread -Wl,-rpath=/opt/gtkdfb/lib "
"/opt/gtkdfb/lib" is the path where I put cross-compiled lib files of gtk2.0 and its dependencies.
Will the gtk+ and its related libs affect the codec ?
Also, I use the same LD_FLAGS for mpeg4 decoder demo, and compile the demo again.
1.(run my programe as above)
2. Run mpeg4 decoder demo.
# ./decode-t3 -v recordui4.mpeg4
I got:
Decode demo started.
invalid param address
Decode Error: Failed to open video decode algorithm
And run it again. no errors and decoder works fine.
After it ends, run again. Same error occurred.
run again. it works fine again.
... ...
Strange things! What happened in codec?
Could you give me some suggestions on solving this problem?
Thanks a lot!