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.
Tool/software: Linux
Hello TI Experts,
I download the gst-plugin-dsp66 source code from http://git.ti.com/processor-sdk/gst-plugin-dsp66 and compiled it.
When I replaced the same name file in target board, and input command "gst-inspect-1.0 dsp66videokernel", system not found the element. How to resolved this issue? Please help me, thanks!
My compiled scripts is following, it can compiled successed.
GST_MODULES="gstreamer gst-plugin-base gst-plugin-good gst-plugin-libav gst-plugin-dsp66" GST_CONF=("" "--disable-pango --disable-ivorbis" "--disable-libpng" "" "") LOG_PATH=$PWD/gst-log export PREFIX=$PWD/ARMInstall # AM5728 Enviroment export SDK_PATH_TARGET=$HOME/work_home/Source/am57xx_evm_3.0/linux-devkit/sysroots/cortexa15hf-neon-linux-gnueabi export TI_OCL_CGT_INSTALL=$SDK_PATH_TARGET/usr/share/ti/cgt-c6x export TARGET_ROOTDIR=$SDK_PATH_TARGET export DESTDIR=$PREFIX i=0 rm -rf $LOG_PATH/* for MODULE in $GST_MODULES; do cd $MODULE ./autogen.sh > $LOG_PATH/$MODULE.log 2>&1 PATH=$PREFIX/bin:$PATH PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig ./configure CC=arm-linux-gnueabihf-gcc --build=i686-linux --host=arm-linux ${GST_CONF[i]} >> $LOG_PATH/$MODULE.log 2>&1 make clean >> $LOG_PATH/$MODULE.log 2>&1 && make -s -j4 >> $LOG_PATH/$MODULE.log 2>&1 && make install >> $LOG_PATH/$MODULE.log 2>&1 if [ $? -ne 0 ]; then echo "$MODULE make error"; exit; else echo "$MODULE make success"; fi let i+=1 cd - done
Hi Margarita:
I have according to the "Processor SDK Building The SDK" compile complete gst-plugins-dsp66.
The compile complete's key is download all source code from "software-dl.ti.com/.../sources" with download tools then copy their to tisdk/downloads directory. Then compile it can successfully passed.
But I still have a question.
Why I used for gst-plugins-dsp66 when camera capture, it print error information.
How to used gst-plugins-dsp66 when camera capture?
I input follow command:
"gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! videoconvert ! dsp66videokernel kerneltype=1 filtersize=9 lum-only=1 ! videoconvert ! vpe ! 'video/x-raw, format=(string)NV12, width=(int)640, height=(int)480' ! kmssink"
It print error information:
Thanks for your reply !
I recheck all gst-plugins element's properties.
"dsp66videokernel" format is YV12 and I420
"v4l2src" format is NV12 and YUY2
"vpe" format is YUYV, NV12 and YUY2
So I rebuild-up command as folowing:
"gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4 ! 'video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! vpe ! 'video/x-raw, format=(string)NV12, width=(int)640, height=(int)480' ! videoconvert ! dsp66videokernel kerneltype=5 filtersize=9 lum-only=1 ! videoconvert ! vpe ! kmssink"
The data flow as following:
camera capture image to buffer -->scale the image through vpe --> "videoconvert", convert format for adapt to "dsp66videokernel" -->"dsp66videokernel", run dsp algorithm --> "videoconvert", convert format for adapt to "vpe" -->then display on HDMI through "kmssink"
Then I can run dsp algorithm when camera capture and display on HDMI.
Thanks for you help !