Active Topics

 



Notices


Reply
Thread Tools
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#21
I wouldn't say that it's solved because there is no adequate mechanism to save current state in separate files and to stop recording. And I didn't find an easy way to do this yet.

Last edited by int_ua; 2012-02-25 at 08:32.
 
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#22
a few question


1. how do i save videos in MyDocs/.videos folder?

2.if i want to extend the time of current.mp4 should i edit the line ...

time.sleep(60) and change it to> time.sleep(120) for two minute....?

3. is there any way we can make a shortcut for this?

4.(if no shortcut) can we somehow get rid of sudo gainroot (it is frustrating) every time?
__________________
N900 gave me a reason to live in this cruel world

get your smooth live wallpaper today
My YouTube videos
 
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#23
1. Just run the script in needed folder
2. Yes.
3. Since it doesn't have any adequate controls yet I wouldn't recommend using it without terminal.
4. Why do you use root? It's not required.

Did you try to use it? It's not ready for general usage, isn't it?
 

The Following User Says Thank You to int_ua For This Useful Post:
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#24
Hi,
as you said

"4. Why do you use root? It's not required."

in my case i have to use sudo gainroot.

And another thing, if record.py in MyDocs, even after sudo gainroot,it does not start camera and shows "permission denied"
thus i cannot save my videos in Mydocs folder

to use record.py in my phone. Record.py should be in root folder(home/user)
Attached Images
   
__________________
N900 gave me a reason to live in this cruel world

get your smooth live wallpaper today
My YouTube videos
 
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#25
Originally Posted by int_ua View Post
I just finished first attempt to get gst-launch working and queue works as expected with this code:
Code:
gst-launch v4l2src device=/dev/video0 ! queue leaky=upstream min-threshold-time=10000000000 ! autovideosink
(time in nanoseconds)
Now it would be great to try to use queue sink in the above python code instead of moving files That's all for today, I hope we will finish it tomorrow
what does that mean?? i dont get it(sorry my noobness) can you plz explane it for me what to do with this code?
__________________
N900 gave me a reason to live in this cruel world

get your smooth live wallpaper today
My YouTube videos
 
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#26
Originally Posted by nicholes View Post
And another thing, if record.py in MyDocs, even after sudo gainroot,it does not start camera and shows "permission denied"
thus i cannot save my videos in Mydocs folder

to use record.py in my phone. Record.py should be in root folder(home/user)
MyDocs is vfat filesystem mounted with noexec option which prevents you from making files executable on it. And thus you have no permission to execute it => "Permission denied". You can still run scripts from it by executing interpreter and passing the script name to it as an argument:
Code:
$ python record.py
But you don't need to put the script in the same folder. Just run it using absolute path:
Code:
$ cd MyDocs/.videos/or/whatever/wherever
$ /home/user/bin/record.py
It will use current folder as working directory.

And /home/user is not root folder, it's users' $HOME directory. $HOME for user root is typically /root and the root directory is /
 

The Following User Says Thank You to int_ua For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#27
Originally Posted by nicholes View Post
what to do with this code?
This code is just a half-proof of concept, it's far from being any useful
 

The Following User Says Thank You to int_ua For This Useful Post:
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#28
can you do the same for voice recording ??

Keeping record of last two minute voice recording!

i started a thread regarding this in past but i didn't get it.

can you help?
__________________
N900 gave me a reason to live in this cruel world

get your smooth live wallpaper today
My YouTube videos
 

The Following User Says Thank You to nicholes For This Useful Post:
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#29
Originally Posted by nicholes View Post
can you do the same for voice recording ??

Keeping record of last two minute voice recording!

i started a thread regarding this in past but i didn't get it.

can you help?
That should be basically the same thing, but ignoring the video component. I'll look at it.
 

The Following 2 Users Say Thank You to skykooler For This Useful Post:
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#30
Originally Posted by skykooler View Post
That should be basically the same thing, but ignoring the video component. I'll look at it.
ya! you are quite right my mind didn't think like you
__________________
N900 gave me a reason to live in this cruel world

get your smooth live wallpaper today
My YouTube videos
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:57.