473,721 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recording Video with Python

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 multiple USB ports? (Think
in the context of a security system.)

* What about lossy compression?

* What about recording only time slices?

* How would you provide real-time video to a security guard, but then
only write time-sliced, lossy compression to disk, saving disk space
yet providing something very suitable for a security guard to watch
live?

Jul 18 '05 #1
2 2916
go********@hotp op.com wrote:
Is there a video module so that I can write a Linux Python script to
record video coming over USB video cams?
You can open the device and read the images - I've done that before. No
module needed. But I don't remember how things worked - just download the
source for a simple viewer like gcqam and look at what they are doing.

What about these side-thoughts:

* What about recording multiple streams over multiple USB ports? (Think
in the context of a security system.)
No deal, open several devices. * What about lossy compression?
Won't be doable in python in reasonable time - but there might be modules
available for that, or at least libs you can wrap. Make your name honor...
* What about recording only time slices?
Just wait the appropriate interval
* How would you provide real-time video to a security guard, but then
only write time-sliced, lossy compression to disk, saving disk space
yet providing something very suitable for a security guard to watch
live?


Hrm - just _do_ it? But the problems are not on the python side - how is
your guard going to retrieve the images, which bandwidth can he use and so
on.

Basically it boils down to

- do the infrastructure and application functionality in python
- delegate the compression to some c-backend

Network and IO performance _shouldn't_ be too much of a concern using
python, as it uses the underlying system's calls for that. But in the end,
use a profiler :)
--
Regards,

Diez B. Roggisch
Jul 18 '05 #2
go********@hotp op.com wrote:
Is there a video module so that I can write a Linux Python script to
record video coming over USB video cams?


http://videocapture.sourceforge.net/

HTH

T
Jul 18 '05 #3

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

Similar topics

2
4765
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 to program how information collected from the sensors then is used to manipulate pre-recorded video footage. I have been investigating Python as an alternative to using MAX/MSP/Jitter to program the collection of information from the sensors...
0
2141
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 to simulate a large-scale, low resolution media facade using individuell video pixels to control lamps mounted into the facade.
3
2187
by: Jussi Rasku | last post by:
Hello, I'm working on a small web-script that would allow me to remotely setup recordings to my tv-tuner (on my linux box). The idea is simple, but I'm unsure how to accomplish it. The idea: Using PHP generated www-page user could set mencoder to start recording at some specified time. The command is put to the crontab using linux "at" command.
7
2948
by: Seymour | last post by:
I am trying to find a way to sign onto my Wall Street Journal account (http://online.wsj.com/public/us) and automatically download various financial pages on stocks and mutual funds that I am interested in tracking. I have a subscription to this site and am trying to figure out how to use python, which I have been trying to learn for the past year, to automatically login and capture a few different pages. I have mastered capturing web...
7
5452
by: Paolo Pantaleo | last post by:
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...
0
2130
by: suchiate | last post by:
Hi All, Would like to have a discussion regarding the current and near future mobile technologies on whether which technologies have reached a certain capability for doing video streaming and live recording services? Please share :D Thanks.
1
2447
by: hott5hotj | last post by:
Hi guys, I am a complete newbie in flash/actionscript but I have used Java previously. For my project at college I have been asked to improve on a software that has already been developed at beta level for use within the college campus. The software is a video recording software. It should have the functionality to record and store the information on a server. At the moment it has a video player pane on the left, a record command button and...
1
1172
by: hi2Kamal | last post by:
hello guys, I am stuck with a serious problem. I am working on video recording toool same as FRAPS. Can anyone help me how to go about this task. I am current having my research on Direct X but the problem with Direct X is that it is taking huge amount of memory and making my system go very slow. I hope you have all understood my problem. I need some serious guidance or a solutions. Regards Kamal
0
865
by: mansi sharma | last post by:
I added nedia player on mine form. On Button click, In media player video starts. Suppose i write. AXMediaPlayer1.URL="http://www.voanews.com/wm/voa/europe/alba/alba1700vb.asx" Now the Video starts.. I want that on Save_Movie Button, Video that is Running in media player is Saved in computer.can Somebody tell me from where to start??
0
8840
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9367
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9131
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9064
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.