Raspberry Pi/Camera streaming: Difference between revisions
(→Links) |
No edit summary |
||
Line 70: | Line 70: | ||
<pre> | <pre> | ||
rtsp://192.168.111.182:8554/ | rtsp://192.168.111.182:8554/ | ||
</pre> | |||
</blockquote> | |||
== dual output == | |||
* Raspi with camera | |||
<blockquote> | |||
<pre> | |||
not working: | |||
mkfifo video.stream | |||
raspivid -a 12 -t 0 -w 1280 -h 720 -hf -ih -fps 30 -o - | tee video.stream | cvlc -v stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 | nc 192.168.111.216 5000 < video.stream | |||
</pre> | |||
</blockquote> | |||
* Raspi with monitor | |||
<blockquote> | |||
<pre> | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
Line 80: | Line 98: | ||
* https://raspberrypi.stackexchange.com/questions/26675/modern-way-to-stream-h-264-from-the-raspberry-cam | * https://raspberrypi.stackexchange.com/questions/26675/modern-way-to-stream-h-264-from-the-raspberry-cam | ||
* https://chriscarey.com/blog/2017/04/30/achieving-high-frame-rate-with-a-raspberry-pi-camera-system/comment-page-1/ | * https://chriscarey.com/blog/2017/04/30/achieving-high-frame-rate-with-a-raspberry-pi-camera-system/comment-page-1/ | ||
* https://raspberrypi.stackexchange.com/questions/27082/how-to-stream-raspivid-to-linux-and-osx-using-gstreamer-vlc-or-netcat | |||
* https://raspberrypi.stackexchange.com/questions/27041/record-and-stream-video-from-camera-simultaneously |
Revision as of 00:13, 20 January 2018
direct udp stream
- Raspi with camera
raspivid -a 12 -t 0 -w 1280 -h 720 -hf -ih -fps 30 -o udp://192.168.1.10:5000 -a 12 # annotate -t 0 # timeout disabled (default=5s) -w 1280 # width -h 720 # height -hf # horizontal flip #-vf # vertical flip -ih # insert inline headers to stream -fps 30 # frames per second -0 udp://192.168.1.10:5000 # send stream to ip:port
- Raspi with monitor
omxplayer --win 0,0,800,480 udp://@:5000 -win 0,0,800,480 # position of video window
direct tcp stream
- Raspi with camera
raspivid -a 12 -t 0 -w 1280 -h 720 -vf -ih -fps 30 -l -o tcp://0.0.0.0:5000
- Raspi with monitor
omxplayer --win 0,0,800,480 tcp://192.168.1.20:5000
- vlc with monitor
tcp/h264://192.168.1.20:5000
rtsp stream
- Raspi with camera
raspivid -t 0 -n -b 1000000 -g 30 -ih -pf baseline -w 640 -h 480 -fps 30 -o - | cvlc -v stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
- Raspi with monitor
omxplayer --win 0,0,800,480 rtsp://192.168.1.20:8554/
- vlc with monitor
rtsp://192.168.111.182:8554/
dual output
- Raspi with camera
not working: mkfifo video.stream raspivid -a 12 -t 0 -w 1280 -h 720 -hf -ih -fps 30 -o - | tee video.stream | cvlc -v stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 | nc 192.168.111.216 5000 < video.stream
- Raspi with monitor
gstreamer
- apt install gstreamer1.0-tools gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-libav
Links
- https://raspberrypi.stackexchange.com/questions/26675/modern-way-to-stream-h-264-from-the-raspberry-cam
- https://chriscarey.com/blog/2017/04/30/achieving-high-frame-rate-with-a-raspberry-pi-camera-system/comment-page-1/
- https://raspberrypi.stackexchange.com/questions/27082/how-to-stream-raspivid-to-linux-and-osx-using-gstreamer-vlc-or-netcat
- https://raspberrypi.stackexchange.com/questions/27041/record-and-stream-video-from-camera-simultaneously