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.


FI8918W and Motion (Open Source)

Users can ask and answer questions regarding Foscam IP Cameras

Moderators: mycam, FOSCAM

FI8918W and Motion (Open Source)

Postby archspangler » Thu Feb 28, 2013 8:03 pm

I purchased this camera because of the good ratings that I was reading about and I checked the Motion Wiki to see if was a device that someone had already tested with Motion and I was happy to see it was..

See the link below:
http://www.lavrsen.dk/foswiki/bin/view/Motion/WorkingDevices#Foscam

I have tried for about a day to get this thing working and I have had zero luck. It appears that the camera is prompting for username\password even thought the username\password is passed in the URL..

Here is the Motion option line I am using:
netcam_url http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin

This URL works great in Chrome but appears to break from a Linux command line.. See below.

[root@localhost motion]# curl http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin
<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
<BODY BGCOLOR="#cc9999"><H4>401 Unauthorized</H4>
Authorization required.
</BODY></HTML>

[root@localhost motion]# wget http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin
--2013-02-28 19:46:29-- http://192.168.0.60/videostream.cgi?user=admin?pwd=admin
Connecting to 192.168.0.60:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.

I can only assume this is what Motion is executing to get a snapshot from the camera.

I'm hoping someone can help soon else I will need to go with a different camera mfg.

Thanks in advance.

Here is the error that Motion is throwing in the log up to the point it get and access denied and gives up.

[0] [NTC] [ALL] [Feb 28 19:48:42] motion_startup: Using log type (ALL) log level (ALL)
[0] [NTC] [ALL] [Feb 28 19:48:42] become_daemon: Motion going to daemon mode
[0] [NTC] [ALL] [Feb 28 19:48:42] become_daemon: Created process id file /var/run/motion/motion.pid. Process ID is 28894
[0] [NTC] [ALL] [Feb 28 19:48:42] motion_startup: Motion running as daemon process
[0] [NTC] [ENC] [Feb 28 19:48:42] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3554148 LIBAVFORMAT_BUILD 3546472
[0] [NTC] [ALL] [Feb 28 19:48:42] main: Thread 1 is from /etc/motion/cam3.conf
[0] [NTC] [ALL] [Feb 28 19:48:42] main: Thread 1 is device: http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin input -1
[0] [NTC] [ALL] [Feb 28 19:48:42] main: Stream port 8083
[0] [NTC] [ALL] [Feb 28 19:48:42] main: Waiting for threads to finish, pid: 28894
[0] [NTC] [STR] [Feb 28 19:48:42] httpd_run: motion-httpd testing : IPV4 addr: 0.0.0.0 port: 8080
[0] [NTC] [STR] [Feb 28 19:48:42] httpd_run: motion-httpd Bound : IPV4 addr: 0.0.0.0 port: 8080
[0] [NTC] [STR] [Feb 28 19:48:42] httpd_run: motion-httpd/3.3.0 running, accepting connections
[0] [NTC] [STR] [Feb 28 19:48:42] httpd_run: motion-httpd: waiting for data on 0.0.0.0 port TCP 8080
[1] [NTC] [ALL] [Feb 28 19:48:42] motion_init: Thread 1 started , motion detection Enabled
[1] [ALR] [NET] [Feb 28 19:48:42] netcam_start: Network Camera thread starting... for url (http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin)
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Entry netcam_url_parse data http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Parse case 0 data http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Parse case 1 data http
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Parse case 6 data 192.168.0.60
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Parse case 7 data :80
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Parse case 8 data 80
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_url_parse: Parse case 9 data /videostream.cgi?user=admin?pwd=admin
[1] [INF] [NET] [Feb 28 19:48:42] netcam_start: Netcam_http parameter 'on' converts to flags: HTTP/1.0: 0 HTTP/1.1: 1 Keep-Alive ON.
[1] [INF] [NET] [Feb 28 19:48:42] netcam_start: now calling netcam_setup_html()
[1] [INF] [NET] [Feb 28 19:48:42] netcam_http_build_url: Netcam has flags: HTTP/1.0: 0 HTTP/1.1: 1 Keep-Alive ON.
[1] [INF] [NET] [Feb 28 19:48:42] netcam_http_build_url: Camera connect string is ''GET /videostream.cgi?user=admin?pwd=admin HTTP/1.1^M
[1] [INF] [NET] [Feb 28 19:48:42] netcam_http_request: about to try to connect, time #0
[1] [INF] [NET] [Feb 28 19:48:42] netcam_connect: with keepalive set, invalid socket.This could be first time, created a new one with fd 6
[1] [INF] [NET] [Feb 28 19:48:42] netcam_connect: SO_KEEPALIVE is OFF
[1] [INF] [NET] [Feb 28 19:48:42] netcam_connect: SO_KEEPALIVE set on socket.
[1] [INF] [NET] [Feb 28 19:48:42] netcam_connect: re-using socket 6 since keepalive is set.
[1] [INF] [NET] [Feb 28 19:48:42] netcam_read_first_header: Received first header ('HTTP/1.1 401 Unauthorized')
[1] [INF] [NET] [Feb 28 19:48:42] netcam_read_first_header: HTTP Result code 401
[1] [NTC] [NET] [Feb 28 19:48:42] netcam_read_first_header: Removed netcam Keep-Alive flagdue to apparent closed HTTP connection.
[1] [NTC] [NET] [Feb 28 19:48:42] netcam_setup_html: connected, going on to read image.
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_check_buffsize: expanding buffer from [0/0] to [0/4096] bytes.
[1] [NTC] [NET] [Feb 28 19:48:42] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1] [NTC] [NET] [Feb 28 19:48:42] netcam_read_html_jpeg: leaving netcam connected.
[1] [DBG] [NET] [Feb 28 19:48:42] netcam_output_message: Not a JPEG file: starts with 0x53 0x65
[1] [INF] [NET] [Feb 28 19:48:42] netcam_error_exit: netcam->jpeg_error 1
[1] [CRT] [NET] [Feb 28 19:48:42] netcam_start: libjpeg decompression failure on first frame - giving up!
Last edited by archspangler on Thu Feb 28, 2013 8:49 pm, edited 1 time in total.
archspangler
 
