GST启动rtspsrc导致错误地导致错误

时间:2019-10-21 12:48:29

标签: gstreamer rtsp gstreamer-1.0 gst-launch gst-launch-1.0

我正在Windows 10上使用gstreamer来获得RTSP视频流。

C:\opt\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe rtspsrc location="rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov" latency=0 name=src src. ! decodebin3 ! autovideosink

此命令可以正常工作并在某个时间显示视频(〜25%),但也经常导致错误(〜75%),如下所示:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Missing element: MPEG-4 AAC decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodebin3:decodebin3-0/GstParseBin:parsebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
../gst/playback/gstparsebin.c(3487): gst_parse_bin_expose (): /GstPipeline:pipeline0/GstDecodebin3:decodebin3-0/GstParseBin:parsebin0:
no suitable plugins found:
Missing parser: MPEG-4 AAC (audio/mpeg, mpegversion=(int)4, stream-format=(string)raw, codec_data=(buffer)1490, framed=(boolean)true, level=(string)1, base-profile=(string)lc, profile=(string)lc, rate=(int)12000, channels=(int)2)

Execution ended after 0:00:00.437721400
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

我想知道为什么错误消息显示“您的GStreamer安装缺少插件”(视频将永远不会显示)。

RTSP的来源看起来不错(ffmpeg中的ffplay完美地显示了视频)。管道中有任何错误,我该如何解决?

0 个答案:

没有答案