首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用gstreamer & VLC实现原始视频编码

用gstreamer & VLC实现原始视频编码
EN

Unix & Linux用户
提问于 2014-10-27 00:49:19
回答 1查看 4.3K关注 0票数 3

我正在用gstreamer播放原始视频,如下所示:

代码语言:javascript
复制
gst-launch-1.0 -v videotestsrc ! rtpvrawpay ! udpsink host="127.0.0.1" port="5000"

这将输出以下上限:

代码语言:javascript
复制
caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)320, height=(string)240, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)1103043224, timestamp-offset=(uint)1948293153, seqnum-offset=(uint)27904

我可以使用gstreamer使用以下方法查看此流:

代码语言:javascript
复制
gst-launch-1.0 udpsrc port="5000" caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)320, height=(string)240, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)1103043224, timestamp-offset=(uint)1948293153, seqnum-offset=(uint)27904" ! rtpvrawdepay ! videoconvert ! queue ! xvimagesink sync=false

使用VLC,我创建了一个SDL文件:

代码语言:javascript
复制
v=0
c=IN IP4 127.0.0.1
m=video 5000 RTP/AVP 96
a=rtpmap:96 RAW/90000
a=fmtp:96 media=video; clock-rate=90000; encoding-name=RAW

但是VLC错误有:

代码语言:javascript
复制
core input error: no suitable demux module for `file/any:///home/.../settings.sdp'

如何让VLC接受原始流?

EN

回答 1

Unix & Linux用户

发布于 2023-02-17 13:02:56

显然VLC不支持通过RTP的原始视频,参见https://forum.videolan.org/viewtopic.php?t=145855 (最近的)和https://forum.videolan.org/viewtopic.php?t=45 (旧的)。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/164377

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档