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

it is been a long time since you have answer the thread,meanwhile in my last post i solved one problem of my two shorcut (i mentioned in post # 130)

sh -c 'echo "sleep 1; echo 0 > /sys/class/backlight/acx565akm/brightness" | sudo gainroot'

it gave me shortcut of root cmd

now i want one more shortcut 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 (enter)


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)

is it possible to make it from sm ?

also i am not be able to use smsfake as yet(xterminal output has been given in post #111) plz help