Jump to content


Lightweight webcam streaming from ASUS EEE


19 replies to this topic

#1 kost

    Advanced Member

  • Members
  • PipPipPip
  • 60 posts

Posted 05 February 2008 - 12:32 PM

I managed to get webcam streaming using mjpg-streamer. Follow these easy steps:

1) add ftp.linux.hr repository as described here:
http://forum.eeeuser...ic.php?id=13623
2) sudo apt-get update
3) sudo apt-get install mjpg-streamer
4) sudo eee-mjpgstreamer

Now you can look the stream using browser and pointing to EEE IP address:
http://your.asus.ip.adr:8080/

For testing you can bring up Firefox on ASUS EEE and enter this URL:
http://localhost:8080/

For me, it's best working as Javascript streaming.so, try that before complaining ;)

BTW2 I managed to get streaming using icecast and gstreamer, but that's bloatware for such small device as ASUS EEE is, You can read about it here:
http://kost.com.hr/b...1&c=1&tb=1&pb=1

#2 prof_booty

    Member

  • Members
  • 24 posts
  • LocationCambridge, MA

Posted 07 February 2008 - 12:12 AM

Frickin sweet. Thanks for the info.
Eee PC 4G 701 Black 1GB RAM 16GB SDHC eeeXubuntu

#3 Dr_Jeff

    Senior Member

  • Members
  • 251 posts

Posted 07 February 2008 - 02:09 AM

followed the instructions & it works

sweet

#4 noiv

    New member

  • Members
  • 2 posts

Posted 07 February 2008 - 08:55 AM

>> 4) sudo eee-mjpgstreamer

it looks like the command is a short hand to 'mjpgstreamer' with working parameter for the eee. How can I use same command but occupying another port than 8080?

#5 kost

    Advanced Member

  • Members
  • PipPipPip
  • 60 posts

Posted 07 February 2008 - 01:08 PM

Quote

>> 4) sudo eee-mjpgstreamer

it looks like the command is a short hand to 'mjpgstreamer' with working parameter for the eee. How can I use same command but occupying another port than 8080?
edit script eee-mjpgstreamer and change the line where it states
.... -o "output_http.so -w /usr/lib/mjpg-streamer/www/"
to
.... -o "output_http.so -p 8090 -w /usr/lib/mjpg-streamer/www/"

Now it will listen on 8090 port.

Happy streaming!

#6 noiv

    New member

  • Members
  • 2 posts

Posted 07 February 2008 - 09:33 PM

Many thanks. Was able to change file using 'sudo kwrite /usr/bin/eee-mjpgstreamer', but now I'm thinking the adsl router is the problem. On the other hand peer2peer software reports proper forwarded ports, so router is configured successfully at least once.

Beeing lost now, how do I get my my eee broadcasting at XXXX.dyndns.tv:YY ?

Any input is welcome.

#7 x94scorp

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts

Posted 08 February 2008 - 01:57 PM

this should go in the wiki

#8 kost

    Advanced Member

  • Members
  • PipPipPip
  • 60 posts

Posted 10 February 2008 - 02:37 AM

Quote

this should go in the wiki
Your wish is my command:
http://wiki.eeeuser....weightstreaming

#9 dcjohn

    Member

  • Members
  • 20 posts

Posted 11 February 2008 - 10:34 PM

Kost, this is absolutely fantastic. Thank you!

It's working on my system without a hitch. In order to give folks access outside my LAN, I just needed to lift the firewall on my router (just for the Eee, and just for the broadcasting port).

Thanks again for sharing!

#10 starpause

    Member

  • Members
  • 27 posts
  • Locationsan francisco

Posted 21 February 2008 - 07:05 AM

when i try this under eeeXubuntu i get the following error:

