maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Flashcam project for Linux (bounty for N800?) (https://talk.maemo.org/showthread.php?t=19855)

tz1 2008-05-28 16:50

Re: Flashcam project for Linux (bounty for N800?)
 
Actually there is an ALSA device (libaudio to be more specific) mapped as arecord (and aplay) will work, but it seems that nothing else can use the DSP, and you have to ask it nicely (a DSP supported format, rate, etc.) which gstreamer does and generally won't with the default Flash parameters requested when my laptop is being used. It uses one of the plugin libraries to access the PCM stream via the DSP, so isn't as simple as /dev/dsp or /dev/audio.

Flash binds to libaudio, but I have no evidence it actually tries to access it.

qole 2008-05-29 18:38

Re: Flashcam project for Linux (bounty for N800?)
 
I would really like to be able to use this cool package with software that can only use v4l1 devices (specifically, the current released VLC), but I'm not sure what I would need to do here.

I notice that the original project provides "flashcamwrap" to use with other software. Does this implementation require that? If so, could you include it in your .deb? Or can I just use one of the new video devices (v4l1, video1 and video2)?

tz1 2008-05-31 00:38

Re: Flashcam project for Linux (bounty for N800?)
 
My package works "out of the box". Install the deb, and flash recognizes the built-in camera on the n800 and n810.

The "wrap" intercepts open to prevent v4l2 devices from being seen, but my version changes the device name in the .so and runs a daemon that sleeps until something reads from the pipe and then pulls v4l2, convertes it, and sends it to its end of the pipe until the far end stops reading. It also loads the video pipe kernel module, all automatically.

There may be a licensing issue since I change a string in the libflashplayer.so browser plugin file so I wouldn't need the wrapper.

tz1 2008-05-31 00:41

Re: Flashcam project for Linux (bounty for N800?)
 
To clarify, the V4Lv1 device is /dev/v4lv1 or something similar, so if you can point the release vlc at that (do you have a pointer to the deb?) it should just work.

flashcamd sits there, /dev/videoX, X>0 is the push end of the pipe, /dev/v4lv1 is the pull end, and when something starts reading flashcamd opens and forwards video from /dev/video0 (a v4l2 device) through the pipe to /dev/v4lv1 automatically.

qole 2008-05-31 15:43

Re: Flashcam project for Linux (bounty for N800?)
 
Quote:

Originally Posted by tz1 (Post 187363)
...do you have a pointer to the deb [of the release vlc]?

I'm using Debian in a chroot. I do "mount --bind /dev $CHROOT/dev", that should be enough, no?

slip 2008-06-25 23:30

Re: Flashcam project for Linux (bounty for N800?)
 
Has anyone tried this out with Diablo yet? It doesn't seem to be working for me. I reinstalled it from the .deb posted earlier in this thread. Tested it on mebeam.com but it said that it did not detect a camera device.

Thanks

Underscore 2008-06-25 23:53

Re: Flashcam project for Linux (bounty for N800?)
 
Same for me, Slip. Don't think it's working with Diablo.

ioan 2008-06-26 16:56

Re: Flashcam project for Linux (bounty for N800?)
 
Same here, under Diablo doesn't work.

tz1 2008-06-26 19:20

Re: Flashcam project for Linux (bounty for N800?)
 
It doesn't work - they changed something in the libflashcam plugin.

However, if you have the previous release/image, you can copy the /usr/lib/browser/plugins/libflashplayer.so file from that version and it will work in diablo with flashcam.

I'll see if I can find a better work-around.

qole 2008-06-26 19:55

Re: Flashcam project for Linux (bounty for N800?)
 
Quote:

Originally Posted by tz1 (Post 196268)
However, if you have the previous release/image, you can copy the /usr/lib/browser/plugins/libflashplayer.so file from that version and it will work in diablo with flashcam.

Warning! Back up your Diablo libflashplayer.so file, because it has speed enhancements that will be lost when you go back to your Chinook version. I would recommend only using the Chinook version when you want to use flashcam.


All times are GMT. The time now is 03:46.

vBulletin® Version 3.8.8