我在从特定相机检索 rtsp 流时遇到困难,因为相机提供的 rtp 有效载荷类型为 35(未分配),并且rtph264depay插件接受的有效载荷类型在 [96-127] 范围内。结果是 gstreamer 显示如下错误:
<udpsrc0> error: Internal data flow error.
<udpsrc0> error: streaming task paused, reason not-linked (-1)
Run Code Online (Sandbox Code Playgroud)
我测试过的其他相机正在工作,因为它们定义了良好的有效载荷类型。
FFmpeg、MPlayer 和其他工具播放流,尽管它们可能会显示未知类型的警告,例如在 Mplayer 中:
rtsp_session: unsupported RTSP server. Server type is 'unknown'
Run Code Online (Sandbox Code Playgroud)
在 gstreamer 中是否有任何方法可以伪造有效负载类型、忽略不匹配的属性、强制插件之间的链接或以其他方式为我的问题创建解决方法?
我正在使用的管道是:
gst-launcg-0.10 rtspsrc location="..." ! rtph264depay ! capsfilter caps="video/x-h264,width=1920,height=1080,framerate=(fraction)25/1" ! h264parse ! matroskamux ! filesink location="test.mkv"
Run Code Online (Sandbox Code Playgroud)