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-14 10:52

Re: Flashcam project for Linux (bounty for N800?)
 
I think it is called fcmini or something similar and is run as a daemon from /etc/init.d/flashcam. It loads the module, and starts the daemon.

"ps" should show something when run from the console. Running it twice would give that error message.

Generally the light on the 810 will turn red when a flash app is accessing the camera. That is the program attaching to the hardware.

TabulaRasa 2008-05-14 13:07

Re: Flashcam project for Linux (bounty for N800?)
 
I'll look around for ways that people go the mic to work on the N800. I know it works on the EEE PC and it's just a generic mic running under xandros linux.

tz1 2008-05-14 13:40

Re: Flashcam project for Linux (bounty for N800?)
 
Sound will be a problem - though perhaps not as bad as I'm thinking.

The flash player uses asound (ALSA). The problem is that gstreamer and apparently everything else use something with the DSP, so the /dev/snd/pcmXXYYZ devices aren't created or used. Something simple like aplay/arecord won't work.

I will have to look at libasound2, but what it should be doing is accessing the dsp like gstreamer. I suspect it is just trying to do the /dev/snd stuff.

(Note the ALSA support "help" in the kernel config says it doesn't do the PCM devices, the DSP is supposed to do the dirty work - but the library might be adapted or adaptable).

tz1 2008-05-14 14:01

Re: Flashcam project for Linux (bounty for N800?)
 
The plugins for the DSP under ALSA seem to be there, but I wonder if this is related to the maemo recorder / gstream that seems to disable the mic, then reenables it after some unknown something happens.

Update: aplay and arecord (given the right sample format) work fine. Sometimes. But I haven't got the flash program to find the linux microphone. If it is requesting an unsupported sampling rate (and slow is bad here), it won't work, at least not unless I fidget with the plugin to decimate.

TabulaRasa 2008-05-16 16:15

Re: Flashcam project for Linux (bounty for N800?)
 
Any luck with the microphone in flash? Looking at past posts here a lot of people said that the mic worked but the camera didn't -- but perhaps that was something that was said without any proof.

I'm thinking of putting together a simple flash-based service (formatted for the 800x400 screen) for tablets that works with skype -- you 'd be able to go to the page and send fairly low frame rate video from the tablet and then talk with the skype application. basically, each session would get a temporary link, and clicking on a button would automatically add the link to your clipboard. That way it can kind of ride on top of skype -- assuming audio can't work well thru flash.

TabulaRasa 2008-05-16 16:20

Re: Flashcam project for Linux (bounty for N800?)
 
HAHA, I just ordered another N800 since I saw CompUSA only has a few left.
#1 i gave to my bro-in-law
#2 defective -- enroute back to CompUSA
#3 currently using
#4 to be used as a remote baby monitor. (we have twins on the way -- plus instead of showing photos, I can flash people a live video feed) :-D

tz1 2008-05-16 20:07

Re: Flashcam project for Linux (bounty for N800?)
 
I've delved into libasound.so.2, which is there, but I can't get it to show anything yet. So I'm not sure. It doesn't display "Linux Microphone" in settings like it ought. But I'll try further this weekend.

iamah 2008-05-24 07:28

Re: Flashcam project for Linux (bounty for N800?)
 
hey tz, thanks!
checkout justin.tv, it works on desktop version, but theres a problem in n800, i'm using os2008... theres a similar problem in youtube direct uplload... seems to be waiting for a callback

Thesandlord 2008-05-26 00:09

Re: Flashcam project for Linux (bounty for N800?)
 
any updates on sound or youtube compatibility? Im bursting with anticipation for this as a finished product!

qole 2008-05-26 18:23

Re: Flashcam project for Linux (bounty for N800?)
 
Sound input is not a problem with Flash. The mic on the N8x0 is a big problem, period. There doesn't seem to be any ALSA hardware device mapped to it. The only way I've found that works is using gstreamer. There is a gstreamer source called "dsppcmsrc" (in the dsppcm plugin) that accesses the mic. If anyone found a way to get that working in apps that use ALSA, that would be pretty heroic.

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.

Underscore 2008-06-27 03:18

Re: Flashcam project for Linux (bounty for N800?)
 
O_O I thought flash was running faster...

slip 2008-07-04 04:29

Re: Flashcam project for Linux (bounty for N800?)
 
Any updates on getting Flashcam to work with Diablo (without having to use the old Chinook flashplayer)?

MurphysPub 2008-07-09 06:58

Re: Flashcam project for Linux (bounty for N800?)
 
Could someone send me the chinook libflashplayer.so for me?

TabulaRasa 2008-07-16 15:03

Re: Flashcam project for Linux (bounty for N800?)
 
I am not sure where to get this. The flash support was cool while it lasted, but would be great if it worked on diablo. Lately I've just been using X-Lite or calling the other N800 at home, which has worked pretty well.

Thesandlord 2008-07-18 04:05

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

Can we please have flashcam on diablo. It was so awesome while it lasted, i never expected it to break. It cant be THAT hard can it, I mean it was already working before, so the hard work is done. Right?

tz1 2008-07-22 14:07

Re: Flashcam project for Linux (bounty for N800?)
 
It can be that hard. They either removed the video hook entirely (a different device name is there), or buried it so I can't hack around it, at least not without a lot of effort.

TabulaRasa 2008-07-22 14:18

Re: Flashcam project for Linux (bounty for N800?)
 
Maybe there is a way to toggle which version of flash is used. I, for one, can't find the old version, and if I did, I'm not sure I could make the change without screwing things up. I've already restored my tablet 3 times due to installing things wrong. The tablet still worked, but I am too anal, and I can't deal with broken packages. :D

tz1 2008-07-22 23:16

Re: Flashcam project for Linux (bounty for N800?)
 
Note that where you got the RX44-xxx.bin fiasco image, you can get the old ones. From the same site...

remember http://news.cnet.com/8301-13739_3-9816300-46.html ?

http://tablets-dev.nokia.com/nokia_N810.php

has the older images. There are tools to break them apart.

rlinfati 2008-07-25 04:36

Re: Flashcam project for Linux (bounty for N800?)
 
any news for webcam support on diablo?

sunnydips 2009-03-16 01:53

Re: Flashcam project for Linux (bounty for N800?)
 
I don't understand why my n810 has a webcam... Seems like a tease to me...

sunnydips 2009-03-16 09:21

Re: Flashcam project for Linux (bounty for N800?)
 
http://code.google.com/p/gstfakevideo/

I was told this has promise...

qole 2009-03-16 19:16

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

Originally Posted by sunnydips (Post 271967)
I don't understand why my n810 has a webcam... Seems like a tease to me...

I've heard the GPS is a bit of a tease too.


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

vBulletin® Version 3.8.8