工具与软件:
如何 使用 GStreamer 从符合 RTSP 的 IP 摄像头或通过在远程 PC 上运行的 RTSP 服务器流式传输 H.264编码流?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
如何 使用 GStreamer 从符合 RTSP 的 IP 摄像头或通过在远程 PC 上运行的 RTSP 服务器流式传输 H.264编码流?
您好!
假设 rtsp 源正在运行、请 将 rtspsrc 位置替换为占位符、并运行下面的流水线进行流处理。 如果您想使用 VLC 媒体播放器设置一个简单的测试来流式传输.mp4视频文件、可以按照以下步骤操作。
使用硬件解码器的 Gstreamer 流水线:
gst-launch-1.0 rtspsrc location=rtsp:// : /test latency=0 proxy-id=None proxy-pw=None! rtph264deepay wait-for-keyframe=1! video/x-h264, stream-format=AVC! h264parse! v4l2h264dec! kmsink sync=false
使用 软件解码器的 Gstreamer 流水线:
gst-launch-1.0 rtspsrc location= rtsp:// : /测试! application/x-rtp, media=video, encoding-name=h264, clock-rate=90000! rtph264deepay! h264parse! avdec_h264! 视频! 视频转换! 队列! autovideosink
RTSP 源 GStreamer 流水线示例:
gst-launch-1.0 \
v4l2src device=/dev/video-imx219-cam0 IO-mode=5! 队列泄漏=2! \
video/x-bayer、宽度=1920、高度=1080、帧速率=30/1、格式=rggb! \
tiovxisp sink_0::device=/dev/v4l-subdev2 sensor-name="sensor_Sony_IMX219_RPI"\
dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_1920x1080.bin
sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_1920x1080.bin format-msb=7! \
video/x-raw、format=NV12、width=1920、height=1080、frameerate=30/1! \
v4l2h264enc output-io-mode=dmabuf-import extra-controls="controls,h264_I_frame_period=60"! RTPH264支付! udpsink 端口= 主机=
谢谢!
Fabiana Jaimes