Posts: 3
Joined: Thu Feb 28, 2013 7:38 pm

Re: FI8918W and Motion (Open Source)

Postby TheUberOverLord » Thu Feb 28, 2013 8:21 pm

IMHO. I would use the support request methods, provided with this interface, to get the best response. Since this is 3rd party software and there are suggested support methods. to get help with issues with this software.

More here: http://www.lavrsen.dk/foswiki/bin/view/ ... rtRequests

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

Re: FI8918W and Motion (Open Source)

Postby archspangler » Thu Feb 28, 2013 9:15 pm

Thanks for the link Don..

Can you tell me if the below line should work from Linux or windows for that matter? Given that the username and password are indeed correct. Is there a different *.cgi to call or another Foscam supported method to get to the information?

curl http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin

<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
<BODY BGCOLOR="#cc9999"><H4>401 Unauthorized</H4>
Authorization required.
</BODY></HTML>
Last edited by archspangler on Thu Feb 28, 2013 9:48 pm, edited 1 time in total.
archspangler
 
Posts: 3
Joined: Thu Feb 28, 2013 7:38 pm

Re: FI8918W and Motion (Open Source)

Postby TheUberOverLord » Thu Feb 28, 2013 9:25 pm

archspangler wrote:Thanks for the link Don..

Can you tell me if the below line should work from Linux or windows for that matter? Given that the username and password are indeed correct. Is there a different *.cgi to call or another Foscam supported method to get to the information?

curl http://192.168.0.60:80/videostream.cgi? ... ?pwd=admin

<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
<BODY BGCOLOR="#cc9999"><H4>401 Unauthorized</H4>
Authorization required.
</BODY></HTML>

You are very welcome.

The line is not correct:

Code: Select all
curl  http://192.168.0.60:80/videostream.cgi?user=admin?pwd=admin

It should be:

Code: Select all
curl  http://192.168.0.60:80/videostream.cgi?user=admin&pwd=admin

Please notice the only difference, which is the ? before pwd has been replaced with & as it should be.

Note: The forum breaks both lines above into two lines. They are one line each, with no spaces.

There are additional parameters you can also pass with this command as well. More here:

http://foscam.us/forum/fi8910w-record-audio-t3419.html?hilit=VLC%20videostream.cgi#p15806

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

Re: FI8918W and Motion (Open Source)

Postby archspangler » Thu Feb 28, 2013 9:47 pm

It was that simple Don... I changed the one character and everything came together as expected

Thanks a bunch... You kept me from throwing this little camera through my window tonight. :evil:

-Archie
archspangler
 
Posts: 3
Joined: Thu Feb 28, 2013 7:38 pm

Re: FI8918W and Motion (Open Source)

Postby TheUberOverLord » Thu Feb 28, 2013 9:49 pm

archspangler wrote:It was that simple Don... I changed the one character and everything came together as expected

Thanks a bunch... You kept me from throwing this little camera through my window tonight. :evil:

-Archie


You are very welcome. Glad to help.

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

Re: FI8918W and Motion (Open Source)

Postby alanwbaker » Sat Dec 20, 2014 1:22 pm

I'm getting the same

"libjpeg decompression failure on first frame - giving up!"

message from motion and I'm stumped. My motion.conf includes

netcam_url http://192.168.0.2:88/videostream.cgi?u ... &pwd=admin
netcam_userpass admin:admin
control_port 88

Clues? Would you share your working motion.conf?

Alan
alanwbaker
 
Posts: 5
Joined: Thu Dec 18, 2014 8:12 am

Re: FI8918W and Motion (Open Source)

Postby TheUberOverLord » Sun Dec 21, 2014 7:36 am

Please try using this method:

Code: Select all
http://User:Password@192.168.0.60:80/videostream.cgi

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


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 5 guests