![]() |
[Solved] [Maemo 5] Keeping record of last two minute Audio/video recording?
Hi,
I want to use N900 as a third empire video rec. of a cricket match. to do this somehow N900 should keep video record of last two or three minute only .rest should be delete so thus whatever happens in the match recently (just two minute before) i can see reply of it. i hope i have present what i want in good words.(actually my English is not good) video rec. SOLVED:- here is how to do this you need rootsh and leafpad installed open leafpad and paste the code Thanks to skykooler and int_ua for their hard work Code:
#!/usr/bin/env python now open your camera shutter and close camera app. go to xterminal and type sudo gainroot and go to directory where you saved record.py and type Code:
chmod 755 record.py; ./record.py |
Re: Keeping record of last two minute video recording?
That's an interesting question. As a workaround (but not solution) I can propose to record 1 minute intervals with sh script and drop all except last N of them. But, again, it's just the first thing that comes to my mind. Will look through gst sinks.
|
Re: [Maemo 5] Keeping record of last two minute video recording?
Maybe leaky queue?..
|
Re: [Maemo 5] Keeping record of last two minute video recording?
Quote:
|
Re: [Maemo 5] Keeping record of last two minute video recording?
Quote:
update.sh: Code:
#!/bin/bash Code:
#!/bin/bash Anyone want to figure out the gstreamer command? |
Re: [Maemo 5] Keeping record of last two minute video recording?
Would be a good idea for an app, could be used in cars too! keep recordings of any potential accident you may have...
|
Re: [Maemo 5] Keeping record of last two minute video recording?
The gstreamer command was somewhere on the forums. nicholes, what about pycam that I've seen in your earlier thread? Can it be limited to 1 minute? However, there was pure sh code which is much much simpler.
|
Re: [Maemo 5] Keeping record of last two minute video recording?
Quote:
can this help somehow? |
Re: [Maemo 5] Keeping record of last two minute video recording?
Quote:
Code:
chmod 755 record.py; ./record.py Code:
import gst |
Re: [Maemo 5] Keeping record of last two minute video recording?
Great start :)
Just move STATE_PLAYING into while loop and fix prints, please :) |
All times are GMT. The time now is 02:05. |
vBulletin® Version 3.8.8