Important Message from Foscam Digital Technologies Regarding US Sales & Service

Foscam.US (aka Foscam Digital Technologies and now Amcrest Technologies) is an independent United States based distributor of "Foscam" branded products. We have been offering telephone support, US local warranty and building the Foscam brand in the US for the past 7 years. Based on our experiences with Foscam and feedback from end users we have launched our own new and improved line of wireless IP cameras and security systems under the Amcrest brand. Working in partnership with the second largest security camera manufacturer in the world, Amcrest was founded with a deep commitment to end-user privacy and security, highly reliable software and hardware as well a seamless and intuitive user experience. For more information, please visit www.Amcrest.com

If you are having trouble with your Foscam cameras, we sincerely apologize for this inconvenience and would love to help. For technical support, response to inquiries and for obtaining replacements for any Foscam IP Cameras or NVR products, please reach out to tech@foscam.com or call 1-844-344-1113.

If you are interested in exchanging your Foscam camera for an Amcrest camera, we can offer you a massive loyalty discount, even if you are out of warranty. Please send an email to support@amcrest.com, sales@amcrest.com or call 1-888-212-7538

If you are subscribed to Foscam Cloud (www.foscamcloud.com), please contact cloud@foscam.us for support.

If you currently use the manufacturer's cloud service (www.myfoscam.com or linked in any way to www.foscam.com), you will need to contact them directly for support, at www.myfoscam.com.


Free Generic Browser Interface For Foscam IP MJPEG Cameras

General discussion regarding Foscam IP Cameras

Re: Free Generic Browser Interface For Foscam MJPEG PTZ Came

Postby HansAPlast » Fri Jul 20, 2012 7:27 am

Hi,

your code works good with IE and Firefox, but have you tried the lastest Opera browser? In the Opera browser you get a flickering slideshow, one picture -white image box- one picture-white image box....
I think Opera refresh the hole picture and then draw the new one, this is to slow for a "video" view. I find no option in Opera to changes this refresh....


Regards from Germany

Gerd
HansAPlast
 
Posts: 6
Joined: Mon Apr 04, 2011 9:51 am

Re: Free Generic Browser Interface For Foscam MJPEG PTZ Came

Postby TheUberOverLord » Fri Jul 20, 2012 10:28 am

HansAPlast wrote:Hi,

your code works good with IE and Firefox, but have you tried the lastest Opera browser? In the Opera browser you get a flickering slideshow, one picture -white image box- one picture-white image box....
I think Opera refresh the hole picture and then draw the new one, this is to slow for a "video" view. I find no option in Opera to changes this refresh....


Regards from Germany

Gerd


Thanks

Implemented a fix for this issue, the new versions no longer have this problem, left the earlier text below from before the fix anyway.

Yes, Opera browsers have had an issue with this image refresh flicker for many years now.

Opera is the only browser, that I know of, that has this issue. All other browsers don't even try to overlay the image until the image is complete.

Even if I added "Wait until image completes, then overlay" logic, as you can see, the new image load is so slow, it would be like watching a movie in slow motion, no matter what the FPS rate is of the camera.

It is caused because the Opera developer team feels that ALL images should be pre-loaded, before the page displays. That's great, for a static page, but this page is not static.

This has been going on for many years now with the Opera browser, sometimes they actually fix the issue in one release and then in the next release, it comes back.

Here is an an example of that, going as far back as June 2009, where it was also fixed, but then returned:

http://my.opera.com/community/forums/topic.dml?id=279547&t=1342796732&page=1

If there was anything I could do to resolve this, I would, but I am at the mercy of the Opera developer team ("As are many others") and have no methods to remove this image flicker from Opera browsers.

Currently, IMHO. Opera browsers cannot deal with refreshing images at 30 FPS. Hopefully, the Opera developer team, will change this soon.

Here is a link back to the first page here, now that we are on page 2:

http://foscam.us/forum/free-generic-browser-interface-for-foscam-mjpeg-ptz-cameras-t2522-10.html

Don
Last edited by TheUberOverLord on Thu Aug 30, 2012 1:55 pm, edited 3 times in total.
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam MJPEG PTZ Came

Postby TheUberOverLord » Sat Jul 21, 2012 2:12 am

New Version GBIV14 Released.

