Gstreamer在接收器侧保存图像/视频

时间:2015-01-27 09:41:28

标签: android gstreamer live-streaming

我使用以下代码使用gstreamer进行直播,但我不知道如何在接收方保存视频/图像。有人请帮帮我。提前谢谢。

发件人代码: " raspivid -t 999999 -h 720 -w 1080 -fps 25 -b 2000000 -o - | gst-launch-0.10 -v fdsrc fd = 0! h264parse! rtph264pay! udpsink host = 192.168.2.1 port = 5000"

收件人代码: " udpsrc port = 5000 caps = \" application / x-rtp,media = video,clock-rate = 90000,encoding-name = H264,sprop-parameter-sets = \\" J2QAFKwrQLj / LwDxImo \\ = \\,KO4fLA \\ = \\ = \\" \",payload = 96 \&#34 ; !排队! rtph264depay!排队! ffdec_h264! autovideosink sync = false"

1 个答案:

答案 0 :(得分:0)

你在这里:

"udpsrc port=5000 caps=application/x-rtp buffer-size=100000 ! rtph264depay ! tee name=splitter ! ffdec_h264 ! queue ! autovideosink sync=false splitter. ! queue ! mpegpsmux name=mux ! filesink location=/../../some.mpeg"