473,385 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Writing Video conference software for Windows

Hi,

I need to write a software that allow to see the desktop and hear the
microphone capture of a remote PC across a network. I need to do that
for a unviresity assignement. The software must run on Windows. Since
I like Python very much I am thinking to write that software in
Python. Do you thinkit is a good choice? Are there libraries for audio
compression (OGG or MP3 or maybe GSM or something like realaudio) and
video compression (btw what can be some good libraries to transmit
images of a desktop in a bandwidth-efficent way?). What about capture
of audio and screen? (Probably i will need some Win32 system call,
there are bindings in Python, aren't they?)

If I needed to write some Python modules in C, would it be difficult?

Can some language like C# or C++ may be better?

Thnx
PAolo

--
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr
Sep 19 '06 #1
7 5433
If you're going to need win32 system access use the win32all python
extension (very, very good extension). Do you need single frame image
capture, or constant video stream? PIL can be used for the first, it
might also be usable for video, I'm not sure. For sound, python comes
with some built in libraries, but you should also take a look at
pysonic http://www.cs.unc.edu/Research/assist/developer.shtml. For the
bandwidth efficiency issue, what type of connection are you using? The
socket module is quite capable of transmiting whatever data you have,
so unless you're thinking of implementing some mini bittorrent like
network in an attempt to save bandwidth I don't know what you can do
about that. There's an extension called IPqueue which might give you
somewhere to start for packet/bandwidth manipulation. Check out The
Vaults of Parnassus, which has a lot of stuff (including ogg/mp3
converters last time a check). Big question, is this supposed to act
like a remote desktop, or just show what's happening? Start by
searching Google, it's very useful.

Paolo Pantaleo wrote:
Hi,

I need to write a software that allow to see the desktop and hear the
microphone capture of a remote PC across a network. I need to do that
for a unviresity assignement. The software must run on Windows. Since
I like Python very much I am thinking to write that software in
Python. Do you thinkit is a good choice? Are there libraries for audio
compression (OGG or MP3 or maybe GSM or something like realaudio) and
video compression (btw what can be some good libraries to transmit
images of a desktop in a bandwidth-efficent way?). What about capture
of audio and screen? (Probably i will need some Win32 system call,
there are bindings in Python, aren't they?)

If I needed to write some Python modules in C, would it be difficult?

Can some language like C# or C++ may be better?

Thnx
PAolo

--
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr
Sep 19 '06 #2
19 Sep 2006 09:42:51 -0700, Jordan <jo************@gmail.com>:
If you're going to need win32 system access use the win32all python
extension (very, very good extension). Do you need single frame image
capture, or constant video stream? PIL can be used for the first, it
might also be usable for video, I'm not sure.
Well I need something like 5-10 fps. An issue is the comression
method: MPEG and friends aren't good (I think) for compressing stuff
with sharp borders. Maybe I could use A sequence of PNG images, but it
isn't a great solution.

For sound, python comes
with some built in libraries, but you should also take a look at
pysonic http://www.cs.unc.edu/Research/assist/developer.shtml. For the
bandwidth efficiency issue, what type of connection are you using? The
socket module is quite capable of transmiting whatever data you have,
so unless you're thinking of implementing some mini bittorrent like
network in an attempt to save bandwidth I don't know what you can do
about that. There's an extension called IPqueue which might give you
somewhere to start for packet/bandwidth manipulation. Check out The
Vaults of Parnassus, which has a lot of stuff (including ogg/mp3
converters last time a check). Big question, is this supposed to act
like a remote desktop, or just show what's happening? Start by
searching Google, it's very useful.
Well the bandwidth issue is most of all related to video compression
(see above). Well maybe 256 kbps would be nice.

It should just show what's happening.
PAolo
Sep 21 '06 #3

Paolo Pantaleo wrote:
Well I need something like 5-10 fps. An issue is the comression
method: MPEG and friends aren't good (I think) for compressing stuff
with sharp borders. Maybe I could use A sequence of PNG images, but it
isn't a great solution.
You probably want to use is VideoCapture for capturing digital video
from e.g. USB webcameras (videocapture.sourceforge.net), Twisted for
asynchronous sockets (twistedmatrix.com), and PyMedia for video and
audio codec (pymedia.org). For GUI and graphics there are a number of
candidates, e.g. PyGTK or PyGame.

Video conference is an I/O bound task (except for the audio/video
codec), and you will consequently gain nothing by using C++ over
Python. The only part that is CPU-bound part (where C++ could
theoretically be better) is the media codec, but you can leave that to
PyMedia's C extensions. Python will most likely not be the bottleneck!

Sure, you could use C++ instead. However, you would quickly be
frustrated with Windows' extremely complex native APIs. E.g. DirectShow
for digital video capture, Winsock for asynchronous sockets,
Microsoft's multimedia APIs for codec, and perhaps MFC for GUI. Using
Python is a good advice!

Sep 21 '06 #4
I need to write a software that allow to see the desktop

That would be the VNC protocol. Don't reinvent the wheel.

VNC is relatively efficient in that it only updates the portions of the
screen that changed.

Maybe this project could be your starting point.
PyVNC
http://bdash.net.nz/blog/2005/07/17/...on-vnc-client/
and hear the
microphone capture of a remote PC across a network.
I need to do that
for a unviresity assignement. The software must run on Windows. Since
I like Python very much I am thinking to write that software in
Python. Do you thinkit is a good choice? Are there libraries for audio
compression (OGG or MP3 or maybe GSM or something like realaudio)
PyMedia can record and it works for mp3 and oggs.
and video compression (btw what can be some good libraries to transmit
images of a desktop in a bandwidth-efficent way?).
See above. You can lossy compress images in VNC.
(Probably i will need some Win32 system call,
there are bindings in Python, aren't they?)
The above modules should take care of everything. BTW, PIL can take
screen shots if you want to do this manually.

You need to create a streaming server for audio. Take a look at Edna, a
streaming MP3 server. http://edna.sourceforge.net/

Also of interest ... Twisted and Shtoom.

And finally... since you are on Windows - you can just try using the
NetMeeting ActiveX control through Python. It already does everything
you want.

Disclaimer: While I tinkered with many of the above, I have not used
most of the above projects recently. These are just leads for you to
explore.

Sep 22 '06 #5
Thnx everybody for the precious help :)

Someone said about VNC... I'll take a look, but since it is an
exercise I need to do it, I can't just say someone else arelady did
that :)

Everything seems quite useful. I forgot two specifications:

1. Screen should be split in small squares and only the changing
squares must be transmitted (Ok it shouldn't be too difficult)

2. The comunication must be in multicast

I will spend some time testing the resources.

PAolo
Sep 22 '06 #6
2006/9/22, Paolo Pantaleo <pa***********@gmail.com>:
Thnx everybody for the precious help :)

Someone said about VNC... I'll take a look, but since it is an
exercise I need to do it, I can't just say someone else arelady did
that :)

