maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Maemo 5] Camera stream from N900 to PC? (N900 as webcam) (https://talk.maemo.org/showthread.php?t=31567)

tetris11_ 2011-03-08 23:02

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Okay Im getting that exact error message, but ONLY when I run the app with root priveleges...

It works fine if I launch it normally.... hmm....

@CrckMc + justice4all3000 - try launching the app from commandline: "/usr/local/bin/tester", and see if the problem persists... (but not as root)

justice4all3000 2011-03-08 23:41

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963553)
Okay Im getting that exact error message, but ONLY when I run the app with root priveleges...

It works fine if I launch it normally.... hmm....

@CrckMc + justice4all3000 - try launching the app from commandline: "/usr/local/bin/tester", and see if the problem persists... (but not as root)

still nothing appearing on vlc

leetnoob 2011-03-08 23:43

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
my front camera led doesn't go off either. is there anyway to switch it off without rebooting the phone?

i didn't actually start up vlc on the pc, just tested things on the phone. should be a really nice app with a little bit more tweaking of the interface.

tetris11_ 2011-03-09 00:04

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
@leetnoob - it DOESNT? wow, Im so sorry man!
to kill the process run "killall gst-launch-0.10"

@justice - As for recieving the stream on your desktop, you need to generate the sdp file....but since for some reason that aint working, you can just do it manually:
Code:

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 192.168.0.200
a=rtpmap:96 H264/90000

but instead of the 192.168.0.200, replace that with your N900's ipadress. Then save that text to something like "n900videostream.sdp" to your desktop pc.
Then stream from your phone, then launch the sdp file in vlc.

justice4all3000 2011-03-09 00:17

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963594)
@leetnoob - it DOESNT? wow, Im so sorry man!
to kill the process run "killall gst-launch-0.10"

@justice - As for recieving the stream on your desktop, you need to generate the sdp file....but since for some reason that aint working, you can just do it manually:
Code:

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 192.168.0.200
a=rtpmap:96 H264/90000

but instead of the 192.168.0.200, replace that with your N900's ipadress. Then save that text to something like "n900videostream.sdp" to your desktop pc.
Then stream from your phone, then launch the sdp file in vlc.


I managed to make the sdp file but still no luck at all are there any settings i need to tweak in vlc?

xur17 2011-03-09 00:23

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Any way to use this stream as a webcam?

Can we get audio and video simultaneously?

Nice app!

tetris11_ 2011-03-09 00:32

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
webcam...really no clue, dude - I kinda doubt it, but more experienced users would probably disagree with me.

as for audio+video simultaneous - really wish I knew how! I've looked though the gstreamer-tools documentation, and it just made my head spin. For now I'm relying on the work of others... so no audio+video together right now....

tetris11_ 2011-03-09 00:35

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by justice4all3000 (Post 963602)
I managed to make the sdp file but still no luck at all are there any settings i need to tweak in vlc?

hmm... as long as you gave the right IP, everything should be fine....

What IP address is your phone, and what IP is your desktop? Do you type the latter into the app before you stream? do you change the sdp file to have your phone's ip?

justice4all3000 2011-03-09 00:41

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963616)
hmm... as long as you gave the right IP, everything should be fine....

What IP address is your phone, and what IP is your desktop? Do you type the latter into the app before you stream? do you change the sdp file to have your phone's ip?

I have my phone ip set as 192.168.1.109 and my desktop 192.168.1.100 (entered into the app settings before streaming) I have double checked the sdp file and it has my phones ip address in it

tetris11_ 2011-03-09 00:55

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
okay, apologies in advance for sounding like a complete douchebag, but just to check:
Restart your phone (gst sometimes fails to launch when it's crashed previously)

On your desktop, the sdp file reads:
Code:

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 192.168.1.109
a=rtpmap:96 H264/90000

and on the app on your phone, you've chosen video (this wont work for audio) and the address reads:192.168.1.100, and port reads: 5000.

Then you've clicked stream. After that you've opened the sdp file on your desktop with VLC.

Can you confirm all that in that order?
Again apologies for sounding like a douchebag, I just want to be 100% sure.

justice4all3000 2011-03-09 01:11

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963624)
okay, apologies in advance for sounding like a complete douchebag, but just to check:
Restart your phone (gst sometimes fails to launch when it's crashed previously)

On your desktop, the sdp file reads:
Code:

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 192.168.1.109
a=rtpmap:96 H264/90000

and on the app on your phone, you've chosen video (this wont work for audio) and the address reads:192.168.1.100, and port reads: 5000.

Then you've clicked stream. After that you've opened the sdp file on your desktop with VLC.

Can you confirm all that in that order?
Again apologies for sounding like a douchebag, I just want to be 100% sure.

ok I just followed your instructions precisely and I also tried booting with a stock kernel, tried a different computer (changed ip for it) still it wont stream for me!

tetris11_ 2011-03-09 01:38

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Ah jeez, Im sorry man.
This is beyond me, I wish I knew what was going wrong...
Just uninstall the app before it causes more havoc to your system, and have a go playing around with gst-launch from commandline, as shown in this post:
http://talk.maemo.org/showpost.php?p...9&postcount=94

justice4all3000 2011-03-09 01:56

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963652)
Ah jeez, Im sorry man.
This is beyond me, I wish I knew what was going wrong...
Just uninstall the app before it causes more havoc to your system, and have a go playing around with gst-launch from commandline, as shown in this post:
http://talk.maemo.org/showpost.php?p...9&postcount=94

