summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsan2015-09-29 20:53:09 +0530
committersan2015-09-29 20:53:09 +0530
commit3dd7d68d413256f96a42b46d46c397ef04f2a97e (patch)
tree2ca7420f52df87d20cb761dcac17c7c9f15bda2a
parentdbef89661da7cb5df09c0753a12e7f2f0d9fa6f0 (diff)
downloadspoken-tutorial-forums-master.tar.gz
spoken-tutorial-forums-master.tar.bz2
spoken-tutorial-forums-master.zip
Video encoder changed form 'avconv' to 'ffmpeg'HEADmaster
-rw-r--r--website/helpers.py2
1 files changed, 1 insertions, 1 deletions
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<hours>\d+?):(?P<minutes>\d+?):(?P<seconds>\d+\.\d+?)", stdout, re.DOTALL).groupdict()
info_m = re.search(r": Video: (?P<codec>.*?), (?P<profile>.*?), (?P<width>.*?)x(?P<height>.*?), ", stdout, re.DOTALL).groupdict()