Esempio n. 1
0
 def test_parse_codec_line(self):
     f = FFMpeg()
     features, codec_name, desc = ['DES...', 'xsub', 'XSUB']
     codec = f._parse_codec_line(features, codec_name, desc)
     _codec = {
         'xsub': {
             'encoding': True,
             'codec_type': 'subtitle',
             'description': 'XSUB',
             'decoding': True
         }
     }
     self.assertIsInstance(codec, dict)
     self.assertDictEqual(codec, _codec)