Пример #1
0
 def cpl_parse_metadata(self):
     """ Extract CPL common metadata. """
     for cpl in self._list_cpl:
         cpl_node = cpl['Info']['CompositionPlaylist']
         cpl_extract_characteristics(cpl_node)
Пример #2
0
 def test_cpl_no_mainpicture(self):
     cpl = self.parse_and_check_schema('CPL_SMPTE_NO_MAINPICTURE.xml',
                                       'SMPTE')
     cpl_extract_characteristics(cpl['Info']['CompositionPlaylist'])
     self.assertFalse(cpl['Info']['CompositionPlaylist']['Picture'])
Пример #3
0
 def test_cpl_rational_framerate(self):
     cpl = self.parse_and_check_schema('CPL_SMPTE_FRAMERATE_RATIONAL.xml',
                                       'SMPTE')
     cpl_extract_characteristics(cpl['Info']['CompositionPlaylist'])
     self.assertEqual(cpl['Info']['CompositionPlaylist']['FrameRate'], 96)
     self.assertEqual(cpl['Info']['CompositionPlaylist']['EditRate'], 48)
Пример #4
0
 def test_cpl_mainstereo(self):
     cpl = self.parse_and_check_schema('CPL_SMPTE_MAINSTEREOSCOPIC.xml',
                                       'SMPTE')
     cpl_extract_characteristics(cpl['Info']['CompositionPlaylist'])
     self.assertTrue(cpl['Info']['CompositionPlaylist']['Stereoscopic'])