GStreamer 和 RTSP 流
GStreamer and RTSP stream
我正在尝试通过 gstreamer 查看 rtsp 流,但是当我 运行 这个命令时:
gst-launch-1.0 rtspsrc location=rtsp://admin:@192.168.1.27:554/ch0_0.264 ! videoconvert ! video/x-raw ! autovideosink
它在此处阻塞并且不显示任何内容。
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://admin:@192.168.1.27:554/ch0_0.264
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
Redistribute latency...
我是 gstreamer 的新手。有人可以帮助我吗?
谢谢指教。
使用decodebin
我发现缺少H264解码器所以我通过安装包gst-libav解决了它
我正在尝试通过 gstreamer 查看 rtsp 流,但是当我 运行 这个命令时:
gst-launch-1.0 rtspsrc location=rtsp://admin:@192.168.1.27:554/ch0_0.264 ! videoconvert ! video/x-raw ! autovideosink
它在此处阻塞并且不显示任何内容。
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://admin:@192.168.1.27:554/ch0_0.264
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
Redistribute latency...
我是 gstreamer 的新手。有人可以帮助我吗? 谢谢指教。
使用decodebin
我发现缺少H264解码器所以我通过安装包gst-libav解决了它