Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cittena
cittena
Commits
b427aed4
Commit
b427aed4
authored
Oct 08, 2018
by
Niels-Oliver Walkowski
Browse files
correct default fps value to 4 instead of 5
I misinterpreted the fps I use for extracting frames with ffmpeg
parent
dbc7400a
Changes
2
Hide whitespace changes
Inline
Side-by-side
itten/helpers.py
View file @
b427aed4
...
...
@@ -37,7 +37,7 @@ import math
# return hc
# TODO fps muss noch implementiert werden
def
time2framenr
(
time
,
fps
=
5
):
def
time2framenr
(
time
,
fps
=
4
):
"""counts the frame index for a given timestamp
time : timestamp needs to have the form [HH:]MM:SS
...
...
itten/movie.py
View file @
b427aed4
...
...
@@ -16,7 +16,7 @@ from . import helpers
# numpy gibt beim Versuch zB. size zu schreiben auch ein AttributeError() aus.
class
Movie
(
object
):
"""main class to interact with the colorspace of movieframes"""
def
__init__
(
self
,
prefix
,
folder
=
'./'
,
fps
=
5
):
def
__init__
(
self
,
prefix
,
folder
=
'./'
,
fps
=
4
):
"""creates an video object holding the frames of the video
Arguments:
...
...
@@ -25,7 +25,7 @@ class Movie(object):
Keyword Arguments:
folder {str} -- folder containing the frames (default: {'./'})
fps {int} -- number of frames per second that were extracted from the movie (default: {
5
}) # before this were 1
fps {int} -- number of frames per second that were extracted from the movie (default: {
4
}) # before this were 1
"""
self
.
_frames
=
Frames
(
folder
,
prefix
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment