summaryrefslogtreecommitdiff
path: root/mediabrowser/ffmpeg.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-01-02 15:05:53 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-01-08 20:38:18 +0100
commit478b2feb875e4ef5a458531c0d24f0b2117f5490 (patch)
tree799ff53e65e3992424e190ee4201500a8862eb71 /mediabrowser/ffmpeg.py
parentd63cdea1618f3e493a966ce43fb735b0afc098b6 (diff)
downloadflask-mediabrowser-478b2feb875e4ef5a458531c0d24f0b2117f5490.tar.gz
flask-mediabrowser-478b2feb875e4ef5a458531c0d24f0b2117f5490.zip
better thumbs, better caching (with filesystem)
Diffstat (limited to 'mediabrowser/ffmpeg.py')
-rw-r--r--mediabrowser/ffmpeg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediabrowser/ffmpeg.py b/mediabrowser/ffmpeg.py
index cd10ae4..d132b24 100644
--- a/mediabrowser/ffmpeg.py
+++ b/mediabrowser/ffmpeg.py
@@ -116,7 +116,7 @@ def calculate_splittimes(ospath, chunk_duration):
def thumbnail(ospath, width, height):
process = LoggedPopen(shlex.split("ffmpeg -v fatal -noaccurate_seek -ss 25.0 -i") + [ospath] +
- shlex.split("-frames:v 10 -map 0:v"
+ shlex.split("-frames:v 1 -map 0:v"
" -filter:v \"scale='w=trunc(oh*a/2)*2:h={}', crop='min({},iw):min({},ih)'\""
" -f singlejpeg pipe:".format(height+(height/10), width, height)),
stdout=PIPE)