473,407 Members | 2,314 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,407 software developers and data experts.

video analysis with python

Hi,

I need to write a video analysis tool which extracts statistics from
microsocope video. Essentially what I need is to translate the video data
into numerical matrices. I have been using Python for the past 1.5 years
anytime I could for absolutely everything, because it has every library
imaginable... Alas, I can not find a library for decoding video/using
codecs. The only solution I have been able to come up with is to create
an image sequence and load those in with PIL, however this is not really
feasible as the images are too large (nor is it proffessional).

Is there a library or project that I have missed, or is there a way to
incorporate something like vfw.lib directly? If there isn't I think this
would be a pretty large whole in Python's arsenal. Thanks in advance for
any help.

--
Ashot Petrosian
University of Texas at Austin, Computer Sciences
Jul 18 '05 #1
5 4088
Hello Ashot,
I need to write a video analysis tool which extracts statistics from
microsocope video. Essentially what I need is to translate the video data
into numerical matrices. I have been using Python for the past 1.5 years
anytime I could for absolutely everything, because it has every library
imaginable... Alas, I can not find a library for decoding video/using
codecs. The only solution I have been able to come up with is to create
an image sequence and load those in with PIL, however this is not really
feasible as the images are too large (nor is it proffessional).

Is there a library or project that I have missed, or is there a way
to incorporate something like vfw.lib directly? If there isn't I think
this would be a pretty large whole in Python's arsenal. Thanks in advance
for any help.


1. There is PyMedia (http://pymedia.org/)
2. Maybe you can use the code from VLC (http://www.videolan.org/vlc/)
(using SWIG/PyBoost/Pyrex ...)

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
Jul 18 '05 #2
This helps alot! pyMedia looks perfect. I can't believe I couldn't find
it after a full day of searching.. losing my touch

On Sun, 16 Jan 2005 13:44:27 +0200, Miki Tebeka <mi*********@zoran.com>
wrote:
Hello Ashot,
I need to write a video analysis tool which extracts statistics from
microsocope video. Essentially what I need is to translate the video
data
into numerical matrices. I have been using Python for the past 1.5 years
anytime I could for absolutely everything, because it has every library
imaginable... Alas, I can not find a library for decoding video/using
codecs. The only solution I have been able to come up with is to create
an image sequence and load those in with PIL, however this is not really
feasible as the images are too large (nor is it proffessional).

Is there a library or project that I have missed, or is there a way
to incorporate something like vfw.lib directly? If there isn't I
think
this would be a pretty large whole in Python's arsenal. Thanks in
advance
for any help.


1. There is PyMedia (http://pymedia.org/)
2. Maybe you can use the code from VLC (http://www.videolan.org/vlc/)
(using SWIG/PyBoost/Pyrex ...)

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys


--
--
Ashot Petrosian
University of Texas at Austin, Computer Sciences
Jul 18 '05 #3
Hi

Am 16.01.2005 12:44:27 schrieb Miki Tebeka:
1. There is PyMedia (http://pymedia.org/)


Is this library able to extract single images from a video? AFAICS it
can only convert videos from one format to another. But I didn't try it,
I've looked only in the docu.

Maybe pyVideo (http://www.geocities.com/rtrocca/python/) would be a
solution. But for me the AVIFile-Module doesn't work stable, it
regularly crashes the python-interpreter.

And there is a library for accessing DirectShow called PyDShowCam.

cu boesi
--
|¯|/¯/¯¯¯\|¯| |¯|¯| |¯|/¯/¯¯¯\|¯¯¯¯\|¯¯¯¯| #1671 : icq-intern
http://| / / /¯\ | | | | | | / / /¯\ | (¯) | |¯¯#73628288 : icq-extern
smb://| \ \ \_/ | `¯´ | |__| \ \ \_/ | ¯ /| ¯| boesi111 : aim
ftp://|_|\_\___/|_|¯|_|____|_|\_\___/|_|¯¯ |_|¯ i171 : reallife
Jul 18 '05 #4
On Mon, 17 Jan 2005 08:08:46 +0100, Alexander 'boesi' Bösecke
<bo********@gmx.net> wrote:
Hi

Am 16.01.2005 12:44:27 schrieb Miki Tebeka:
1. There is PyMedia (http://pymedia.org/)


Is this library able to extract single images from a video? AFAICS it
can only convert videos from one format to another. But I didn't try it,
I've looked only in the docu.

Maybe pyVideo (http://www.geocities.com/rtrocca/python/) would be a
solution. But for me the AVIFile-Module doesn't work stable, it
regularly crashes the python-interpreter.

And there is a library for accessing DirectShow called PyDShowCam.

cu boesi


I haven't tried it yet, but yes its pretty full featured library, there is
a tutorial here on extracting images:
http://java.sun.com/products/java-me...ameAccess.html

--
Ashot Petrosian
University of Texas at Austin, Computer Sciences
Jul 18 '05 #5
On Mon, 17 Jan 2005 08:08:46 +0100, "Alexander 'boesi' Bösecke"
<bo********@gmx.net> wrote:
1. There is PyMedia (http://pymedia.org/)


Is this library able to extract single images from a video? AFAICS it
can only convert videos from one format to another. But I didn't try it,
I've looked only in the docu.


Yes, you can extract single images from a video. The package uses the
avformat and avcodec libraries from ffmpeg and it provides rather low
level access to video/audio files. You can access the individual
streams in a file, obtain the stream data and decode the data therein.
What you do with the data is up to your application. Converting the
file into another format is just one such application.

- Matthias -

Jul 18 '05 #6

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

Similar topics

0
by: Chris Esther | last post by:
I discovered what appears to be a copy of Python 2.1 included/embedded? with the video editing system Avid Adrenalin Media Composer (Win XP). In the program directory there is python21.dll and a...
2
by: Olivia Robinson | last post by:
Hi, I am an artist who creates interactive video installations that are controlled using a set of sensors, a microcontroller, computer and video projector. Currently I am using MAX/MSP and Jitter...
2
by: googlemike | last post by:
Is there a video module so that I can write a Linux Python script to record video coming over USB video cams? What about these side-thoughts: * What about recording multiple streams over...
0
by: Simon Brunning | last post by:
QOTW: "The security 'droids have decided that since the MS Office Suite is a 'standard' application then software written in MS Office VBA must be 'safe.' Any other development environments (such...
53
by: john67 | last post by:
The company I work for is about to embark on developing a commercial application that will cost us tens-of-millions to develop. When all is said and done it will have thousands of business...
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...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
1
by: showcaran | last post by:
For a project I need to analysis of web content. So I should get a web page as a input and then decompose information and other objects. Every object may have special processing after decomposition....
40
by: walterbyrd | last post by:
I mean other than sysadmins, programmers, and web-site developers? I have heard of some DBAs who use a lot of python. I suppose some scientists. I think python is used in bioinformatics. I...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.