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)
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'])
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)
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'])