turbocharger
Posts: 2
Joined: Sat Aug 31, 2013 6:26 pm

Motion - port 8081, works on Android, not on Windows?

Sat Aug 31, 2013 6:40 pm

Just bought my Pi, this is pretty much the first thing I'm trying to do, and my last brush with 'proper' computing was QBasic on DOS 6.2!

I followed this guide:
http://pingbin.com/2012/12/raspberry-pi ... er-motion/
and Motion runs on the Pi, but I'm having trouble viewing the image on anything but my phone. I've set "webcam_localhost off", and basically it looks like it *should* be working because I can see it ok on Chrome for Android:

[*]I can see the live image, working fine and updating each second, when I go to 192.168.0.9:8081 with Chrome for Android on my phone, which is using my Wifi network.
[*]I can't see the image in the normal "Internet" browser on my phone, or on Chrome or IE7 on either my Windows PC or my laptop.
[*]When I change motion.conf to show "webcam_port 80" (aiming to just use 192.168.0.9 to view the image) it stops working on Android Chrome too.

I'm not sure if the third point is related, but it all seems mighty strange. Any clues or pointers?

turbocharger
Posts: 2
Joined: Sat Aug 31, 2013 6:26 pm

Re: Motion - port 8081, works on Android, not on Windows?

Thu Sep 12, 2013 10:16 pm

Anyone? I'm going to move on to Port Forwarding, it doesn't work at the moment but I don't know if that's a continuation of this problem or something else.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Motion - port 8081, works on Android, not on Windows?

Fri Sep 13, 2013 1:48 am

Moving the port to 80 will not work as the motion user ( which the daemon runs under ) doesn't have permissions to open port 80.
Leave the port on 8080, and use VLC on the windows computer to open the stream "http://192.168.0.9:8081" and you should see the motion output.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

PiSi
Posts: 37
Joined: Mon Jan 14, 2013 9:41 am

Re: Motion - port 8081, works on Android, not on Windows?

Sun Sep 15, 2013 1:06 pm

Had similar yesterday - it didn't work from my windows laptop using Chrome or IE, Android tablet using Chrome but it did sort of work from my iPhone. All were on the same wireless network.

Did have to keep refreshing iPhone to show the new image though.

Didn't change to port 80 as looked like a browser issue.

Search came up showing Firefox was the only reliable browser it worked on. Guess its a server/browser conflict with no common solution.

Will try changing frame rates as well to reduce the load on the Pi.

Will try VNC as well.

Simon

PiSi
Posts: 37
Joined: Mon Jan 14, 2013 9:41 am

Re: Motion - port 8081, works on Android, not on Windows?

Sun Sep 15, 2013 9:32 pm

Can confirm this works with VNC - more options as well compared to the browser view.

Simon

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Motion - port 8081, works on Android, not on Windows?

Mon Sep 16, 2013 12:55 am

Chrome works for me on my linux machine. What version of Chrome are you guys running ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

PiSi
Posts: 37
Joined: Mon Jan 14, 2013 9:41 am

Re: Motion - port 8081, works on Android, not on Windows?

Mon Sep 16, 2013 5:28 am

Used Chrome on Windows 7 and Android 4.1.2 - guessing its an options or plugins issue for me as it worked on my iPhone.

Simon
SirLagz wrote:Chrome works for me on my linux machine. What version of Chrome are you guys running ?

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Motion - port 8081, works on Android, not on Windows?

Mon Sep 16, 2013 7:06 am

What version of Chrome did you use on Windows7 ?
I haven't installed any plugins on my install of Chrome.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

PiSi
Posts: 37
Joined: Mon Jan 14, 2013 9:41 am

Re: Motion - port 8081, works on Android, not on Windows?

Mon Sep 16, 2013 8:21 pm

Using the current version of Chrome (Version 29.0.1547.66 m) on Windows 7.

Might just be an issue with my version or an option not selected.

Simon
SirLagz wrote:What version of Chrome did you use on Windows7 ?
I haven't installed any plugins on my install of Chrome.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Motion - port 8081, works on Android, not on Windows?

Tue Sep 17, 2013 1:19 am

Looks like an issue with Chrome on Windows, doesn't work on my Win7 laptop.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

User avatar
agocs
Posts: 4
Joined: Sun Aug 25, 2013 8:06 pm
Location: Hungary
Contact: Website

Re: Motion - port 8081, works on Android, not on Windows?

Wed Sep 18, 2013 1:40 pm

I have the same problem. I googled some, and turned out that desktop Chrome does not handle properly the mjpg stream. It's ok on my Android Chrome, but on on Windows or Mac. I've found a solution written in JAVA, called Cambozola, but I couldn't make it work yet :(

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Motion - port 8081, works on Android, not on Windows?

Thu Sep 19, 2013 1:33 am

VLC on windows will also work.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

shubhu2411
Posts: 1
Joined: Thu Nov 20, 2014 5:16 pm

Re: Motion - port 8081, works on Android, not on Windows?

Thu Nov 20, 2014 5:34 pm

Hi everybody
I am a newbie to raspberry pi but somehow I managed to run motion with my webcam. I can see my video streaming in my LAN as well as from internet but on port 8081. Is there any way I can make it run on port 80 so that I can view the video stream by typing only ip address. I am trying to develop a low cost network camera by which I can record and analyse behavioural experimental data by a sophisticated software package. But the software is allowing to add network camera by its IP only. Please suggest me how I can make it work.

adlan
Posts: 1
Joined: Wed Dec 16, 2015 6:52 pm

Re: Motion - port 8081, works on Android, not on Windows?

Wed Dec 16, 2015 6:55 pm

Hye.
I'm facing a problem which I'm not able to view my webcam stream using browser on my android phone but I'm able to do so by using other browsers. Is there anyway to fix this problem?

dlrlbgtm
Posts: 1
Joined: Tue Dec 29, 2015 7:38 am

Re: Motion - port 8081, works on Android, not on Windows?

Tue Dec 29, 2015 7:44 am

Create the following index.html file and place it in /var/www/

Code: Select all

<html>
<img src="http://192.168.0.102:8081">
</html>
Replace "192.168.0.102" by your local ip address for the pi.
Now when you go to 192.168.0.102 on your browser, you should see the video stream

Return to “Graphics, sound and multimedia”