Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用deepstream管道在Qt QML矩形中显示视频流?_Qt_Qml_Pipeline_Nvidia_Rtsp - Fatal编程技术网

如何使用deepstream管道在Qt QML矩形中显示视频流?

如何使用deepstream管道在Qt QML矩形中显示视频流?,qt,qml,pipeline,nvidia,rtsp,Qt,Qml,Pipeline,Nvidia,Rtsp,我在QML的MediaPlayer对象中使用了以下deepstream管道。它工作正常,将视频输出放在新创建的窗口中 Rectangle { MediaPlayer { id: cameraVideo autoPlay: true source: "gst-pipeline: uridecodebin3 uri=\"rtspt://192.168.1.118:8080/h264_ulaw.sdp

我在QML的MediaPlayer对象中使用了以下deepstream管道。它工作正常,将视频输出放在新创建的窗口中

Rectangle
{
    MediaPlayer
    {
        id: cameraVideo
        autoPlay: true
        source: "gst-pipeline: uridecodebin3 
        uri=\"rtspt://192.168.1.118:8080/h264_ulaw.sdp\" ! queue ! 
        nvstreammux0.sink_0 nvstreammux name=nvstreammux0 batch-size=1 batched-push-timeout=40000 
        width=800 height=600 live-source=TRUE ! queue ! nvvideoconvert 
        ! queue ! nvinfer config-file-path=\"/opt/nvidia/deepstream
        /deepstream/samples/configs/deepstream-app/config_infer_primary_nano.txt\" ! 
        queue ! nvmultistreamtiler ! queue ! nvtracker tracker-width=240 tracker-height=200 
        ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_mot_iou.so  
        ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/iou_config.txt ! queue ! 
        nvdsosd process-mode=HW_MODE ! queue ! nvegltransform ! nveglglessink"
    }
    VideoOutput
    {
        anchors.fill: parent
        source: cameraVideo
    }
}
但我想把视频输出放在指定的QML矩形中,它是MediaPlayer对象的父对象。看来我必须使用qtvideosink而不是NVeglessink。但是我应该使用哪些插件来转换qtvideosink的视频流呢。
顺便说一句,该应用程序正在NVidia Jetson Nano上运行。

您有一个复杂的管道,很难提供帮助,因为我们中的许多人都没有可用的特定设置!简化它,然后回来。例如,您是否能够定义一个简单的管道来在矩形的特定区域播放本地视频文件?更复杂的管道将基于相同的方法。@karlphillip您是对的。但我认为声明我在管道中使用的所有插件是必要的。我可以定义一个简单的管道来获取流,并在mediaplayer中显示它,而无需对象检测。但我想使用对象检测和牵引插件。