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

Video information

Is there a py module, which would get me information of a movie file:
- resolution
- fps
Aug 9 '08 #1
3 2334
On 2008-08-09, dusans <du***********@gmail.comwrote:
Is there a py module, which would get me information of a movie file:
- resolution
- fps
I don't know of one. I use the transcode utilities for this and parse their
output.

-Bill
--
Sattre Press In the Quarter
http://sattre-press.com/ by Robert W. Chambers
in**@sattre-press.com http://sattre-press.com/itq.html
Aug 9 '08 #2
"Bill McClain" <20******************@spamgourmet.comwrote in message
news:g7*********@news1.newsguy.com...
On 2008-08-09, dusans <du***********@gmail.comwrote:
>Is there a py module, which would get me information of a movie file:
- resolution
- fps

I don't know of one. I use the transcode utilities for this and parse
their
output.
Something like:
from subprocess import Popen, PIPE
probe = Popen(("tcprobe", "-i", ip_file), stdout=PIPE,
stderr=PIPE).communicate()[0]

or
from subprocess import Popen, PIPE
probe = Popen(("mplayer", "-identify", "-frames", "0", "-ao", "null",
ip_file), stdout=PIPE, stderr=PIPE).communicate()[0]

First one uses transcode the second one uses mplayer. I normally follow
these with a regexp search on "probe" for the data I want.
I have found mplayer to be more accurate than transcode which seems to have
a problem with some files notably MPEG program streams although it seems to
work fine for elementary streams.

--
Geoff
Aug 11 '08 #3
dusans wrote:
Is there a py module, which would get me information of a movie file:
- resolution
- fps
http://doc.freevo.org/2.0/Kaa#head-9...f2f8e7b0e8ad00

(I haven't used it myself)

Peter
Aug 11 '08 #4

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

Similar topics

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...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
1
by: richardscheff | last post by:
Video selector works for IE but not other browsers. for not IE <object ID='Player' data="video/dodgeball.wmv" type="video/x-ms-wmv" width="320" height="280"> <param name="filename"...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
1
by: David Buckley | last post by:
Does anyone have any example code of converting any type of video to flash video at all using asp.net 2.0 c# web applications. God Bless
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?
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
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...
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
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...
0
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,...
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.