cis: torrent files creation
[living-lab-site.git] / cis / api / base.py
index a57d96d..cff692f 100644 (file)
@@ -232,18 +232,15 @@ class BaseThumbExtractor:
 
         return n_thumbs_extracted
 
-    def get_video_duration(self):
-        """
-        Returns the number of seconds of a video (int/float).
-        """
-        pass
-
     def get_output_file_name(self, index):
         """ Returns the name required as output file name based on index. """
         output_file_name = self.dest_path + self.name \
                 + '_t' + ("%02d" % index) + '.jpg'
         return output_file_name
 
+    def get_video_duration(self):
+        pass
+
 
 class BaseFileTransferer:
     """
@@ -287,3 +284,12 @@ class BaseFileTransferer:
         Class's destructor calls this method.
         """
         pass
+
+
+class BaseAVInfo:
+    @staticmethod
+    def get_video_duration(input_file):
+        """
+        Returns the number of seconds of a video (int/float).
+        """
+        pass