15  
查询码: 00000069
在智铠MR50上安装ixstream
专家 作者: 宋美霞 于 2024年11月25日 ,于 2025年05月14日 编辑

安装ixstream依赖包

apt-get install glib2.0
apt-get install libgstreamer1.0 gstreamer1.0-tools libgstreamer1.0-dev
apt-get install gstreamer1.0-plugins-base
apt-get install gstreamer1.0-plugins-good
apt-get install gstreamer1.0-plugins-bad
apt-get install gstreamer1.0-plugins-ugly
apt-get install libgstrtspserver-1.0
apt-get install libopenblas-dev
apt-get install libgirepository1.0-dev libcairo2-dev 

安装ixstream

bash ixstream-{version}_corex-{v.r.m}_{ARCH}.run 

pip3 install pyixstream-{version}+corex.{v.r.m}-cp{python-version}-cp{python-version}-linux_{ARCH}.whl

comments:安装pyixstream时报错:/lib/x86_64-linux-gnu/libgobject-2.0.so.0:undefined symbol:ffi_type_uint32,version LIBFFI_BASE_7.0
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7

设置环境变量

find / -name libtvm.so (实际位置放到LD_LIBRARY_PATH)

find / -name libixrt.so(实际位置放到LD_LIBRARY_PATH)

export GST_PLUGIN_PATH=$GST_PLUGIN_PATH:/usr/local/corex/lib64/plugins

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/corex/lib64:/usr/local/lib/python3.10/dist-packages/tvm

检查环境配置

rm -rf /root/.cache/gstreamer-1.0/
gst-inspect-1.0 | grep Gst

需要包含下面:


...
ixstream_segvisual:  Gst-IxSegVisual: Gst-IxSegVisual plugin
ixstream_analytics:  Gst-IxAnalytics: Gst-IxAnalytics plugin
ixstream_jpudecode:  Gst-IxJpuDecode: Gst-IxJpuDecode plugin
ixstream_tiler:  Gst-IxMultiStreamTiler: Gst-IxMultiStreamTiler plugin
ixstream_h264encode:  Gst-IxH264Encode: Gst-IxH264Encode plugin
ixstream_streamdemux:  Gst-IxStreamDemux: Gst-IxStreamDemux plugin
ixstream_tracker:  Gst-IxTracker: Gst-IxTracker plugin
ixstream_osd:  Gst-IxOsd: Gst-IxOsd plugin
ixstream_infer:  Gst-IxInfer: Gst-IxInfer plugin
ixstream_preprocess:  Gst-IxPreprocess: Gst-IxInfer plugin
ixstream_converter:  Gst-IxConverter: Gst-IxConverter plugin
ixstream_streammux:  Gst-IxStreamMux: Gst-IxStreamMux plugin
ixstream_jpuencode:  Gst-IxJpuEncode: Gst-IxJpuEncode plugin
ixstream_vpudecode:  Gst-IxVpuDecode: Gst-IxVpuDecode plugin

运行pipeline

gst-launch-1.0 filesrc location="./sample_720p.h264" ! Gst-IxVpuDecode frame-width=1280 frame-height=720 video-format=0 ! Gst-IxStreamMux live-source=false ! Gst-IxJpuEncode save-file-path="./jpeg_out" ! fakesink

笔记



  目录
    天数智芯知识库系统 -V 5.2.6 -wcp