Пример #1
0
 def test_list_codecs(self):
     f = FFMpeg()
     codecs = f.list_codecs()
     codec = codecs[0]
     _codec = {
         '012v': {
             'codec_type': 'video',
             'decoding': True,
             'description': 'Uncompressed 4:2:2 10-bit',
             'intraframe_only': True
         }
     }
     self.assertIsInstance(codecs, list)
     self.assertIsInstance(codec, dict)
     self.assertEqual(414, len(codecs))
     self.assertDictEqual(codec, _codec)