maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [Solved] [Maemo 5] Keeping record of last two minute Audio/video recording? (https://talk.maemo.org/showthread.php?t=82561)

int_ua 2012-02-25 08:20

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
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.

nicholes 2012-02-25 17:58

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
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?

int_ua 2012-02-26 13:45

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
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?

nicholes 2012-02-27 04:31

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
3 Attachment(s)
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)

nicholes 2012-02-27 07:11

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
Quote:

Originally Posted by int_ua (Post 1169375)
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?

int_ua 2012-02-27 08:42

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
Quote:

Originally Posted by nicholes (Post 1170239)
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 /

int_ua 2012-02-27 08:48

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
Quote:

Originally Posted by nicholes (Post 1170251)
what to do with this code?

This code is just a half-proof of concept, it's far from being any useful :)

nicholes 2012-02-27 13:44

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
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?

skykooler 2012-02-27 14:04

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
Quote:

Originally Posted by nicholes (Post 1170531)
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.

nicholes 2012-02-27 15:26

Re: [Solved] [Maemo 5] Keeping record of last two minute video recording?
 
Quote:

Originally Posted by skykooler (Post 1170554)
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:o


All times are GMT. The time now is 07:33.

vBulletin® Version 3.8.8