mjpegtools_yuv_to_v4l
Copyright Jan Panteltje (c) 2008-always.
Released under the GPL

mjpegtools_yuv_to_v4l
Converts mjpegtools YUV format to v4l.
Should be used with the vloopback module from flashcam-1.1.tgz from http://www.swift-tools.net/Flashcam/

This allows you for example to send the DCS-900 output from the mcamip program to a video for Linux device,
so you can watch with for example xawtv.

This is how I use it now:
modprobe vloopback
Now do dmesg to see what is input and output, you could already have other webcams, here its says:
vloopback: Video4linux loopback driver v1.1.2
vloopback: Loopback 0 registered, input: video2, output: video1
mcamip -a IPADDRESS -p PORT -u USERNAME -w PASSWORD -y | mjpegtools_yuv_to_v4l /dev/video2

Test with:
xawtv -c /dev/video1 -geometry 640x480


Using it with Flashplayer (install_flash_player_9_linux.tar.gz):
If you want to use flashplayer, and flashplayer does not recognize the vloopback device, try this,
_BUT_ it may hang your system, you may no longer be able to remove the module, as it will always report busy, so use at you own risk,
as far as I have been able to find out, one needs to select 'none' in Flash _before_ stopping mcamip, to prevent the module from hanging.
rmmod vloopback
modprobe vloopback inminor=9
This will hopefully cause flashplayer to scan and find the loopback device, select it.
mcamip -a IPADDRESS -p PORT -u USERNAME -w PASSWORD -y | mjpegtools_yuv_to_v4l /dev/video9
To undo zooming effect in Flash, perhaps pipe via y4mscaler:
mcamip -a IPADDRESS -p PORT -u USERNAME -w PASSWORD -y | y4mscaler -Isar=1:1 -Iilace=NONE -Osize=160x120 | mjpegtools_yuv_to_v4l /dev/video9

You can find y4mscaler at http://www.mir.com/DMG/Software/

compile:
make
make install

For help, and an example:
mjpegtools_yuv_to_v4l -h




