From 427b46ac493d7489c7241033491ffc2fc2f0b842 Mon Sep 17 00:00:00 2001 From: alfonzo1955 Date: Tue, 3 Jun 2014 09:08:49 -0400 Subject: [PATCH 1/3] Fixed Ffmpeg --- pythonbits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbits.py b/pythonbits.py index bbca0e3..5ea47f8 100755 --- a/pythonbits.py +++ b/pythonbits.py @@ -652,7 +652,7 @@ def upload(self): count=0 for stop in stops: imgs.append(TMPDIR+"screen%d.png" % count) - subprocess.Popen([r"ffmpeg","-ss",str((self.duration * stop)/100), "-vframes", "1", "-i", self.path , "-y", "-sameq", "-f", "image2", imgs[-1] ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() + subprocess.Popen([r"ffmpeg","-ss",str((self.duration * stop)/100), "-i", self.path , "-vframes", "1", "-y", "-qscale", "1", "-f", "image2", imgs[-1] ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() count+=1 except OSError: sys.stderr.write("Error: Ffmpeg not installed, refer to http://www.ffmpeg.org/download.html for installation") From 80f8e9d9af7b2d0d76b95d0bd4fdebb245e76e88 Mon Sep 17 00:00:00 2001 From: alfonzo1955 Date: Tue, 3 Jun 2014 09:23:42 -0400 Subject: [PATCH 2/3] qscale should be 0 --- pythonbits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbits.py b/pythonbits.py index 5ea47f8..cf92d02 100755 --- a/pythonbits.py +++ b/pythonbits.py @@ -652,7 +652,7 @@ def upload(self): count=0 for stop in stops: imgs.append(TMPDIR+"screen%d.png" % count) - subprocess.Popen([r"ffmpeg","-ss",str((self.duration * stop)/100), "-i", self.path , "-vframes", "1", "-y", "-qscale", "1", "-f", "image2", imgs[-1] ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() + subprocess.Popen([r"ffmpeg","-ss",str((self.duration * stop)/100), "-i", self.path , "-vframes", "1", "-y", "-qscale", "0", "-f", "image2", imgs[-1] ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() count+=1 except OSError: sys.stderr.write("Error: Ffmpeg not installed, refer to http://www.ffmpeg.org/download.html for installation") From b92a0b977c0e1b43ccc52de44a992b06e10a327d Mon Sep 17 00:00:00 2001 From: alfonzo1955 Date: Tue, 17 Jun 2014 10:01:27 -0400 Subject: [PATCH 3/3] Add uninstall script --- uninstall.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 uninstall.sh diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..c9156f4 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,5 @@ +#! /bin/sh +rm /usr/local/bin/BeautifulSoup.py +rm /usr/local/bin/MultipartPostHandler.py +rm /usr/local/bin/microdata.py +rm /usr/local/bin/pythonbits