emesene forum
March 11, 2010, 08:31:34 PM *
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 [2] 3
  Print  
Author Topic: Some work towards webcam sending  (Read 10236 times)
kjir
Jr. Member
**

l33tness: 12
Offline Offline

Posts: 8


View Profile Email
« Reply #15 on: October 06, 2008, 02:47:33 AM »

Bugs here, logs would be better to send them to my e-mail (otherwise the thread becomes too long).
Consider that most of the bugs are already known to me
Logged
kjir
Jr. Member
**

l33tness: 12
Offline Offline

Posts: 8


View Profile Email
« Reply #16 on: October 06, 2008, 02:59:38 AM »

I forgot to mention that this is going to work only in linux, support for other platforms will be difficult to implement (or at least test) for me because I only have linux boxes around  Roll Eyes
Logged
jandem
Global Moderator
Sr. Member
*****

l33tness: 31
Offline Offline

Posts: 65

jandemooij@gmail.com
View Profile
« Reply #17 on: October 06, 2008, 08:05:33 AM »

You are doing a very nice job here Smiley

I wrote the rest of the webcam code, so let me know if you have any questions. Btw, is it still lagging for you? I found out that decoding is much faster if I start a separate process for it, so I wonder if it's caused by Python's Global Interpreter Lock or something similar, not sure though..
Logged
kjir
Jr. Member
**

l33tness: 12
Offline Offline

Posts: 8


View Profile Email
« Reply #18 on: October 06, 2008, 11:49:46 AM »

You are doing a very nice job here Smiley

Thank you Smiley

I wrote the rest of the webcam code, so let me know if you have any questions. Btw, is it still lagging for you? I found out that decoding is much faster if I start a separate process for it, so I wonder if it's caused by Python's Global Interpreter Lock or something similar, not sure though..

What I noticed is that the image is not always top quality, but that a big problem, IMHO. Of course user reports will tell if it's too slow or not, for now I'm concentrating on making things work Wink
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9988
Offline Offline

Posts: 2138



View Profile Email
« Reply #19 on: October 08, 2008, 11:23:27 AM »

ow.. good work!



if only my webcam and gstreamer worked in Intrepid Beta i could try it................... lol
Logged
Respawner
Full Member
***

l33tness: 1
Offline Offline

Posts: 42


Ubuntu 9.04 user

respawneral@gmail.com
View Profile WWW Email
« Reply #20 on: October 08, 2008, 12:01:45 PM »

ow.. good work!



if only my webcam and gstreamer worked in Intrepid Beta i could try it................... lol
I'm not alone with this problem I see Grin
Logged
fabioamd87
Hero Member
*****

l33tness: 0
Offline Offline

Posts: 428



View Profile Email
« Reply #21 on: October 10, 2008, 07:20:41 AM »

ati user?
Logged
Respawner
Full Member
***

l33tness: 1
Offline Offline

Posts: 42


Ubuntu 9.04 user

respawneral@gmail.com
View Profile WWW Email
« Reply #22 on: October 10, 2008, 07:30:56 AM »

ati user?
Yes exactly.
Logged
fabioamd87
Hero Member
*****

l33tness: 0
Offline Offline

Posts: 428



View Profile Email
« Reply #23 on: October 10, 2008, 08:51:27 AM »

well, I'm another intrepid user that cant use the webcam  Tongue
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9988
Offline Offline

Posts: 2138



View Profile Email
« Reply #24 on: October 10, 2008, 11:20:25 AM »

how this would be related to ati? O_o i get webcam working in other apps only preloading a library (like /usr/lib/libv4l/v4l1compat.so) but this is not emesene's case Smiley
Logged
Respawner
Full Member
***

l33tness: 1
Offline Offline

Posts: 42


Ubuntu 9.04 user

respawneral@gmail.com
View Profile WWW Email
« Reply #25 on: October 10, 2008, 01:21:46 PM »

Did you try using Cheese for example? (which use v4l2) It makes my computer crash Grin
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9988
Offline Offline

Posts: 2138



View Profile Email
« Reply #26 on: October 11, 2008, 02:35:21 AM »

ok, with today updates everything should be fine again..unfortunately seems that this webcam patch is taking the first device available, that is, in my case, a tv card :p

now i must figure out how to let it take /dev/video1 instead
Logged
fabioamd87
Hero Member
*****

l33tness: 0
Offline Offline

Posts: 428



View Profile Email
« Reply #27 on: October 11, 2008, 02:19:02 PM »

seem that also my webcam now work... but is veeeeery slow, damn ati when relase a xorg 1.4 compatible driver??? Angry
Logged
kjir
Jr. Member
**

l33tness: 12
Offline Offline

Posts: 8


View Profile Email
« Reply #28 on: October 12, 2008, 11:54:16 AM »

now i must figure out how to let it take /dev/video1 instead

If you didn't figure it out on your own yet here is how to do it:

  • Open WebcamDevice.py
  • Find the line self.source = gst.element_factory_make("v4l2src")
  • After that line add this: self.source.set_property("device", "/dev/video1")
  • Enjoy!
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9988
Offline Offline

Posts: 2138



View Profile Email
« Reply #29 on: October 12, 2008, 12:22:27 PM »

ups, sorry! yes i got that working after googling a bit but i forgot to post a reply Smiley thanks anyway for your response! Wink


another problem i had and then i solved was blank window (and blank frames sent).. since my webcam resolution is 352x288 i edited the line

caps = gst.Caps("video/x-raw-yuv, width=320, height=240, bpp=24, depth=24, framerate=30/1") with my own resolution even if i don't know if this is a good fix :p


the problem now is the socket seem autodisconnecting too fast without a good reason :s --edit: because of this, i don't know yet if frames are received correctly but atm i haven't received a positive answer yet :p
« Last Edit: October 12, 2008, 12:25:22 PM by C10uD » Logged
Pages: 1 [2] 3
  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!