![]() |
How to script?
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 ! \ And it should work with n900 of course. Thanks. |
Re: How to script?
Quote:
(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 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. |
Re: How to script?
Thanks, works like a charm.
|
All times are GMT. The time now is 12:14. |
vBulletin® Version 3.8.8