Added Real-Time FPS ("Frames Per Second") Statistics and Real-Time Bytes Per Second Statistics that can both be turned off/on for Visitor, Operator and Admin User Levels.

This is very helpful to see what your camera(s) real FPS rates are at any given time.

Additionally, you can see how many Bytes Per Second your camera(s) are using, at different resolutions and FPS rates, as well.

The Live Demos have Real-Time Statistics turned on for Operator Live Demos and turned off for Live Visitor Demos, so that you can see the difference. When

The Demos use a 5 second statisics display period time window, when the Real-Time Statistics are displayed. This statisics display period time window, is also variable as well.

Added the abilty to change the Internal FPS rate on-the-fly, that can be turned off/on for Visitor, Operator and Admin User Levels.

Live Demos have Internal FPS on-the-fly changes turned on for Operator Live Demos and turned off for Live Visitor Demos, so that you can see the difference.

Both of these new changes, can help monitor and control bandwidth usage, for your camera(s), for your ISP bandwidth usage, as well as any other data plan(s) usages you may have, for computers and other devices, including tablets, iPads, iPhones, other mobile phones and devices that are internet browser capable.

This interface can be used on all of the above.

While the Internal FPS on-the-fly changes support up to 30 FPS, the Live Demos will only allow 10 FPS MAX!

This is to conserve bandwidth for the Live Demos.

Selected Internal FPS rates maybe slower than the selected rates, when using the Live Demos, depending on how many people are viewing the Live Demos, at the same time. Since the same camera, is being used for all Live Demos.

Here is a link to for more information on how you can get your FREE copy of this and links for the new Live Demos as well:

http://foscam.us/forum/topic2522.html

Don
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam MJPEG PTZ Came

Postby birdfeedr » Sat Jul 21, 2012 11:41 am

jquery.js needs to be included in htm file if camera interface is used on network without internet access.

Rare case, yes.
Fixable, yes.

I love commented coding. Good job.
birdfeedr
 
Posts: 12
Joined: Sat Apr 23, 2011 4:51 pm

Re: Free Generic Browser Interface For Foscam MJPEG PTZ Came

Postby TheUberOverLord » Sat Jul 21, 2012 12:08 pm

Created a version of this interface that calculates the Byte Usage for 24/7 30 day periods for your MJPEG camera(s). At any resolution, and at any FPS ("Frame Per Second Rate").

Note: You MUST use a IE ("Internet Explorer") 32 or 64 bit based browser to see both FPS ("Frames Per Second") rates as well as BPS (" Bytes Per Second") rates. Otherwise you will only see FPS rates with all other browsers. You also need to logon to this interface at a Operator or Admin User Id Level for this special version of the interface if you decide to download your own copy of it.

Depending on what version of IE you have. You may need to use IE Compatibility View when viewing this Interface to see the BPS rates and Byte Total for 30 days.


Image

Clicking the picture above, launches the Live Demo for this special version of this interface.

Note: Changing the Internal FPS ("Frames Per Second") rate does NOT change your camera(s) FPS rate. It it is an internal FPS rate, used by this interface, that can be dynamically changed, on-the-fly, with no cause and effect. to your camera(s) actual FPS settings.

Changing Resolutions, does change your camera(s) resolution. So, if you download your own copy of this special version of this interface, to use for testing/checking your own camera(s). You will need to make sure before you finish testing, that you remember to set your camera(s) resolution, back to the normal resolution, by selecting that resolution, before you exit this special version of this interface, or by using your normal camera(s) interface to do so.

Now you can see how many Bytes any MJPEG camera(s) you have, will use in a 30 day period if the camera(s) are sending video 24/7 during that 30 day period. With any FPS ("Frame Per Second") and Resolution combination, from 160*120 to 340*240 and 640*480.

You can change BOTH the Resolution of the camera(s), as well as the FPS ("Frames Per Second") Internal rates, to see the increase/decrease in the Total Byte Usage for a 30 day period as well.

A Live Demo which supports .1 ("1 Frame every 10 seconds") to 1 FPS, can be seen by clicking the picture above or this link below:

http://www.saveontelephonebills.com/camera/NewWorkingDemoOperator30Day.htm

If you would like your own FREE copy of this special version of this interface, to use on your own MJPEG camera(s), to calculate Byte Usage for 24/7 30 day periods of time, for FPS rates from .1 to 30 FPS, without the Live Demo FPS limitations for your own camera(s), so that you can calculate higher FPS rates at all your camera(s) resolutions?