starpause@midget:~$ sudo eee-mjpgstreamer
[eee] Turning off camera
[eee] Turning on camera
[eee] Waiting for camera to settle up
[: 15: /dev/video0: unexpected operator
[: 15: /dev/video0: unexpected operator
it does the unexpected operator to infinity!

webcam is enabled in bios ... anyone have ideas on what i'm doing wrong?

edit: just wanted to note that my webcam is working fine w/ skype ... just can't get this script to work, always the same error i pasted above

Edited by starpause, 29 February 2008 - 04:22 PM.

http://hexawe.net <~ music made with EEE
20G 901 | 2G RAM | xp on SSD
4G 701 | 1G RAM | xandros on SSD

#11 damdam76

    New member

  • Members
  • 5 posts
  • LocationFrance - Rouen

Posted 10 March 2008 - 08:47 PM

Quote

it does the unexpected operator to infinity!
Hi starpause,

had the same problem than you.
found a solution ( not sure it's the best, but solves the pb )

1/ edit your eee-mjpgstreamer script
 sudo mousepad /usr/bin/eee-mjpgstreamer
2/replace
until [ -a /dev/video0 ] ; do
by
until [ -e /dev/video0 ] ; do
3/Save & close the script.

Everything should be ok now.

#12 ChadRioux

    Senior Member

  • Members
  • 322 posts

Posted 11 March 2008 - 12:38 AM

What does this say about Stickum? Are we going to be able to stream to sites like this?

#13 theSuperman

    Senior Member

  • Members
  • 304 posts
  • LocationAllentown, PA

Posted 12 March 2008 - 06:28 AM

any idea how to enable a password?

#14 starpause

    Member

  • Members
  • 27 posts
  • Locationsan francisco

Posted 12 March 2008 - 05:02 PM

damdam76 thanks so much, your fixed worked for me! how did you figure that out?
http://hexawe.net <~ music made with EEE
20G 901 | 2G RAM | xp on SSD
4G 701 | 1G RAM | xandros on SSD

#15 damdam76

    New member

  • Members
  • 5 posts
  • LocationFrance - Rouen

Posted 12 March 2008 - 06:02 PM

Quote

damdam76 thanks so much,
You're Welcome.

Quote

your fixed worked for me! how did you figure that out?
I commented the eee-mjpegstreamer script line by line and found that it was the test [ -a /dev/video0 ] that was wrong.

The -a seems to exist but is not used to check if a file exist, I think I remember it is used to test the negation of the condition.
-e is the operand for existence.

See
man test
for more informations.

See you.

#16 damdam76

    New member

  • Members
  • 5 posts
  • LocationFrance - Rouen

Posted 12 March 2008 - 06:06 PM

Quote

any idea how to enable a password?
Like I told post #11, edit your eee-mjpgstreamer
sudo mousepad /usr/bin/eee-mjpgstreamer
and replace
LD_LIBRARY_PATH=/usr/lib/mjpg-streamer/plugins mjpg_streamer -i "input_uvc.so -r QVGA -f 5 -y" -o "output_http.so -w /usr/lib/mjpg-streamer/www/"
by

LD_LIBRARY_PATH=/usr/lib/mjpg-streamer/plugins mjpg_streamer -i "input_uvc.so -r QVGA -f 5 -y" -o "output_http.so -w /usr/lib/mjpg-streamer/www/ -c your_user:your_password"
Save & close
Should work.

See you

Edited by damdam76, 12 March 2008 - 06:12 PM.


#17 simon-p

    New member

  • Members
  • 5 posts

Posted 28 March 2009 - 12:35 PM

Please can I have more help on this. I have a 701 in 'as new' config. I have downloaded mjpgstreamer
and installed it and can start the application using terminal. The light comes on so assume cam is up and running. How you I view it on a remote pc though? I use the eee wireless connection to access my home network which is used by both wired and wirelessly connected computers here. I tried the ip addres of my connection in the url but must be missing out a piece of the puzzle somewhere as I can't seem to view my stream. Can someone please talk through the viewing part of the equation.
Many Thanks

#18 albkwan

    ExtrEmE User

  • Members
  • 1,440 posts
  • LocationHong Kong

Posted 28 March 2009 - 02:37 PM

May be you should also read this thread: http://forum.eeeuser...pic.php?id=4255
EeePC 4G white,
Default Xandros (Easy Mode + icewm start menu) on 1st SSD/2nd 16GB SSD added/SD/USB/
http://eeepc.fire.prohosting.com/
http://eeepc-albkwan.blogspot.com/

#19 simon-p

    New member

  • Members
  • 5 posts

Posted 29 March 2009 - 08:52 AM

Thanks for that but I am still struggling. Viewing my stream on my own eee with the browser is fine, everything is set up. I just need a specific talk through on viewing from another pc. I tried using my own ip address in the url when trying to view from a different pc but it doesn't work (nothing is found). I must be missing some part of the puzzle.
Thanks in anticipation

#20 arielroel

    New member

  • Members
  • 1 posts

Posted 19 July 2009 - 02:27 AM

Do you know if ftp.linux.hr is down? I've trying to download the soft, and it was impossible...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users