Ad-Hoc IP Camera
For this project you will need:
Server -
Install:
1. Make sure you are connected to the internet.
2. Download and install ffmpeg:
Set up Ad-hoc:
- Open /etc/network/interfaces with vi and paste:
auto wlan0
iface wlan0 inet static
wireless_mode ad-hoc
wireless-essid liquidware-adhoc
wireless-channel 4
wireless-key 1234567890
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
|
Configure:
1. Create file /etc/ffserver.conf with vi and paste:
Run:
1. Start up ad-hoc:
$ ifdown wlan0
$ ifup wlan0
|
2. Start ffserver:
3. Start streaming:
$ ffmpeg -r 15 -s 320x240 -f video4linux2 -i /dev/video0 http://127.0.0.1/feed1.ffm |
Client -
Set up Ad-hoc:
- Open /etc/network/interfaces with vi and paste: (Make sure to comment out any other instances of wlan0!)
auto wlan0
iface wlan0 inet static
wireless_mode ad-hoc
wireless-essid liquidware-adhoc
wireless-channel 4
wireless-key 1234567890
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
|
2. Start up ad-hoc:
$ ifdown wlan0
$ ifup wlan0
|
Run:
3. View stream:
$ mplayer -fs http://SERVER_IP/test.asf |
Comments (0)
You don't have permission to comment on this page.