Raspberry Pi/Camera streaming: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
-win 0,0,800,480 # position of video window | -win 0,0,800,480 # position of video window | ||
</pre> | |||
</blockquote> | |||
== direct tcp stream == | |||
* Raspi with camera | |||
<blockquote> | |||
<pre> | |||
raspivid -a 12 -t 0 -w 1280 -h 720 -vf -ih -fps 30 -l -o tcp://0.0.0.0:5000 | |||
</pre> | |||
</blockquote> | |||
* Raspi with monitor | |||
<blockquote> | |||
<pre> | |||
omxplayer --win 0,0,800,480 tcp://192.168.1.20:5000 | |||
</pre> | |||
</blockquote> | |||
* vlc with monitor | |||
<blockquote> | |||
<pre> | |||
tcp/h264://192.168.1.20:5000 | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> |
Revision as of 22:55, 19 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