Please right click on the link below and choose "Save As". Once you download this, you can open it using for example "Notepad", make a 1 line change to your Local IP Address and Port Number or ISP Address and Port Number or DDNS and Port Number, and then save your changes.

You can create a copy for each camera you have, as well.

You should run this special version of this interface, from a IE ("Internet Explorer") browser. The normal version of this interface does not have this requirement.

http://www.saveontelephonebills.com/camera/GenericBIV1530day.htm

This is a special version of this interface, created to help you easily visualize how much bandwidth your camera(s) can use, on mobile data plans as well as ISP bandwidth, in a 30 day period of time, running 24/7 during that 30 days period.

To get the normal version of this interface, please see this:

http://foscam.us/forum/free-generic-browser-interface-for-foscam-mjpeg-ptz-cameras-t2522.html

Additional and good information on MJPEG camera(s) bandwidth can be found here, if you have any concerns on data plan bandwidth limits for mobile devices and phones and/or ISP bandwidth limits as well:

http://www.imakenews.com/kin2/e_article000345313.cfm?x=b11,0,w

Note: This special version of this interface is not calcuating the Bytes Used for the 24/7 30 day period using any MJPEG or ASF streaming and/or compression, Byte totals.

The calcuations are based on the MJPEG camera(s) normal .cgi interface, which is used with some computer browsers, mobile devices and their browsers, and other Internet browser capable devices, that access your camera(s) using your normal camera interface. Such as, but not limited to these:

http://xxx.xxx.xxx.xxx.##
http://xxx.xxx.xxx.xxx:##/wap.htm
http://xxx.xxx.xxx.xxx:##/mobil.htm

MJPEG

When using MJPEG streams, the frame size of each image plays a key role in estimating the storage and transmission requirements. Since each frame is unique and varies according to the image complexity, it is difficult to provide a guide that provides fixed frame sizes. An IP camera that provides images with low complexity will generate smaller frame sizes. Smaller frames will require less bandwidth.

The following formula is used to calculate the bandwidth requirements for MJPEG streams:

MJPEG storage = Average Frame size x Frame rate x duration

Example 1: For an 8-hour archive of a CIF video stream with 50 percent quality and 15 frames per second, the following is the calculation:

4 KB x 15fps x 3600s = 216,000 KB/ hour

= 216MB /hour x 8 hours

= 1.728 GB

Example 2: For a 24-hour archive of a 4CIF video stream with 100 percent quality and 5 frames per second, the following is the calculation:

320 KB x 5fps x 3600s = 5,760,000 KB /hour

= 5,760MB /hour = 5.76GB /hour x 24 hours

= 138.24 GB

MPEG-4/H.264

Rather than standalone images, MPEG-4 / H.264 streams take into account video frames and the size of a given video frame varies widely between I-frames and predictive frames. Typically, H.264 is more efficient than MPEG-4. MPEG-4 is generally more efficient than Motion JPEG and requires less bandwidth and storage capacity when using higher frame rates.

The following formula is used to calculate the bandwidth requirements for MPEG-4 streams:

MPEG4 storage = Bit rate (kbps) x duration

The target bit rate is configured on the camera and is already expressed in bits per second.

Example 1: For an 8-hour video stream with target bit rate of 768kbps, the following is the calculation:

768kbps / 8 bits/s = 96 KB /second x 3600 s

= 345,600 KB/hour / 1000

= 345.6 MB/hour x 8 hours

= 2.764 GB

The above information is from:

The Cisco Planning and Design - IP Video Surveillance Fundamentals Overview. Which can be found here:

http://www.cisco.com/en/US/docs/solutions/Enterprise/Video/IPVS/IPVS_DG/IPVSchap4.html#wp1054774

The above information shows other very good and sane reasons, to use this interface for monitoring your MJPEG cameras, as well as these 10 additional reasons listed below:

1. This interface works on all Internet browser capable devices that use any Operating system. With any browser.

2. This interface does not require that you install it on any computer or any device, that you wish to use it on, that is Internet Capable and has a browser.

You can run it from a web site, a blog, send a copy or copies of it, to your email as an attachment ("After you change the IP Address and Port information to match your camera(s), which is a 1 line change"), and launch if from your email.

