From 3dd7d68d413256f96a42b46d46c397ef04f2a97e Mon Sep 17 00:00:00 2001 From: san Date: Tue, 29 Sep 2015 20:53:09 +0530 Subject: Video encoder changed form 'avconv' to 'ffmpeg' --- website/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/helpers.py b/website/helpers.py index 25ee1e7..4198216 100644 --- a/website/helpers.py +++ b/website/helpers.py @@ -8,7 +8,7 @@ def get_video_info(path): import subprocess import re - process = subprocess.Popen(['/usr/bin/avconv', '-i', path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + process = subprocess.Popen(['/usr/bin/ffmpeg', '-i', path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout, stderr = process.communicate() duration_m = re.search(r"Duration:\s{1}(?P\d+?):(?P\d+?):(?P\d+\.\d+?)", stdout, re.DOTALL).groupdict() info_m = re.search(r": Video: (?P.*?), (?P.*?), (?P.*?)x(?P.*?), ", stdout, re.DOTALL).groupdict() -- cgit