Raspivid保存到磁盘,并同时流
问题描述:
我试图运行使用树莓派B型Raspivid保存到磁盘,并同时流
我要救流本地文件(USB如果可能的话),并流,所以我可以选择一个家庭安全摄像头这在我的网络上
我有的命令不适用于两个 - 任何建议?
raspivid-o security.h264 -t 0 -n -w 600 -h 400 -fps 12 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
答
试试这个命令:
raspivid -o - -t 0 -n -w 600 -h 400 -fps 12 | tee security.h264 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
tee命令输出写到标准输出,并到指定的文件。