3. This interface does not require that a User Id and Password be hard coded, anywhere. Prompt for a logon can be used or the automatic logon can be used. Your choice.

4. This interface can enforce and restrict by User Level Id, FPS rates and maximum resolutions allowed. It can enforce, by User Level Id, who is allowed to change what.

5. It has, on-the-fly FPS ("Frame Per Second Rate") change ability, with no changes made to the actual camera FPS settings.

6. It has, on-the-fly Resolution change ablility, without bouncing around, from menu to menu.

7. It has Infinite-Zoom ability, so that you might be able to avoid using a higher Resolutions, all the time. You can at anytime increase/decrease the Resolution, when needed.

8. It provides FPS and Byte per second usage statistics in real-time, which change when FPS rates and Resolution is changed. So that you can see the actual bandwidth you are using, at any given moment. From the computer or device you are using it on.

9. Almost all ISP and mobile device data plans have bandwidth limits.

10. It's FREE!

Even IF you have data and ISP plans, that are callled unlimited. In almost all cases, they ALL have a maximum bytes per month limit.

Using this interface can stop you from reaching those limits and maybe even save you some money as well on mobile data plans that have additional increased costs, when you, exceed a specific number of bytes per month.

Don
Last edited by TheUberOverLord on Fri Oct 26, 2012 11:05 am, edited 6 times in total.
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam MJPEG Cameras

Postby TheUberOverLord » Sat Jul 28, 2012 9:13 pm

Just created Version 1.0 of this Interface for H.264 Cameras.

More here: http://foscam.us/forum/free-generic-browser-interface-for-foscam-h-264-cameras-t2686.html

Don
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam MJPEG Cameras

Postby TheUberOverLord » Mon Jul 30, 2012 6:12 pm

Found a fix for the Opera browser video flutter. Will make a new version in the next few days, to fix that for Opera.

The new version will also show FPS ("Frames Per Second") rates with other browsers as well. Currently, only IE ("Internet Explorer") 32 and 64 bit browsers show FPS and Bytes Per Second Rates.

You can see the Opera browser fix, as well as the FPS rates in other browsers, already in action, for the H.264 version of this interface, by using any demo here:

http://foscam.us/forum/free-generic-browser-interface-for-foscam-h-264-cameras-t2686.html

This interface can also be used to tune wireless antenna position for higher FPS rates for your camera(s). I suggest not using a wireless laptop near the camera to do so because it could cause wireless contention. You would be much better off, having someone else adjust the camera antenna while you use this interface ("Set to 30 FPS") where you normally would monitor the camera and use some sort of communications ("Yelling, mobile phone or some other way") with the person doing the antenna adjustment.

Don
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam MJPEG Cameras

Postby TheUberOverLord » Tue Jul 31, 2012 11:31 am

Version 1.5 has just been released, all links for demos and the link where you can download your own copy of this Interface, for free, have been changed to use the new version.

Fixes:

Opera no longer has a video image flutter problem.

All browsers now can display FPS ("Frames Per Second") rates as an option.

IE ("Internet Explorer") browsers both 32 nad 64 bit versions, at the moment, are the only browsers that can also show Bytes Per Second rates as well.

Link to the Live Demos and for the link to get your own free copy of this Interface here:

http://foscam.us/forum/topic2522.html

There is now also a version of this Interface for H.264 cameras as well, more here:

http://foscam.us/forum/free-generic-browser-interface-for-foscam-h-264-cameras-t2686.html

Don
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam MJPEG PTZ Came

Postby TheUberOverLord » Sat Aug 04, 2012 1:29 pm

birdfeedr wrote:jquery.js needs to be included in htm file if camera interface is used on network without internet access.

Rare case, yes.
Fixable, yes.

I love commented coding. Good job.


Thanks.

Yes, one would need to store jquery.js in that case locally or as you say, add it to the actual HTML.

Don
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

Re: Free Generic Browser Interface For Foscam IP MJPEG Came

Postby TheUberOverLord » Fri Aug 10, 2012 9:23 pm

Is anyone using Sound Detection alarms?

In many camera models, this is available, but I hear little about people actually using this alarm option.

Don
TheUberOverLord
 
Posts: 13110
Joined: Fri Jun 22, 2012 11:52 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests