diff options
author | User Jack <jack@garcon.2.localnet.cc> | 2016-01-07 20:26:53 +0000 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-01-08 20:38:18 +0100 |
commit | c6082083cf3208180e7aef8d727d272c371c3d74 (patch) | |
tree | 6611ba69362580e505829a7d71dd565ee6f712f6 /mediabrowser | |
parent | 478b2feb875e4ef5a458531c0d24f0b2117f5490 (diff) | |
download | flask-mediabrowser-c6082083cf3208180e7aef8d727d272c371c3d74.tar.gz flask-mediabrowser-c6082083cf3208180e7aef8d727d272c371c3d74.zip |
default chunk duration to 60
Diffstat (limited to 'mediabrowser')
-rw-r--r-- | mediabrowser/__init__.py | 2 | ||||
-rw-r--r-- | mediabrowser/ffmpeg.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mediabrowser/__init__.py b/mediabrowser/__init__.py index dc7aa16..824d7d8 100644 --- a/mediabrowser/__init__.py +++ b/mediabrowser/__init__.py @@ -96,7 +96,7 @@ def build(root_directory, cache): @cached(cache=cache, keyfunc=lambda ospath: ospath) def splittimes_cached(ospath): - return list(ffmpeg.calculate_splittimes(ospath, 50)) + return list(ffmpeg.calculate_splittimes(ospath, 60)) @cached(cache=cache, keyfunc=lambda path: "ffprobe_{}".format(path)) def ffprobe(path): diff --git a/mediabrowser/ffmpeg.py b/mediabrowser/ffmpeg.py index d132b24..816d546 100644 --- a/mediabrowser/ffmpeg.py +++ b/mediabrowser/ffmpeg.py @@ -103,7 +103,7 @@ def calculate_splittimes(ospath, chunk_duration): """ def calculate_points(media_duration): - pos = min(20, media_duration) + pos = min(60, media_duration) while pos < media_duration: yield pos pos += chunk_duration |