src/pyams_media/ffbase.py
changeset 7 b930c820b6cd
parent 0 fd39db613f8b
child 21 1784464dfe62
--- a/src/pyams_media/ffbase.py	Tue Sep 08 16:59:44 2015 +0200
+++ b/src/pyams_media/ffbase.py	Tue Sep 08 17:00:34 2015 +0200
@@ -151,9 +151,9 @@
         for i in range(0, len(input) * 2, 2):
             input.insert(i, "-i")
         if self.__ffmpeg__ == 'ffprobe':
-            input.extend(['-show_streams', '-print_format', 'json'])
+            input.extend(['-show_format', '-show_streams', '-print_format', 'json'])
             probe = self.__exec__(*input)[0]  # stdout
-            metadata.extend(json.loads(probe.decode()).get('streams', []))
+            metadata = json.loads(probe.decode())
         else:
             lines = self.__exec__(*input)[1]  # stderr
             for line in lines.split(b'\n'):