emesene forum
March 14, 2010, 06:02:30 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: REPORT ANY ISSUE HERE - PLEASE CHECK IF THE PROBLEM HAS ALREADY BEEN REPORTED FIRST -- THANKS
 
  Home   Forum   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Webcam on windows  (Read 469 times)
arielj
Global Moderator
Hero Member
*****

l33tness: 22
Online Online

Posts: 843


globitz!


View Profile Email
« on: February 04, 2010, 09:31:59 AM »

I was trying some things and I think i've made some advances, but I need help because I don't know too much about C.

First, i've made some changes to the webcam to remove those xid problems... xid is something for unix, but on windows it can use "handle" instead, so, added checks for os.name and used xid or handle. (attributes for gtk.gdk.drawable http://library.gnome.org/devel/pygtk/2.16/class-gdkdrawable.html)

I intalled gstreamer win builds http://www.gstreamer-winbuild.ylatuya.es/doku.php

And tryied to compile all the .c files on libmimic folder.

The two main problems are:
-I don't know what to tell to gstreamer to get the webcam, it uses v4l2src on the code when creating a pipe, but it's only for linux (v4l2 = video 4 linux 2)
-I can't create a .so with all the .o files compiled (i compiled them using "mingw32-gcc.exe file.c -o file.o -I c:/path_to_python's_include_folder")

If anyone can help me here... Cheesy

I'll post the errors when I get back from work
« Last Edit: February 04, 2010, 03:51:42 PM by arielj » Logged
OpenNingia
Sr. Member
****

l33tness: 2
Offline Offline

Posts: 84


Everybody stand back. I know regular expressions.


View Profile
« Reply #1 on: February 05, 2010, 10:02:02 AM »

try this:

http://videocapture.sourceforge.net/

it should be easier on windows...

here is an example:

http://technobabbler.com/?p=22
Logged

Ningia is like Ninja but worse.
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9988
Offline Offline

Posts: 2144



View Profile Email
« Reply #2 on: February 05, 2010, 10:08:45 AM »

it must use gstreamer in windows, not yet-another-custom-video-lib
Logged
OpenNingia
Sr. Member
****

l33tness: 2
Offline Offline

Posts: 84


Everybody stand back. I know regular expressions.


View Profile
« Reply #3 on: February 05, 2010, 11:50:42 AM »

it must use gstreamer in windows, not yet-another-custom-video-lib

IMHO VideoCapture is better because it use DirectShow ( which is how windows handle video devices ), dont know about gstreamer.
Logged

Ningia is like Ninja but worse.
arielj
Global Moderator
Hero Member
*****

l33tness: 22
Online Online

Posts: 843


globitz!


View Profile Email
« Reply #4 on: February 08, 2010, 05:43:06 PM »

I've tried looking amsn's code, but I have NO idea what they do hahah, I don't understand too much.

Also, I thought that it would be easier, but the only example I found about webcam on google is for linux and the simplest examples for some audio player or something like that crashes here...

I don't know, maybe someone on the amsn2 team finds out and put it on papyon and problem solved Tongue hahaha
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!