IntroductionWireshark and it's command line version tshark will do the job, if it is HTTP. This is http://slashdot.org:
The Linksys Compact Wireless-G Internet Video Camera WVC54GC is a linux based wireless webcam with its own streaming web server built in. Windows users can view the video stream through their browser without the need to install any extra software other than allowing the supplied Active-X control to run. Strangely, while the product itself appears to be linux based, and its firmware is open source which you can download from the Linksys website, there isn't much in the documentation about using this camera with Linux.
Viewing Video
The raw video stream itself is actually available at http://yourwebcamera/img/video.asf. ASF is a Microsoft format – but plenty of Linux software can use it. Its a digital video container format sometimes known as 'Advanced Streaming Format'. The actually encoding of the video is MPEG-4 – a widely used standard. So, while you cannot run the active X control under Linux, you have plenty of choices of software you can use to view the video stream, provided you know where it is. Software you can use include the popular Mplayer, Xine and VLC.
root@gaz:~# tshark -w - | perl -lne '/(GET .*) HTTP/ && print $1'
Running as user "root" and group "root". This could be dangerous.
Capturing on eth0
58 GET /
GET /sd/idlecore-tidied.css?T_2_5_0_293
GET /sd/print.css?T_2_5_0_293
GET /favicon.ico
GET /sd/facebook_icon.png
GET /sd/twitter_icon.png
165 GET /p?c1=2&c2=6035546&c3=&c4=&c5=&c6=&c15=&cj=1
GET /x/34603223/false/p_1176745533=0
GET /sd/cs_i2_gradients.png?T_2_5_0_292
GET /sd/logo2.png
453 ^C
AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avi avr caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap ffmpeg flac fssd gsm hcom htk ima ircam la lpc lpc10 lu m4a mat mat4 mat5 maud mp2 mp3 mp4 mpg nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox w64 wav wavpcm wmv wv wve xa xitry this:
posted by CautionToTheWind at 4:03 AM on April 21, 2010