×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    2

    help with video recorder

    I have been using this .py in my N70 for video recording.it uses low light from the so-called flash of n70 everytime i vidrecord. is it possible to turn light off while recording? thanks for any help. NOTE: am not familiar with python programing..

    here is the .py file

    # Video recording application
    # (c) Copyright 2007 Jurgen Scheible under terms of GPL
    # This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
    # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    # You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.


    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()

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: help with video recorder

    Hi and welcome to the Python Dibo !

    IMHO, you can not turn the LED light off while recording videos.

    Does it bother you?

    Best regards,
    Croozeus

    PS: Please use the CODE tabs(#) to post CODE in your posts, that helps!
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    2

    Re: help with video recorder

    thanks for the reply. it is just it saves battery life when led light is off. i think led light can be off, i have used eti camcorder 2 in n70, and when it records, no led light on.. though camcorder2 video doesnt comes clean,

    any comments?

Similar Threads

  1. Video recorder application
    By kumar_sai123 in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-12-13, 05:16
  2. Launching Video Recorder
    By amit1878 in forum Symbian User Interface
    Replies: 4
    Last Post: 2003-12-14, 08:35
  3. 3650 Video Recorder - Won't Record
    By johnrid11 in forum Streaming and Video
    Replies: 3
    Last Post: 2003-05-14, 09:18
  4. 3650 Video Recorder - Won't Record
    By johnrid11 in forum General Development Questions
    Replies: 0
    Last Post: 2003-05-13, 00:11

Posting Permissions

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