Skip to content

Commit a0d7147

Browse files
committed
reconfigured files for packaging.
1 parent d39987e commit a0d7147

File tree

7 files changed

+46
-9
lines changed

7 files changed

+46
-9
lines changed

CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v0.1, 01/06/2013 -- Initial release

LICENSE.txt

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
(The MIT License)
2+
3+
Copyright � 2013 Simon Hargreaves [email protected] Permission is hereby granted,
4+
free of charge, to any person obtaining a copy of this software and associated documentation
5+
files (the �Software�), to deal in the Software without restriction, including without
6+
limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
sell copies of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all copies or
11+
substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED �AS IS�, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

MANFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include *.txt

MANIFEST

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# file GENERATED by distutils, do NOT edit
2+
README.txt
3+
setup.py
4+
ffprobe\__init__.py
5+
ffprobe\ffprobe-test.py
6+
ffprobe\ffprobe.py

README.txt

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
=======
2+
FFProbe
3+
=======
4+
A wrapper around the ffprobe command to extract metadata from media files.
5+
6+
Usage::
7+
8+
#!/usr/bin/env python
9+
10+
from ffprobe import FFProbe
11+
12+
metadata=FFProbe("test-media-file.mov")
13+
14+
for stream in metadata.streams:
15+
if stream.isVideo():
16+
print "Stream contains "+stream.frames()+" frames."
17+

__init__.py ffprobe/__init__.py

File renamed without changes.

ffprobe.py ffprobe/ffprobe.py

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/python
2+
# Filename: ffprobe.py
3+
4+
version='0.1'
25

36
import subprocess
47
import re
@@ -92,12 +95,4 @@ def __init__(self,probe_line):
9295
pass
9396

9497
if __name__ == '__main__':
95-
m=FFProbe("structured_data/EDLs/0001T_pull/0001T_PULL.mov")
96-
for s in m.streams:
97-
if s.isVideo():
98-
framerate=s.frames()/s.durationSeconds()
99-
print framerate
100-
print s.frameSize()
101-
print s.durationSeconds()
102-
print s.frames()
103-
print s.isVideo()
98+
print "Module ffprobe"

0 commit comments

Comments
 (0)