Everything seems quite useful. I forgot two specifications:

1. Screen should be split in small squares and only the changing
squares must be transmitted (Ok it shouldn't be too difficult)

2. The comunication must be in multicast
Twisted supports multicast ( example
http://aspn.activestate.com/ASPN/Coo.../Recipe/425975)
>
I will spend some time testing the resources.

PAolo

--
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr
Sep 22 '06 #7
Someone said about VNC... I'll take a look, but since it is an
exercise I need to do it,
Exercises typically need you to implement, not invent (leave that for a
thesis or a dissertation). Rather than invent VNC, you could just
implement it on your own from the specs.

http://realvnc.com/docs/rfbproto.pdf
I can't just say someone else arelady did that :)
No. But you can build upon it :-). Few construct software from the
scratch.

Sep 22 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stefan Tietke | last post by:
Hi all, for a realtime simulation of a video installation we want to use Quicktime to read video data from a file or stream and process the data in a realtime Gameblender model. We are trying...
3
by: DMS | last post by:
I need to create some specifications and budget request for a workstation (G5) and all necessary hardware and software for authoring online college courses. The course material would contain short...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
0
by: Marcel - IDUG Europe 2005 | last post by:
Hi DB2 users, ========================================================================================= We just created a blog dedicated to our upcoming IDUG 2005 Europe Conference (24-28...
1
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of...
2
by: Chrysan | last post by:
Is it possible to use asp.net(web-page) to develop Video conference application? And, all user interfaces are in web-page including the video received and sent, all being displayed on web-page,...
5
by: Juliano.net | last post by:
How can I capture audio and video so I can send them through the internet? I want to create a web conference application.
0
by: Richard Jones | last post by:
Call for Papers --------------- Open Source Developers' Conference 2007 - Brisbane, Australia "Success in Development & Business" OSDC is a grass-roots conference providing Open Source...
0
by: eGenix Team: M.-A. Lemburg | last post by:
Hello, eGenix is looking into organizing a one day conference specifically for companies doing business with Python, Zope and Plone. The conference will likely be held in or close to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.