1

我想将我的网络摄像头连接到 Kinesis Video Stream。现在我得到了它,但使用的是 TCP 协议。我指导自己完成了教程。

CONSUMER:
gst-launch-1.0 -e -v tcpserversrc host=127.0.0.1 port=4444 do_timestamp=true ! gdpdepay ! h264parse ! capsfilter caps='video/x-h264,width=320,height=240,framerate=15/1' ! kvssink stream-name='stream_name' storage-size=32 credential-path=/root/credentials.txt aws-region='eu-central-1'

PRODUCER:
gst-launch-1.0 -v ksvideosrc do-stats=TRUE ! videoconvert ! video/x-raw,format=NV12,width=320,height=240,framerate=15/1 ! x264enc bframes=0 key-int-max=30 bitrate=300 ! video/x-h264,stream-format=avc,alignment=au ! gdppay ! tcpclientsink host=127.0.0.1 port=4444 sync=false

为了减少延迟,我想使用UDP。

CONSUMER:
gst-launch-1.0 -e -v udpsrc port=4444 ! h264parse ! capsfilter caps='video/x-h264,width=320,height=240,framerate=15/1' ! kvssink stream-name='stream-name' storage-size=32 credential-path=/root/credentials.txt aws-region='eu-central-1'

PRODUCER:
gst-launch-1.0 -v ksvideosrc ! videoconvert ! video/x-raw,format=NV12,width=320,height=240,framerate=15/1 ! x264enc bframes=0 key-int-max=30 bitrate=300 ! video/x-h264,stream-format=avc,alignment=au !  udpsink host=127.0.0.1 port=4444

我认为只是用 udpsink 替换tcpclientsink和用udpsrc替换tcpserversrc行不通的。我没有错误并且相机打开,但 Kinesis Video Stream - 媒体播放中没有出现任何内容。有什么问题?

4

0 回答 0