New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture device: IP camera #4

Closed
cedricve opened this Issue Jun 29, 2015 · 21 comments

Comments

3 participants
@cedricve
Copy link
Member

cedricve commented Jun 29, 2015

Create a new capture device IPCamera.

@cedricve cedricve added this to the Release 1.1.0 milestone Jun 29, 2015

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Jun 29, 2015

@cedricve cedricve self-assigned this Jun 29, 2015

@cedricve cedricve referenced this issue Jul 3, 2015

Closed

Live Video Stream #2

@cedricve cedricve added the ready label Jul 3, 2015

@cedricve cedricve added in progress and removed ready labels Jul 23, 2015

@cedricve cedricve changed the title IP camera support Capture device: IP camera Jul 23, 2015

@cedricve cedricve added to test and removed in progress labels Jul 25, 2015

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Jul 30, 2015

IP camera is available on develop branch and can be tested with a MJPEG endpoint. E.g. you can use your mobile phone and use an IP camera app (https://play.google.com/store/apps/details?id=com.pas.webcam&hl=nl).

Change Capture device to IPCamera, and define the URL of the ip camera with it's resolution. An example for the IP camera app would be:

Url: 192.168.0.100/shot.jpg
Width: 800
Height: 600

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 3, 2015

Looks like I cannot test this since my ip camera does not have an mjpeg feed, only h264.

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 4, 2015

According the OpenCV documentation, I think it should work.

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 4, 2015

The only feed that the camera provides is an rtsp stream. I tried to force it into "mjpeg" mode but it doesn't work right. I think I would need something to split out the stream into something useable, which could probably be done with ffmpeg, but I'm not sure how

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 4, 2015

Did you tried it with the 264h feed? According to the current OpenCV documentation, it should work with ffmpeg now. In previous release it was broken.

To update your current installation execute following commands

   pacman -Syuu
   pacman -S ffmpeg curl
   cd /home/kerberos-io
   git pull
   git checkout develop
   cd build
   make

After the compilation is done reboot the RPi, and change the configuration on the web interface.

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 4, 2015

I did try the rtsp://user:user@ip/videofeed uri that works with vlc, but nothing happens with kerberos, I'm not seeing anything in the logs so I'm not sure what's happening at all.

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 4, 2015

You recompiled and install ffmpeg, just like the commands I've described in previous command?

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 4, 2015

I did yesterday, I don't see any commits of relevance since then

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 4, 2015

Can you force the rtsp on TCP?

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 4, 2015

Does not look like it, tries udp first and fails to tcp

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 4, 2015

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 4, 2015

On ubuntu I installed

ffmpeg libgstrtspserver-0.10-0 libgstreamer-plugins-base0.10-dev  libswscale-ffmpeg-dev libswresample-ffmpeg-dev libavresample-ffmpeg-dev libavcodec-ffmpeg-dev 

for my foscam:
appended ?tcp to the url (rtsp://user:pass@ip/videoMain?tcp)

and magic!

Thanks @cedricve confirmed working

@cedricve cedricve closed this Aug 4, 2015

@cedricve cedricve removed the to test label Aug 4, 2015

@cedricve cedricve reopened this Aug 5, 2015

@cedricve cedricve added the in progress label Aug 6, 2015

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 6, 2015

Still seems to crash, I added the captureDelayTime=5 but the feed soon goes black and I have to reset the device. Without kerberos it runs fine, and vlc streams it fine.

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 6, 2015

@stephenjamieson the capture delay time is in miliseconds, can you try 5000 e.g.?

@stephenjamieson

This comment has been minimized.

Copy link

stephenjamieson commented Aug 6, 2015

It hasn't crashed for about 5 minutes since changing to 5000, I'll keep an eye on it

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 7, 2015

If it worked, can you change the value to 500-1000 and see what happens?

@maco1717

This comment has been minimized.

Copy link

maco1717 commented Aug 14, 2015

Dude! I haven't had a chance to try this yet I'm looking forward to get some time try this master piece. does is support storing on a share/NAS? that's the only thing I was apart from supporting IPCams that you've already taken care of. I wouldn't think is to difficult, just mapping the share on linux as a drive and communicating to you app to store there, but as I said haven't even had a change to try your app all speculations ATM. kind regards an congratulations.

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Aug 14, 2015

@maco1717 yes, follow this document https://doc.kerberos.io/develop/addons/NAS. You'll need to make some changes on the Raspberry Pi.

@maco1717

This comment has been minimized.

Copy link

maco1717 commented Aug 19, 2015

Thanks
On 14 Aug 2015 16:38, "Cédric Verstraeten" notifications@github.com wrote:

@maco1717 https://github.com/maco1717 yes, follow this document
https://doc.kerberos.io/develop/addons/NAS. You'll need to make some
changes on the Raspberry Pi.


Reply to this email directly or view it on GitHub
#4 (comment)
.

@cedricve cedricve closed this Sep 12, 2015

@cedricve cedricve removed the in progress label Sep 12, 2015

@cedricve

This comment has been minimized.

Copy link
Member

cedricve commented Sep 12, 2015

works for mjpeg streams

@cedricve cedricve reopened this Sep 12, 2015

@cedricve cedricve closed this Sep 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment