camera access

136 views
Skip to first unread message

Mac

unread,
Apr 15, 2021, 8:30:33 PM4/15/21
to motioneye
I managed to acquire an hm311 heiman vision camera.
The price was right (free) so i figured I'd give it shot.šŸ˜Ž

I was able to get videoĀ  via their phone app and via my browser (but it appears to be via their website...not sure)

In any case, before I go digging around with wireshark, I figured I ask if anyone knows the right incantation to get to it with motioneye??

With my foscam I just had to use the ip address,port with the login attached.


Kevin Shumaker

unread,
Apr 15, 2021, 11:47:16 PM4/15/21
to Mac, motioneye
THere are a number of URLs you can try according to iSpy here:
You may have to try each in turn, listed for hm311

--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/CAHEqMkH9eNyzN3ciT5d%3DWQKADOAY-pmD%2BVpHtA6Bim58a8_AVw%40mail.gmail.com.


--
Thanks

Kevin Shumaker


N38° 19' 56.52"
W85° 45' 8.56"

Semper Gumby
ā€œDon't tell people how to do things. Tell them what to do and let them surprise you with their results.ā€ - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
ā€œThere is no end to the good you can doĀ if you don’t care who getsĀ theĀ credit.ā€ - C Powell
You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

Mac

unread,
Apr 16, 2021, 8:10:59 AM4/16/21
to Kevin Shumaker, motioneye
Thanks, for the reply.

Yes, I checked that link from your reply to my earlier post.

I know enough about networking to make me dangerous to myself. And it left me confused about how to form url's from what is shown.

For the Foscam I've used previously it was clearly http:
http://<IP>:80/videostream.cgi?user=admin&pwd=<password>

I'm not familiar with rtsp:// and any use of it in a browser simply launches a media player which says it can't find the rest of the url.

For example:
rtsp:///user=admin_password=1B4VOjqw_channel=1_stream=0.sdp
or:

Connection failed:

VLC could not connect to "h264_stream:554".

Your input can't be opened:

VLC is unable to open the MRL 'rtsp://h264_stream'. Check the log for details.


So, I'm a bit lost.


Kevin Shumaker

unread,
Apr 16, 2021, 8:25:19 AM4/16/21
to Mac, motioneye
As an example, in motioneye you would use:
rtsp://[ip_address]/MainStream
or
rtsp://[ip_addresss]/0/av0
or
rtsp://[ip_address]/h264_stream
and then your camera's username in the username block, and the password in the password block.

macdr...@gmail.com

unread,
Apr 16, 2021, 1:58:29 PM4/16/21
to motioneye
Thanks!
That clears it up.
I have now tried several of the url variations. Most work, some offer a TCP and UDP version.

The video seems a to lag a bit and periodically appears to loose sync (display blanks or gets all pixelated).

In the browser interface to the camera the stream does not do the same.

Is this a camera, network, or motioneye thing? Is there a setting that might help?

Kevin Shumaker

unread,
Apr 16, 2021, 2:11:33 PM4/16/21
to macdr...@gmail.com, motioneye
Some cameras work better with UDP, some with TCP.
Direct browser access is not doing any processing of the video, which, depending on resolution, framerate, etc, can be very processor intensive, thus giving lesser responsiveness...
It's mostly a network and motionEye issue. If you only have 802.11b or g andĀ  both the camera and Pi are on wireless, you figure double the data rate (up and down) and maybe more (if you are looking at the Pi with another PC... MotionEye is very resource intensive to process motion detection and/or transcoding video being saved. If you use network storage or save to dropbox or gdrive, even more bandwidth usage.
Lots of possibilities to help, including lowering resolution, lowering framerate, turning on movie passthrough, etc.

Luis

unread,
Jul 10, 2021, 6:36:13 AM7/10/21
to motioneye
Hi all,
I have tried all URLs to access my RPi Nano W camera that has MotionEye OS installed.
I always get the VLC "Connection Failed...." error.
Access to the RPi web page is correct and I get the image with no problem at all. But rtsp access from VLC is getting me mad...
What is wrong?
Thanks

StarbaseSSD

unread,
Jul 10, 2021, 6:53:42 AM7/10/21
to motioneye
What are you trying to connect to?
If you are trying to connect to the 'normal' feed, the correct URL is
Video Stream has to be enabled.
If you are trying to use RTSP, you need to enable Fast Network Camera. enable RTSP in Video Stream,
and connect to
rtsp://ip_address:554/h264
Using Fast Network Camera disables local recording, and local motion detection, though.
You'd need to set up another Pi or PC to act as the recording hub.
If you are trying to connect to another mode, let me know, and I'll give you the URL

Luis

unread,
Jul 10, 2021, 9:33:37 AM7/10/21
to motioneye
Thanks!
I am new to MotionEye and I skipped that option!
My next task is streaming live to Youtube.
I don't know if this is possible from the same RPi Nano with MotionEye or I need a hub to get the streaming and resending it to Youtube (I am new to Youtube streaming as well.
I am just trying wildlife remote watching.
Thanks again!
Screen Shot 2021-07-10 at 14.54.09.png

StarbaseSSD

unread,
Jul 10, 2021, 9:42:46 AM7/10/21
to motioneye
Live streaming to youtube is not supported internally in motionEye/motionEyeOS.
There are many apps that could take the stream from http://ip_address:8081 and feed it up to youtube, but that is beyond my support. Google 'youtube stream your own wildlife camera'

Luis

unread,
Jul 10, 2021, 3:02:34 PM7/10/21
to motioneye
I got it working!
I am using Proxmox and just creating a container getting the streaming from MotioEye and resending to Youtube using ffmpeg solved the problem.
Just in case anyone is interested the command in the hub virtual machine (Ubuntu server) was:
ffmpeg -thread_queue_size 512 -f lavfi -i anullsrc -rtsp_transport udp -i rtsp://<cam-IP-address:port> -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<youtube ID>
Now it is live!

StarbaseSSD

unread,
Jul 10, 2021, 3:05:28 PM7/10/21
to motioneye
Congrats, and good luck!
Reply all
Reply to author
Forward
0 new messages