all good thanks for all your help I will keep playing around with it I will let you know if I get it working

leetnoob 2011-03-09 02:55

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963594)
@leetnoob - it DOESNT? wow, Im so sorry man!
to kill the process run "killall gst-launch-0.10"

nope.. led stays on, gst-launch isn't actually running before the killall. bizzare. i am using power kernel v46 . it does make me wonder if components of the back camera stay running when that's used...

tetris11_ 2011-03-09 03:03

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Hmm! Now that could be something!
I'm not using power-kernel, and that maybe the reason for the problems both you and justice4all300 are having....

For now I recommend you uninstall the app before it starts streaming without you knowing.....

@justice4all3000 - are you also using Titan's power kernel?

justice4all3000 2011-03-09 03:15

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963685)
Hmm! Now that could be something!
I'm not using power-kernel, and that maybe the reason for the problems both you and justice4all300 are having....

For now I recommend you uninstall the app before it starts streaming without you knowing.....

@justice4all3000 - are you also using Titan's power kernel?

yes I am but i did try using the stock kernel to see if it made a difference

leetnoob 2011-03-09 03:15

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
actually, now i remember. when using a power kernel you have to download different fcam camera drivers as the normal fcam drivers don't work with a power kernel (i.e power kernel 'breaks' your camera). so, even if you revert to a stock kernel you will still probably have the 'newer' fcam drivers. i haven't tried receiving the stream on my pc vlc yet so don't know if it streams, it looks like it's working though as far as the phone side goes.

tetris11_ 2011-03-09 03:33

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
YES! That sounds like it could be it!
But I have no idea why gstreamer cant use these new drivers...

Well I dont want to break anyone's camera.... I reckon if you guys have power-kernel, you'd better uninstall the app just in case.

But thanks for the feedback all the same!

