Camera WiFi in Client mode - WORKING .ash SCRIPT inside

GodsDead

New Member
Joined
Aug 31, 2019
Messages
4
Reaction score
0
Location
Essex
Country
United Kingdom
That takes two steps (when you have established a connection):
1) Enable rtsp streaming in the camera
-> run the Camera_video_stream.py
from this repo

2) Start VLC
-> run: vlc rtsp://192.168.173.1/live
(with the camera's ip address, of course.)

Voila - that's it. Runs stable for hours...
Aha brilliant I didnt even know I had to run it through python first to stream it. Such a pain it cant be hacked to do it all in-camera, I don't use it for anything and it just sits in my draw. Was trying to find a use for it as a Wifi CCTV camera!
 

GHPS

New Member
Joined
Feb 24, 2018
Messages
4
Reaction score
2
Country
Germany
Aha brilliant I didnt even know I had to run it through python first to stream it.
The purpose of the python code is simply to send the "enable streaming" command
to the camera. It's very simple, doesn't involve stream processing and can be
accomplished in the programming language of your choice...

The picture quality is quite good, though the stream has only VGA resolution. Apparently
nobody has figured out how to enable HD-streaming with the Yi Action camera.

In my case I use the camera to watch the 3D printer doing its work -
the Yi camera is much better than the RaspPi camera.

Plus: VLC is available on all platforms, i.e. laptop, tablet, smartphone. That
makes monitoring a print job very handy.
 

GodsDead

New Member
Joined
Aug 31, 2019
Messages
4
Reaction score
0
Location
Essex
Country
United Kingdom
The purpose of the python code is simply to send the "enable streaming" command
to the camera. It's very simple, doesn't involve stream processing and can be
accomplished in the programming language of your choice...

The picture quality is quite good, though the stream has only VGA resolution. Apparently
nobody has figured out how to enable HD-streaming with the Yi Action camera.

In my case I use the camera to watch the 3D printer doing its work -
the Yi camera is much better than the RaspPi camera.
Oh right, so does the Script need to stay running for the stream to stay up? or can you run the python script to put the camera into stream mode and as long as it stays connected to Wifi it keeps streaming and close down the script? because if this is the case then this will be fine. I assumed the python code was converting the stream and created a new server to connect to, but looking at it it doesn't look like its hosting a server!
 

GHPS

New Member
Joined
Feb 24, 2018
Messages
4
Reaction score
2
Country
Germany
The python script does basically two things:
1) Open a socket connection
2) Send the necessary json command for streaming

It's not a server or does stream conversion but simply keeps the socket connection open.
As long as this connection exists you can use a client (e.g. VLC) to connect to the camera
via rtsp. Closing the connection will close the stream.
 
Top