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.


All times are GMT. The time now is 09:53.

vBulletin® Version 3.8.8