View Single Post
nicholes's Avatar
Posts: 1,103 | Thanked: 368 times | Joined on Oct 2010 @ india, indore
#39
Originally Posted by disappear View Post
Same here.I rename the both files,also i have python-gst0.10,but when i run the app.after few seconds the screen closed.
try this code in xterminal

type in xterminal "python" and then paste this code by nicolai


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)
__________________
N900 gave me a reason to live in this cruel world

get your smooth live wallpaper today
My YouTube videos