![]() |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
Quote:
|
Re: How to make N900's camera a spycam(video recording while screen is locked)?
Quick and dirty way to use the camera api from 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) |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
Here you are:
Code:
gst-launch v4l2camsrc device=/dev/video0 ! 'video/x-raw-yuv,width=800,height=480,framerate=30/1' ! videorate ! ffmpegcolorspace ! jpegenc ! queue ! mux. avimux name=mux ! filesink location=output.avi Slide open the camera, close the camera app, start the script, put it aside; collect it later if it's not stolen, play the output.avi with mplayer, etc. No sound, though, as I'm still not quite familiar with N900's way of dealing with sound. Please advise if anyone knows. May be you could try nicolai's method first. |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
1 Attachment(s)
Quote:
"i opened the lence cover and closed camera app and put your code in xterminal" where is video?(i could not find it in media player) how to know that it has started captruing? where the video is stored? |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
Quote:
You know it'd grow in size so it'd use up your /home/user very soon. Therefore, you should have cd to /home/user/MyDocs first or enter the absolute path in the command such that the video could be stored in a relative large space. The video is start recording once you start the command, and will stop when you break it with CTRL-C. You don't see the playback because OP asked for _stealth mode_. If you wanna see the playback while video-taking, you could use the following: Code:
gst-launch v4l2camsrc device=/dev/video0 ! 'video/x-raw-yuv,width=800,height=480,framerate=30/1' ! tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate ! ffmpegcolorspace ! jpegenc ! queue ! mux. avimux name=mux ! filesink location=/home/user/MyDocs/output.avi Again, no sound! It can be done very easily, as long as I know the sound device of N900. ^^ EDIT: missed the word 'large' |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
the video is not so smooth as camera app does!
however i would like to Thanks all you guys helping me (specially 9000 and nicolai) for your hard work and give your precious time for my little problem! i am now glade tooo much to be helped by all of you genius guys(specially 9000 and nicolai) Our N900 and this community,please keep this alive. THANKS AGAIN! |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
NP. The original video recorder might take advantage of the hardware acceleration somehow. I just pull this command straight from gst-launch man page so it's hardly perfect. ^^
I final figure out how to process sound with gst-launch in N900, but the quality is ever lower as it took even more processing power. Just for you and others reference only: Code:
gst-launch v4l2camsrc device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! queue ! videorate ! ffmpegcolorspace ! jpegenc ! queue ! mux. pulsesrc ! audioconvert ! audioresample ! nokiaaacenc ! queue ! mux. avimux name=mux ! filesink location=/home/user/MyDocs/output.avi |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
Someone mentioned livefocus, I installed it, but I can't find it anywhere?
Where should it be? Widget list?How can I make it work? :confused: |
Re: How to make N900's camera a spycam(video recording while screen is locked)?
Quote:
|
Re: [Solved]How to make N900's camera a spycam(video recording while screen is locked)?
i hv checked nicolai mothode it has sound and good quality!!thanks!
|
All times are GMT. The time now is 11:31. |
vBulletin® Version 3.8.8