Gstreamer相机流不支持h264压缩

时间:2015-10-14 15:11:42

标签: video streaming video-streaming gstreamer h.264

我尝试通过使用h264压缩的本地网络从/dev/video0中的本地摄像头进行流式传输。

当我发送时:

gst-launch-1.0 -v videotestsrc ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000

并收到:

gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink

testimage工作正常。

但是当我尝试从实际设备/dev/video0发送时:

gst-launch-1.0 -v v4l2src device="/dev/video0" ! video/x-raw,width=300,height=200 ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000

我没有收到发件人的任何错误,但收件人上没有显示任何图片。

有什么建议可能是什么问题?

0 个答案:

没有答案