diff --git a/README.md b/README.md index 62cb8bd..67368e1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Pytop is a Gtk + Python gui to have a custom desktop interface. # Updates -Added task bar. +convirted to using ffmpeg to generate thumbnail. # Notes ```sudo apt-get install python3 wget steamcmd``` diff --git a/bin/pytop-0-0-1-x64.deb b/bin/pytop-0-0-1-x64.deb index d64625a..e0e02c9 100644 Binary files a/bin/pytop-0-0-1-x64.deb and b/bin/pytop-0-0-1-x64.deb differ diff --git a/src/Pytop/widgets/Icon.py b/src/Pytop/widgets/Icon.py index af1eb42..e7a067a 100644 --- a/src/Pytop/widgets/Icon.py +++ b/src/Pytop/widgets/Icon.py @@ -50,7 +50,6 @@ class Icon: self.generateVideoThumbnail(fullPath, hashImgPth) thumbnl = self.createScaledImage(hashImgPth, self.viIconWH) - if thumbnl == None: # If no icon whatsoever, return internal default thumbnl = gtk.Image.new_from_file(self.SCRIPT_PTH + "../resources/icons/video.png") @@ -175,8 +174,9 @@ class Icon: return None def generateVideoThumbnail(self, fullPath, hashImgPth): + proc = None try: - proc = subprocess.Popen([self.thubnailGen, "-t", "65%", "-s", "300", "-c", "jpg", "-i", fullPath, "-o", hashImgPth]) + proc = subprocess.Popen(["ffmpeg", "-i", fullPath, "-vframes", "1", "-s", "320x180", "-q:v", "2", hashImgPth]) proc.wait() except Exception as e: print("Video thumbnail generation issue in thread:")