emesene forum
March 14, 2010, 01:23:19 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
  Print  
Author Topic: Webcam receiving  (Read 13727 times)
jandem
Global Moderator
Sr. Member
*****

l33tness: 31
Offline Offline

Posts: 65

jandemooij@gmail.com
View Profile
« on: April 15, 2008, 05:10:21 AM »

Last week i had some free time to get webcam receiving (no sending yet) working. It needs to be optimized and cleaned up a bit, but if you are brave enough to try it.. You have to build the libmimic python module for the webcam video codec first:

- on Debian/Ubuntu: sudo apt-get install build-essential python2.5-dev (other distro's should have similar packages, you have to install gcc and python header files)
- checkout or update emesene trunk from SVN
- cd to emesene directory
- python setup.py build_ext -i
- ./emesene

Do this at your own risk! There are a number of known bugs and trunk builds can be unstable.
If you can't connect, try to forward port 6891 in your router...

Enjoy!
« Last Edit: November 02, 2009, 02:03:04 AM by C10uD » Logged
Master
Full Member
***

l33tness: 0
Offline Offline

Posts: 34


View Profile
« Reply #1 on: April 15, 2008, 06:38:51 AM »

Great! Grin
Logged
DarKprince
Hero Member
*****

l33tness: 12
Offline Offline

Posts: 241


Italians Do It better XD XD


View Profile Email
« Reply #2 on: April 15, 2008, 06:59:28 AM »

COOOOOOOOOOOOl! it works Cheesy:D
Logged
Noran
Sr. Member
****

l33tness: 1
Offline Offline

Posts: 77


View Profile
« Reply #3 on: April 15, 2008, 07:50:11 AM »

after : python setup.py build

Quote
copying plugins_base/currentSong/__init__.py -> build/lib.linux-i686-2.5/plugins_base/currentSong
copying plugins_base/currentSong/Exaile.py -> build/lib.linux-i686-2.5/plugins_base/currentSong
creating build/lib.linux-i686-2.5/onversation_themes
creating build/lib.linux-i686-2.5/onversation_themes/irc
error: can't copy 'onversation_themes/irc/theme': doesn't exist or not a regular file

One solution :

Replace :

Quote
package_data = {'': ['conversation_themes/*/*', 'smilies/*/*',
                           'sound_themes/*/*', 'themes/*/*', 'hotmlog.htm']},

By

Quote
package_data = {'': ['/conversation_themes/*/*', '/smilies/*/*',
                           '/sound_themes/*/*', '/themes/*/*', '/hotmlog.htm']},

in setup.py

I think the slash character can be replaced by any character... Not sure
« Last Edit: April 15, 2008, 08:03:34 AM by Noran » Logged
thur
Hero Member
*****

l33tness: 2
Offline Offline

Posts: 171


View Profile
« Reply #4 on: April 15, 2008, 08:18:32 AM »

that's our employee of the month! =D
Logged
Pete
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 102


View Profile
« Reply #5 on: April 15, 2008, 10:22:31 AM »

This is really good news, i could never imagine that we could see something like this so soon.
Can't wait until we both have sending/receiving support.

But regarding to libmimic wouldn't it be better to use Farsight? i would believe that some day audio will be implemented and then it would be much nicer to just use one library that does both audio & video.
*Keeps emesene much cleaner* http://farsight.freedesktop.org/wiki/
« Last Edit: April 15, 2008, 10:26:34 AM by Pete » Logged
jandem
Global Moderator
Sr. Member
*****

l33tness: 31
Offline Offline

Posts: 65

jandemooij@gmail.com
View Profile
« Reply #6 on: April 15, 2008, 11:07:58 AM »

But regarding to libmimic wouldn't it be better to use Farsight? i would believe that some day audio will be implemented and then it would be much nicer to just use one library that does both audio & video.
*Keeps emesene much cleaner* http://farsight.freedesktop.org/wiki/
As you can read there, the Farsight webcam plugin is very old and doesn't work anymore...
Logged
Pete
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 102


View Profile
« Reply #7 on: April 15, 2008, 11:40:48 AM »

Ahh okay
Logged
guillaume
Guest
« Reply #8 on: April 16, 2008, 06:06:12 AM »

not true. farsight just been implemented in empathy.

http://cass.no-ip.com/~cassidy/blog/index.php/post/2008/04/14/Voice-and-video-calls-with-Empathy

but heh, if it work well with libmimic, no need for something else
Logged
Miles_Teg
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 495


View Profile
« Reply #9 on: April 16, 2008, 07:00:49 AM »

Just a question:
will we ever have python coding of webcam support?

I'm not a programmer at all so I don't understand perfectly the differences between various languages so...if you want to explain to me better this point, I'm ready to learn  Cheesy
Logged
Master
Full Member
***

l33tness: 0
Offline Offline

Posts: 34


View Profile
« Reply #10 on: April 16, 2008, 07:39:19 AM »

I have found some bugs:
1) When someone starts a webcam session, a pop up appears and it asks me if i want to accept it, but there's a bug: it shows the message "Accept webcam from master@***.it?", but that's my email address, not my friend's one.
2) It lags a lot! It can lag up to 20 seconds, and when it stops lagging, it shows the rest of the video at increased speed (it can reduce a video of 5 minutes to a video of 1 minute)
Logged
jandem
Global Moderator
Sr. Member
*****

l33tness: 31
Offline Offline

Posts: 65

jandemooij@gmail.com
View Profile
« Reply #11 on: April 16, 2008, 10:24:59 AM »

Just a question:
will we ever have python coding of webcam support?
No, unlikely. We use the C code only for the webcam video codec. Python is alright for most applications, but it's quite slower than C (because it's interpreted, no typed variables and pointers, etc.). Codecs are CPU-intensive, so I think that porting it to Python would make it too slow. Another reason is that the codec was already written in C, porting it to Python would take extra time and have almost no advantages.

I have found some bugs:
1) When someone starts a webcam session, a pop up appears and it asks me if i want to accept it, but there's a bug: it shows the message "Accept webcam from master@***.it?", but that's my email address, not my friend's one.
2) It lags a lot! It can lag up to 20 seconds, and when it stops lagging, it shows the rest of the video at increased speed (it can reduce a video of 5 minutes to a video of 1 minute)
Yes, known bugs. The second one has to do with the network sockets I think, because the decoding is quite fast.
« Last Edit: April 16, 2008, 10:28:18 AM by jandem » Logged
erikkll
Hero Member
*****

l33tness: -3
Offline Offline

Posts: 172


View Profile Email
« Reply #12 on: April 16, 2008, 12:47:03 PM »

Unfortunately it doesn't work for me, i get a message if i want to accept the cam, and if i do, i just get high cpu usage and after a long time i see 'webcam canceled'

 Angry
Logged
Miles_Teg
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 495


View Profile
« Reply #13 on: April 16, 2008, 01:03:26 PM »

Just a question:
will we ever have python coding of webcam support?
No, unlikely. We use the C code only for the webcam video codec. Python is alright for most applications, but it's quite slower than C (because it's interpreted, no typed variables and pointers, etc.). Codecs are CPU-intensive, so I think that porting it to Python would make it too slow. Another reason is that the codec was already written in C, porting it to Python would take extra time and have almost no advantages.
Ok, very satisfying answer. Thank you Cheesy
Logged
kop
Jr. Member
**

l33tness: 0
Offline Offline

Posts: 8


View Profile Email
« Reply #14 on: April 20, 2008, 04:47:44 AM »

it's very nice.

Congradulations. It works very nice.
Logged
Pages: [1] 2
  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!