Commit b427aed4 authored by Niels-Oliver Walkowski's avatar 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
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment