gstreamer学习笔记 多种数据源

什么是DeepStream SDK?
NVIDIA DeepStream SDK是基于开源GStreamer多媒体框架的流分析工具包。DeepStream SDK加快了可伸缩IVA应用程序的开发速度,使开发人员更容易构建核心深度学习网络,而不必从头开始设计端到端应用程序。包含NVIDIA Jetson模块或NVIDIA dGPU适配器的系统均支持该SDK。它由可扩展的硬件加速插件集合组成,这些插件与低级库进行交互以优化性能,并定义了标准化的元数据结构,可实现自定义/用户特定的添加。

原文链接:https://blog.csdn.net/Tosonw/article/details/104154090

1. gstreamer 播放音频 

command: gst-launch-1.0 filesrc location=qqqg.wav ! wavparse ! alsasink

2. gstreamer 播放网络流

gst-launch-1.0 playbin uri=http://10.168.6.99:7000/R*0*

3.  build a pipeline automatically 

pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);

4.  build a pipeline manually 相当于3

GstElement *pipeline, *source, *sink;

source = gst_element_factory_make ("videotestsrc", "source");

sink = gst_element_factory_make ("autovideosink", "sink");

pipeline = gst_pipeline_new ("test-pipeline");

gst_bin_add_many (GST_BIN (pipeline), source, sink, NULL);

gst_element_link (source, sink) != TRUE);

g_object_set (source, "pattern", 0, NULL);

5. 播发音频:gst-launch-1.0 filesrc location=hama.mp4 ! qtdemux name=demuxer demuxer. ! avdec_aac ! audioconvert ! audioresample ! alsasink (audioresample可选)

6.播放mp4文件:gst-launch-1.0.exe playbin uri=file:///F:\\hama.mp4 

 7.gst-launch-1.0 filesrc location=hama.mp4 ! decodebin ! autovideosink

8 播放带验证的rtsp:gst-launch-1.0 playbin uri=rtsp://user:[email protected]:8554/test

分类: gstreamer

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/126954599
今日推荐