×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Record video with front camera [split from Start developing]

    help me plz.. ive been searching so long n this forum n still couldnt find any python application that could make me record a video for with my front cam on e66.
    also the java application worked to record a video but it was only for 30 seconds.
    mm one more thing how can i edit a jar file with net.beans 5.5

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Start Developing

    Quote Originally Posted by zcreator View Post
    help me plz.. ive been searching so long n this forum n still couldnt find any python application that could make me record a video for with my front cam on e66.
    also the java application worked to record a video but it was only for 30 seconds.
    mm one more thing how can i edit a jar file with net.beans 5.5
    hello zcreator

    its a bad idea to start your questions in mid of another thread please avoid doing that.

    Apart from that i have checked the docs but no specification about recording video from front camera is mentioned.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Start Developing

    ok im sorry about doing that, ill avoid it the nextg time, there is a project for bogdan that records from the front camera its right in here http://discussion.forum.nokia.com/fo...d.php?t=150923 but i dont know how to edit it. i need to edit the duration which is 300000bytes plz can u help me to edit the class files.
    plus i need it to save videos to the memory card
    Last edited by zcreator; 2010-04-03 at 09:21.

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Start Developing

    n one more thing is there anyway to edit this python to switch it to front cam , very much thx

    # Video recording application



    import e32, camera, appuifw, key_codes, os

    control_light=0
    videodir=u"e:\\pyvideos\\"

    try:
    if not os.path.exists(videodir):
    os.makedirs(videodir)
    else:
    pass
    except:
    appuifw.note(u"Problems creating directory on memorycard", "info")

    def finder_cb(im):
    global control_light
    if control_light==1:
    im.point((20, 20), outline = (255, 0, 0), width = 25)
    else:
    im.point((20, 20), outline = (0, 255, 0), width = 25)
    canvas.blit(im)

    def video_callback(err,current_state):
    global control_light
    if current_state == camera.EPrepareComplete:
    control_light=1
    else:
    pass

    def start_video():
    files=os.listdir(videodir)
    num = len(files)
    filename = videodir+'pyvideo'+unicode(num+1)+'.3gp'
    canvas.bind(key_codes.EKeySelect, stop_video)
    camera.start_record(filename,video_callback)

    def stop_video():
    global control_light
    control_light = 0
    camera.stop_record()
    canvas.bind(key_codes.EKeySelect, start_video)

    def quit():
    camera.stop_finder()
    camera.release()
    app_lock.signal()

    canvas = appuifw.Canvas()
    appuifw.app.body = canvas

    camera.start_finder(finder_cb)
    canvas.bind(key_codes.EKeySelect, start_video)

    appuifw.app.title = u"Video RECORDER"
    appuifw.app.exit_key_handler = quit
    app_lock = e32.Ao_lock()
    app_lock.wait()

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Start Developing

    The only thing you can do with the front camera in Python is take a picture, because the take_photo function takes the number of the camera (0 for main, 1 for front) as its last argument. Recording video and other things are not possible.

  6. #6
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Start Developing

    ok thx for that n what about ur project there http://discussion.forum.nokia.com/fo...d.php?t=150923 how may i edit it i already downloaded net.beans 5.5 but dunno how it works to edit the class file! can u plz edit it to record size unlimited if not possible make it 60 megabytes n could the recorded video be saved to the memory card plz

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Start Developing

    Quote Originally Posted by zcreator View Post
    ok thx for that n what about ur project there http://discussion.forum.nokia.com/fo...d.php?t=150923 how may i edit it i already downloaded net.beans 5.5 but dunno how it works to edit the class file! can u plz edit it to record size unlimited if not possible make it 60 megabytes n could the recorded video be saved to the memory card plz
    I'm not really a Java expert. You should ask this in that thread and someone will help you.

Similar Threads

  1. Replies: 1
    Last Post: 2009-03-04, 15:54
  2. Live Video Display and Camera Server Timeouts
    By simonplatt in forum Symbian
    Replies: 2
    Last Post: 2007-08-16, 12:09
  3. Replies: 2
    Last Post: 2007-08-16, 12:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×