From c6082083cf3208180e7aef8d727d272c371c3d74 Mon Sep 17 00:00:00 2001 From: User Jack Date: Thu, 7 Jan 2016 20:26:53 +0000 Subject: default chunk duration to 60 --- mediabrowser/__init__.py | 2 +- mediabrowser/ffmpeg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mediabrowser') 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 -- cgit v1.2.1