Aaargh, it turnes out (thanks to Forum Nokia people for responding to my query!) that I can't record video from S60 Python on an N93 (see my earlier S60 video python post) without installing a MultimediaDD certificate which for some reason (bug?) is not present on an N93. Please Nokia update the N93 firmware to include he Multimedia DD certificate !
Questions:
I tried to record a video using the new video APIs in S60 Python 1.4.1 but I can't get it to work. My code (inspired by instaflickr code from the S60 Python Book Sample code) runs but the red light doesn't come on on my N93 and nothing is recorded. I am guessing (Forum Nokia post, SourceForge Bug Report) I have an error in camera.start_record() in the following code (which is also attached):
import appuifw
import e32, key_codes, os, os.path, camera, graphics
def cb(im):
try:
canvas.blit(im)
except:
appuifw.note(u'cb')
def cb2(im, blah):
try:
x = 1
except:
appuifw.note(u'cb2')
def start_viewfinder():
camera.start_finder(cb)
camera.start_record('E:\\Python\\whatever.mp4', cb2 )
canvas = appuifw.Canvas()
appuifw.app.body = canvas
start_viewfinder()
e32.ao_sleep(30) # record video for 30 seconds
camera.stop_record()
camera.stop_finder()
If anybody can help, please email roland AT rolandtanglao.com, call +1 604 729 7924, skype: rtanglao or Jabber: roland@bryght.com
Yay! Go my hello world program to work and finally got the OS X Bluetooth console to work. The trick is to:
ls -l /dev
and use the last tty for the screen command
e.g. if the last modified tty is tty.bt_console6
then you have to do screen /dev/tty.bt_console6
Now on to to create a program to create video in ego blogging mode (i.e. with screen facing you) using the high res camera.
I can't get the following code to work:
import appuifw
import camera
import e32
from camera import *
def cb(im):
try:
canvas.blit(im)
#appuifw.app.body.blit(im)
except:
appuifw.note(u'cb')
def cb2(im):
try:
appuifw.app.body.blit(im)
except:
appuifw.note(u'cb2')
import graphics
canvas = appuifw.Canvas()
appuifw.app.body = canvas
start_finder(cb)
start_record('E:\\Python\whatever.mp4', cb2 )
#stop_record()
and I can't get the Nokia camera.py from Nokia's python sample code wiki page to work, help!
I couldn't do the most basic thing and connect my terminal.app with my Python running on my Nokia N93. Aaargh!
I followed the Using the Python for Series 60 Bluetooth Console from OS X HOW TO from Erk Smartt but was unsuccessful.
Invoking the Bluetooth console from the python app on the Nokia N93 worked but then after typing "screen /dev/tty.BT_CONSOLE", I get the following error messages: "Cannot open line '/dev/tty.BT_CONSOLE' for R/W: Resource busy " followed by "Sorry, could not find a PTY. ".
What am I doing wrong? I know I had this working with my Mac and Series 60 Python on the N70 back in the day so it's a bit frustrating!
I've downloaded this now and I am patiently awaiting my Gateway ID! Go Raccoon go!
FROM NRC - Phone Software:
QUOTE
Apache Modules
The following Apache modules have been built in: mod_alias, mod_auth, mod_autoindex, mod_dav, mod_dav_fs, mod_dir, mod_log_config, mod_mime, mod_rewrite, mod_setenvif and last, but definitely not least, mod_python.
Mod_python integrates Python for S60 with Apache and thus you can create content using Python scripting and also Python Server Pages. As it is possible to write your own Python extension modules, the entire S60 API is in principle available, even though the source for the Symbian port of Apache httpd is not yet provided.
The port of Apache httpd is based on version 2.0.52 and the port of mod_python on version 3.1.3.
...
In order to be able to browse to your mobile website you need to have an account on our gateway. Simply send a mail with the subject Raccoon Account and we will create one for you. If your name and preferred email-address are not evident from the mail headers, then specify them explicitly in the email body.
END QUOTE
Cool. Thanks WhiteTiger! Check out the flickrUp source and compiled stuff at sourceforge
From Python available for Series 60 - flickrUp port in progress | Roland Tanglao's Weblog.:
QUOTE
http://pys60miniapps.sourceforge.net my porting flickrUp. ^_^
UNQUOTE