{"id":819,"date":"2015-08-03T00:02:51","date_gmt":"2015-08-03T07:02:51","guid":{"rendered":"http:\/\/www.hdhead.com\/?p=819"},"modified":"2015-08-03T00:15:11","modified_gmt":"2015-08-03T07:15:11","slug":"smpte-timecode-python-module","status":"publish","type":"post","link":"https:\/\/www.hdhead.com\/?p=819","title":{"rendered":"SMPTE Timecode Python Module"},"content":{"rendered":"<p>The SMPTE timecode Python module converts SMPTE timecode to frame count and frame count to SMPTE timecode. It accepts any arbitrary frame rate with 29.976 reserved\u00a0for drop frame calculations.<\/p>\n<p>ValueError exception is raised in case of a malformed timecode or a\u00a0timecode where frame column\u00a0value\u00a0exceeds the specified frame rate.<\/p>\n<p><a href=\"http:\/\/www.hdhead.com\/wp-content\/uploads\/scripts\/smpte.py\">Download SMPTE.py<\/a><\/p>\n<p><strong>Sample Usage<\/strong><\/p>\n<pre>import SMPTE\r\n\r\nfps = 30\r\n\r\nframecount = smpte.fromtc('11:22:38:12', fps)\r\nprint\u00a0framecount\r\n\r\ntimecode =\u00a0smpte.totc(92473, 30)\r\nprint timecode\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The SMPTE timecode Python module converts SMPTE timecode to frame count and frame count to SMPTE timecode. It accepts any arbitrary frame rate with 29.976 reserved\u00a0for drop frame calculations. ValueError exception is raised in case of a malformed timecode or a\u00a0timecode where frame column\u00a0value\u00a0exceeds the specified frame rate. Download SMPTE.py Sample Usage import SMPTE fps &hellip; <a href=\"https:\/\/www.hdhead.com\/?p=819\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SMPTE Timecode Python Module<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-819","post","type-post","status-publish","format-standard","hentry","category-tools"],"_links":{"self":[{"href":"https:\/\/www.hdhead.com\/index.php?rest_route=\/wp\/v2\/posts\/819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hdhead.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hdhead.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hdhead.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hdhead.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=819"}],"version-history":[{"count":6,"href":"https:\/\/www.hdhead.com\/index.php?rest_route=\/wp\/v2\/posts\/819\/revisions"}],"predecessor-version":[{"id":828,"href":"https:\/\/www.hdhead.com\/index.php?rest_route=\/wp\/v2\/posts\/819\/revisions\/828"}],"wp:attachment":[{"href":"https:\/\/www.hdhead.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hdhead.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hdhead.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}