View Single Post
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#130
hi tiboric!

i want to make two shortcuts
1> echo 0 >/sys/class/backlight/acx565akm/brightness (need sudo gainroot)

2>from my own thread where nicolai helped me to make n900's camera a spy cam(thanks to nicolai)

http://talk.maemo.org/showthread.php?t=71326&page=2


python


import gst
bin = gst.element_factory_make("camerabin")
bin.set_property("videoenc", gst.element_factory_make("dspmp4venc"))
bin.set_property("videomux", gst.element_factory_make("hantromp4mux"))
bin.set_property("audioenc", gst.element_factory_make("nokiaaacenc"))
bin.set_state(gst.STATE_PLAYING)
bin.set_property("filename", "test.mp4")
bin.set_property("mode",1)
#starts recording
bin.emit("user-start")

# wait some time

# stops recording
bin.emit("user-stop")
bin.set_state(gst.STATE_PAUSED)
bin.set_state(gst.STATE_NULL)


i tried both but did not get them work, can you guide plz.
also i am waiting for smsfaker update which did not work for me.