How do I stream a live video on a display screen or monitor really quickly?
Any ideas are welcome.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityHow do I stream a live video on a display screen or monitor really quickly?
Any ideas are welcome.
First of all, you need to connect the Camera Module and enable it. To do this, run
sudo raspi-config
and select Enable Camera Module. For more information, may I suggest reading the first section of this article.
To stream video from the Camera Module, we are going to use the preview function of raspivid
. Simply type the following command:
raspivid -f -k
This will show the preview window in fullscreen (-f
) mode. The window will not exit until you press x followed by Enter.
You can also specify the location and size of the preview stream by using the -p
flag:
raspivid -f -k -p x,y,width,height
For example:
raspivid -f -k -p 100,100,400,200