>> /* /dev/video0 */
>
> Argh. We must underline, that the CamLayer() uses the old v4l1 API only.
> This works with most cheap cams.
> I guess, your tv stick driver is v4l2. Try the MovieLayer(with w, h)!
> ffmpeg can open video devices! However, both don't provide any extra
> IO_CTRL to set up the device, yet.
>
> xawtv ships with 2 useful tools:
> "v4l-info" gives u info if device is version 1 or 2
> "v4lctl" control the device, should even work while freej is running.
>
> Unless I get a v4l2 device, I can't enhance the video layer. Same is
> true for firewire stuff.
Hi Mr. Goil
thx for sharing your knowledge! Your hint about xawtv and its tools
helped me a lot.
i couldn't get the MovieLayer to read /dev/video0. but i found a
workaround for reading a v4l2 device via vloopback.
It's a silly hack - but it works ok for me (at least for the moment).
so, basically, it's possible to pipe any video input via vloopback to
freej. there is even a way to read dv via dv2vloopback:
https://sourceforge.net/projects/dv2vloopback/
still, wouldn't say *no* to a real implementation of v4l2 ;)
so this is what i did (if anybody feels like following)
1. build and install vloopack (Kernel 2.6.24-16)
svn co
http://www.lavrsen.dk/svn/vloopback/trunk/ vloopback
cd vloopback
make
sudo make install
sudo modprobe vloopback
2. Install effectv
3. Install xawtv
4. Set the Video Input of my v4l2 device to S-Video
v4l2-ctl --set-input 2
5. Pipe /dev/video0 via effectv (changed i/o size to 640x480)
effectv -device /dev/video0 -vloopback /dev/video1 -size 640x480
6. Read /dev/video2 in Freej via JS:
lay1 = new CamLayer(640, 480, "/dev/video2");
addlayer(lay1);
cheers,
-doma
--
.###### ### ####### # # ### # # ####### ###### #####
.#... #..# ....#.. .## .# .# .# .# .#.....#.#.....#.#.....#
.# # .# .# .# # .# .# .# .# .# .#.# #.#
.###### .# .# .# .# .# .# .### .# .#.###### .# ####
.# ... # .# .# .# .# # .# .# .# .# .#.#...# .# ....#
.# # .# .# .# .## .# .# .# .###.# .#.# .# .# .#
.######. ### .# .# .# ###.# .#.###.#######.# .# .####
..... ... .. .. . ... . .... ....... . . .....
!Mediengruppe Bitnik . http://bitnik.org . http://opera-calling.com
_______________________________________________
Freej mailing list
Freej@???
http://lists.dyne.org/cgi-bin/mailman/listinfo/freej