Skip to content

Commit 044f049

Browse files
Moved to Python3. Changed project title to ffprobe3
1 parent a1ff13d commit 044f049

21 files changed

+408
-479
lines changed

.gitignore

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
### Python template
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
env/
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*,cover
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
55+
# Sphinx documentation
56+
docs/_build/
57+
58+
# PyBuilder
59+
target/
60+
### JetBrains template
61+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
62+
63+
*.iml
64+
65+
## Directory-based project format:
66+
.idea/
67+
# if you remove the above rule, at least ignore the following:
68+
69+
# User-specific stuff:
70+
# .idea/workspace.xml
71+
# .idea/tasks.xml
72+
# .idea/dictionaries
73+
74+
# Sensitive or high-churn files:
75+
# .idea/dataSources.ids
76+
# .idea/dataSources.xml
77+
# .idea/sqlDataSources.xml
78+
# .idea/dynamic.xml
79+
# .idea/uiDesigner.xml
80+
81+
# Gradle:
82+
# .idea/gradle.xml
83+
# .idea/libraries
84+
85+
# Mongo Explorer plugin:
86+
# .idea/mongoSettings.xml
87+
88+
## File-based project format:
89+
*.ipr
90+
*.iws
91+
92+
## Plugin-specific files:
93+
94+
# IntelliJ
95+
/out/
96+
97+
# mpeltonen/sbt-idea plugin
98+
.idea_modules/
99+
100+
# JIRA plugin
101+
atlassian-ide-plugin.xml
102+
103+
# Crashlytics plugin (for Android Studio and IntelliJ)
104+
com_crashlytics_export_strings.xml
105+
crashlytics.properties
106+
crashlytics-build.properties
107+
### VirtualEnv template
108+
# Virtualenv
109+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
110+
.Python
111+
[Bb]in
112+
[Ii]nclude
113+
[Ll]ib
114+
[Ss]cripts
115+
pyvenv.cfg
116+
pip-selfcheck.json
117+
118+
# Created by .ignore support plugin (hsz.mobi)
119+
120+
# Other
121+
MANIFEST

CHANGES.txt

-1
This file was deleted.

MANFEST.in

-1
This file was deleted.

MANIFEST

-6
This file was deleted.

README.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ Usage::
77

88
#!/usr/bin/env python
99

10-
from ffprobe import FFProbe
10+
from ffprobe3 import FFProbe
1111

12-
metadata=FFProbe("test-media-file.mov")
12+
metadata=FFProbe('test-media-file.mov')
1313

1414
for stream in metadata.streams:
15-
if stream.isVideo():
16-
print "Stream contains "+stream.frames()+" frames."
17-
15+
if stream.is_video():
16+
print('Stream contains {} frames.'.format(stream.frames()))

build/lib/ffprobe/__init__.py

-1
This file was deleted.

build/lib/ffprobe/ffprobe-test.py

-13
This file was deleted.

build/lib/ffprobe/ffprobe.py

-207
This file was deleted.

ffprobe/__init__.py

-1
This file was deleted.

ffprobe/ffprobe-test.py

-13
This file was deleted.

0 commit comments

Comments
 (0)