leetnoob 2011-03-09 03:46

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
ok, i can confirm that it DOESNT work for me as well. probably something to do with the power kernel fcam drivers. bummer, it seemed like a useful thing to have. :-(

leetnoob 2011-03-09 04:16

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
one possible solution which i'm not going to try but would probably work is to uninstall

blessn900
fcamera
fcam drivers

this may be an issue with these third party apps and not so much the power kernel itself.

justice4all3000 2011-03-09 04:18

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by leetnoob (Post 963737)
one possible solution which i'm not going to try but would probably work is to uninstall

blessn900
fcamera
fcam drivers

this may be an issue with these third party apps and not so much the power kernel itself.

I dont think it they are the cause I dont use any of those apps

tetris11_ 2011-03-09 04:26

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
I dont have any those apps or that kernel, so you might have to try that yourself and tell me how it goes...

tetris11_ 2011-03-09 06:26

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Made a new release, fixes a few major bugs, but I'm not sure if it will solve the kernel problem at all....

It comes with a new feature, that automatically sends the sdp file to your linux dekstop PC.
http://talk.maemo.org/showpost.php?p...&postcount=110

leetnoob 2011-03-09 06:38

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by justice4all3000 (Post 963739)
I dont think it they are the cause I dont use any of those apps

deinstalled them, upgraded vlc to latest version and still not working.. vlc gives the error 'no data received in 10s , aborting'

justice4all3000 2011-03-09 07:00

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
its working for me now with the new version all I had to do is manually create the sdp file!

tetris11_ 2011-03-09 07:00

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Yay! Awesome! What did you think of it? Is the "Send sdp file to desktop" feature working well for you?

Also I was wondering if you could confirm something for me....
can you tell me what "sudo apt-cache depends tester" produces?

@leetnoob - try the new release too, and see if that helps...

leetnoob 2011-03-09 07:09

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by tetris11_ (Post 963784)
Made a new release, fixes a few major bugs, but I'm not sure if it will solve the kernel problem at all....

It comes with a new feature, that automatically sends the sdp file to your linux dekstop PC.
http://talk.maemo.org/showpost.php?p...&postcount=110

installed the new version. front camera led now goes off. not sure if it's due to removal of fcam stuff or new version of software. still not working, vlc says it's not receiving any data.. when i run the software the cpu goes to 100%, is that normal? if so the software appears to be working to some degree. pc can ping n900, and visa versa. not 100% convinced this is a kernel issue, but that is what seems to be in common..

leetnoob 2011-03-09 07:12

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by justice4all3000 (Post 963794)
its working for me now with the new version all I had to do is manually create the sdp file!

are you still running with just a stock kernel?

justice4all3000 2011-03-09 07:17

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
"sudo apt-cache depends tester" brought nothing up for me

im not on linux atm so i havn't tested the send sdp to desktop yet I did notice when trying create the sdp file in the newer version when i selected video it would for some reason create an audo sdp

justice4all3000 2011-03-09 07:25

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by leetnoob (Post 963797)
are you still running with just a stock kernel?

just tried it with titans power kernel and it doesn't work, the audio does work with it though

leetnoob 2011-03-09 07:33

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by justice4all3000 (Post 963800)
just tried it with titans power kernel and it doesn't work, the audio does work with it though though

ok, thanks. pity it would have been nice. so power kernel users are out of luck.

justice4all3000 2011-03-09 07:43

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
ok I have found a workaround that will work with both kernels there seems to be a bug with streaming with the back camera to get around it just follow these steps (assuming you have already created the sdp files)

with the app open select audio
then select video
select front camera
start streaming (test with vlc)
stop streaming
then select back camera
start streaming

this worked for me in the new version

CrckMc 2011-03-09 09:25

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
your workaround worked for me too, thank you


EDIT:

after playing a bit with the app i have to say its brilliant!
really really good and useful.

thanks again tetris :)


EDIT2:

One question:
why do we have to enter the pc ip adress? is this for security or do you have to start the stream for this ip? i would like to have remote access to my stream but then it would have to work with dynamic ips

EDIT3:

Ok found out its for the udpsink connection (?) so is there any way to make this accessible to more than one ip?

lolloo 2011-03-09 12:16

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
sorry , but what do you think problem here?
http://img.techpowerup.org/110309/Capture2435.jpg

CrckMc 2011-03-09 12:32

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
you have to install expect with apt-get

"apt-get install expect" schould do the trick at least it worked for me

tetris11_ 2011-03-09 16:17

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
@justice4all -dude you are a ****ing life-saver you know that!?! :D
If that's all that's required for the app to work, then I can probably perform those same workarounds from within the app!!
You sir, are a prince!



Quote:

Originally Posted by CrckMc (Post 963865)
so is there any way to make this accessible to more than one ip?

Yes! it is possible, but dont expect anything too soon!


@lolloo - yeah that's a dependency problem I need to work on.
When expect is uninstalled - tester is too, but for some reason when tester is installed - it doesn't install expect......

Quote:

Originally Posted by justice4all3000 (Post 963799)
yet I did notice when trying create the sdp file in the newer version when i selected video it would for some reason create an audo sdp

Yeah I haven't solved this problem yet, but I think I know how. Just click on the video/audio combobox again, and it should correct itself.

gionni88 2011-03-09 16:54

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Depends: expect

in control file to add the dependencie. But what is this expect doing?
The app is working, even with version 1, and I have power-kernel. Ofc I start the stream first and the vlc file second.

Btw, I guess it's better to open a proper topic about the app and move the discussion about it there.

To use it as webcam, there is a post in this topic about using a software to get a portion of the screen as webcam.

leetnoob 2011-03-09 17:01

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by CrckMc (Post 963865)

EDIT2:

One question:
why do we have to enter the pc ip adress? is this for security or do you have to start the stream for this ip? i would like to have remote access to my stream but then it would have to work with dynamic ips

uh.. just to be clear, do we enter the ip address of the n900 or the remote pc?

handaxe 2011-03-09 17:13

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Nice job tetris11_! I run the power kernel and for whatever reason, I don't need any work around....

tnx and kudos to your productive learning curve...

handaxe 2011-03-09 17:13

Re: [Maemo 5] Camera stream from N900 to PC? (N900 as webcam)
 
Quote:

Originally Posted by leetnoob (Post 964139)
uh.. just to be clear, do we enter the ip address of the n900 or the remote pc?

Remote PC.


All times are GMT. The time now is 17:59.

vBulletin® Version 3.8.8