Reply
Thread Tools
Posts: 75 | Thanked: 12 times | Joined on Jul 2010 @ Finland
#1
Hi

Probably a very dumb question but i cant find answer to it and i need it pretty fast. So here comes.

Recently i found this: http://blog.pclewis.com/2010/02/stre...camera-to-vlc/
---- from teh internez and i love it, great to monitor my... cat or something else Anyways its loads of fun.

So the basic thing is that i need to help launch the gstreamer easier than typing this to terminal:

Code:
gst-launch v4l2camsrc device=/dev/video0 ! \
dsph264enc ! \
rtph264pay ! \
udpsink host=192.168.0.100 port=5434
>>>> script

And it should work with n900 of course.

Thanks.
__________________
d(^_^)b
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#2
Originally Posted by SakkeMO View Post
Hi

Probably a very dumb question but i cant find answer to it and i need it pretty fast. So here comes.

Recently i found this: http://blog.pclewis.com/2010/02/stre...camera-to-vlc/
---- from teh internez and i love it, great to monitor my... cat or something else Anyways its loads of fun.

So the basic thing is that i need to help launch the gstreamer easier than typing this to terminal:

Code:
gst-launch v4l2camsrc device=/dev/video0 ! \
dsph264enc ! \
rtph264pay ! \
udpsink host=192.168.0.100 port=5434
>>>> script

And it should work with n900 of course.

Thanks.
If you launch the terminal and then do as follow you will have a script...

(i am not sure if you need root to do this..)

1. sudo gainroot
2. leafpad /usr/sbin/myscript
3. copy/paste

Code:
#!/bin/sh

gst-launch v4l2camsrc device=/dev/video0 ! dsph264enc ! rtph264pay ! udpsink host=192.168.0.100 port=5434

echo "if you want to have some output"
4. chmod +x /usr/sbin/myscript
5. and run it...

To run it from terminal:
1. sudo gainroot
2. myscript

Or make an QueenBeecon and put it on the desktop as an icon.
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums

Last edited by AlMehdi; 2011-01-31 at 13:15.
 

The Following User Says Thank You to AlMehdi For This Useful Post:
Posts: 75 | Thanked: 12 times | Joined on Jul 2010 @ Finland
#3
Thanks, works like a charm.
__________________
d(^_^)b
 
Reply

Thread Tools

 
Forum Jump


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