prey / prey-bash-client

DEPRECATED - Project no longer supported, please consider using https://github.com/prey/prey-node-client instead
GNU General Public License v3.0
868 stars 135 forks source link

Webcam Module - How to fix this problem. #326

Closed BrunoAF closed 11 years ago

BrunoAF commented 12 years ago

Hello Dears,

The Snapshot doesn't work well, just make black pictures in my case. When I did some tests, and check in website i have just black pictures from webcam. I make some tests in another programs like Skype, LifeFrame(asus), Facebook and MSN and the webcam work well, making pictures and movies. I read something about time to cam sync.

What can I do to fix it ?

I installed the program in one directory not default and my system is 64 bits maybe this make difference.

My system : Win 7 64 bits. Notebook Model: Asus K43e drivers used: system32\drivers\ksthunk.sys (original driver) system32\drivers\usbvideo.sys (original driver)

tomas commented 12 years ago

Hello,

Can you try the new snapshot program we're bundling in the next version and let us know if it works? It would really help to know if it works for everyone. You can download the file and read the instructions on this thread from our Google Groups:

https://groups.google.com/forum/?fromgroups#!searchin/prey-security/webcam/prey-security/5QhXMMEiplQ/uCqjp9z4G_EJ

Let us know how it goes!

BrunoAF commented 12 years ago

I will try, and give the answer.

tomas commented 12 years ago

By the way, we packed a new version which includes this fix. Go ahead and try it out!

BrunoAF commented 12 years ago

I'm so sorry, but not worked here, i tried to change the flie "Functions", but the problem is the same. My file functions currently.

we could add dimensions to the image (-w 640 -h 480)

# snapshot.exe adds a .jpg to the out file, so we just put it with no extension
#"$module_platform_path/snapshot.exe" -q 100 "$tmpdir/prey-picture"
"$module_platform_path/prey-webcam.exe" -invalid youcam,cyberlink,google -frame 10 -outfile "$tmpdir/prey-picture.jpg".

In the manager the webcam is described like: Asus 2.0 webcam.

I need help or instructions to change the delay time to start and capture pictures, maybe this is the problem and i don't know how i can fix it.

Anyone ?

Ps.: I installed the newest version of prey.

tomas commented 12 years ago

Hi Bruno,

Are the images exactly like the ones you got with the other program? Can you try increasing the 'frame' parameter and see what happens?

For reference, this is the list of available options for the new binary:

- **outfile**: Name of the output file (default: prey-picture.jpg)
- **framerate**: Framerate of the video stream used to get the picture. It is not recommended to modify the default value (default: 15).
- **height**: Height of the picture. There's not a default value since Prey will try to get max size.
- **width**: Height of the picture. There's not a default value since Prey will try to get max size.
- **frame**: Frame number, from the video stream, to use as the picture (default: 4)
- **invalid**: Comma-separated strings with the invalid input source names (default '').
- **kill_youcam**: If YouCam.exe process is running, then Prey will kill it before trying to get a video device (default: false).
- **debug**: Prints verbose log (default: false)

// cc @cyaconi