| Reply | « Previous Thread | Next Thread » |
|
Hello all,
for our internal needs, we have developped a video recording application running on some N93i. This is done in Python, thanks to Python for S60 platform. Due to some restrictions, we have modified the Python for S60 source code to be able to:
(see my previous posts on the subject). Both functions seems to be working as expected, even if the mirror hack is a quick and dirty hack which I think will work only on our specific configuration. I will post the changes we have done for changing the resolution, frame rate and bitrate as soon as everything will be working correctly. All seems to be working correctly. But some time, we have a "big" freeze. The phone is no more responding, and we need to reboot it. As far as I have see, it's occuring at the end of our recording, where I do mainly: Code:
camera.stop_record ()
e32.file_copy (internal_file, external_file)
os.unlink (internal_file)
As I'm writing this email, I'm thinking it's maybe the os.unlink() which is make too fast, before the stop_record() is really finished. Could this be the possible phone freeze reason ? As other users some stability problems with the Python for S60 ? Thanks in advance for any help on this point. Have a nice day. |
|
Hi bornet,
Quote:
Btw, does this freezing happen every time ? Does it happen with short recordings too ? If the recording is too big, then generally it would take time for the file to be copied. Just try the following code: having delay between the statements, Obviously, you can remove the unnecessary delay with trial and error methods. Code:
camera.stop_record ()
e32.ao_sleep(1)
e32.file_copy (internal_file, external_file)
e32.ao_sleep(1)
os.unlink (internal_file)
Best Regards, Croozeus |
|
Quote:
I ask because I have a problem with another module, and I suspect some timing problems. Arturo Tena pys60 brother |
|
Quote:
Best Regards, Croozeus |
|
hello,
Quote:
I will try with the sleep to see if it's helping. Thanks all for your answers. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| New to Python for S60 (PyS60)? Read this first! | croozeus | Python | 2 | 2008-10-17 20:23 |
| python script on startup | abimatrix | Python | 10 | 2008-07-24 08:32 |
| How to run my python script? | Gowtham_India | Python | 2 | 2007-06-25 11:15 |
| controlling softkeys from python script | dayashankar | Python | 5 | 2006-12-04 18:53 |
| Phone Crash with Nokia Games | Loongs | PC Suite API and PC Connectivity SDK | 1 | 2003-05-30 14:26 |