Ubuntu系统安装 Gstrame
1、安装先决条件,基础组件
https://docs.aws.amazon.com/zh_cn/kinesisvideostreams/latest/dg/producer-sdk-cpp.html
2、下载代码、安装插件
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp
如果碰到更换清华源,报这个错
Fix apt-get update “the following signatures couldn’t be verified because the public key is not available”
参考这篇文章解决:
3、验证
# 是否能执行?
gst-launch-1.0# 查看有哪些元素
gst-inspect-1.0## 这个插件是否正确安装
gst-inspect-1.0 kvssink
四、将数据发送到视频流
https://docs.aws.amazon.com/zh_cn/kinesisvideostreams/latest/dg/gs-send-data.html
报错
WARNING: erroneous pipeline: no element "h264parse"
还是要安装成功这个包。
sudo apt-get install gstreamer1.0-plugins-bad
其中上面这个包,很容易报错。只有更换为阿里云的软件源才能 apt-get install成功。
五、可以演示的视频
st-launch-1.0 videotestsrc name=a a.src ! b.sink autovideosink name=b
cd /home/bluewelkin/gst-docs/examples/tutorials
./basic-tutorial-1
其他参考文章:
https://blog.csdn.net/gaoyichuan5500/article/details/122127382
了解如何使用
https://gstreamer.freedesktop.org/documentation/tutorials/basic/index.html?gi-language=c