{"action":"created","issue":{"url":"https://api.github.com/repos/kieranjol/DCPtranscoder/issues/2","labels_url":"https://api.github.com/repos/kieranjol/DCPtranscoder/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kieranjol/DCPtranscoder/issues/2/comments","events_url":"https://api.github.com/repos/kieranjol/DCPtranscoder/issues/2/events","html_url":"https://github.com/kieranjol/DCPtranscoder/issues/2","id":118220427,"number":2,"title":"Multi-reel transcoding","user":{"login":"kieranjol","id":1127102,"avatar_url":"https://avatars.githubusercontent.com/u/1127102?v=3","gravatar_id":"","url":"https://api.github.com/users/kieranjol","html_url":"https://github.com/kieranjol","followers_url":"https://api.github.com/users/kieranjol/followers","following_url":"https://api.github.com/users/kieranjol/following{/other_user}","gists_url":"https://api.github.com/users/kieranjol/gists{/gist_id}","starred_url":"https://api.github.com/users/kieranjol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kieranjol/subscriptions","organizations_url":"https://api.github.com/users/kieranjol/orgs","repos_url":"https://api.github.com/users/kieranjol/repos","events_url":"https://api.github.com/users/kieranjol/events{/privacy}","received_events_url":"https://api.github.com/users/kieranjol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-21T21:01:27Z","updated_at":"2015-11-22T13:17:07Z","closed_at":null,"body":"Check more Professional multi reel feature DCPS, and what software made them. Stranger land has a Reel ID for each reel. The multi reeler I made in EasyDCP didn't have those reel numbers which makes picking out the reel order a pain. May have to just trust the order they're in in the CPL XML, or go by date modified (awful idea)\r\n\r\n\r\n\r\nThis command in osx works for pulling out the ID for the second reel - Make sure namespace is always the same!?:\r\n\r\n          Kierans-iMac:~ kieranolxml sel -N 'x=http://www.digicine.com/PROTO-ASDCP-CPL-20040511#' -t -v //x:CompositionPlaylist/x:ReelList/x:Reel[2]/x:AssetList/x:MainPicture/x:Id /Users/kieranoleary/Downloads/dcpstuff/CPL_7a13eea0-f90b-4e4f-b5c0-ec15bba6edf9.xml \r\n\r\n     urn:uuid:4ddb5393-9122-409a-9361-eb50b5129353Kierans-iMac:~ kieranoleary$ \r\n\r\nYou'd then need to somehow harass that value in order to find the associated filename in the PKL. there's bound to be an easy way to do that?\r\n\r\nUltimately you wanna write those filenames + path to a concat.txt file."},"comment":{"url":"https://api.github.com/repos/kieranjol/DCPtranscoder/issues/comments/158759014","html_url":"https://github.com/kieranjol/DCPtranscoder/issues/2#issuecomment-158759014","issue_url":"https://api.github.com/repos/kieranjol/DCPtranscoder/issues/2","id":158759014,"user":{"login":"kieranjol","id":1127102,"avatar_url":"https://avatars.githubusercontent.com/u/1127102?v=3","gravatar_id":"","url":"https://api.github.com/users/kieranjol","html_url":"https://github.com/kieranjol","followers_url":"https://api.github.com/users/kieranjol/followers","following_url":"https://api.github.com/users/kieranjol/following{/other_user}","gists_url":"https://api.github.com/users/kieranjol/gists{/gist_id}","starred_url":"https://api.github.com/users/kieranjol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kieranjol/subscriptions","organizations_url":"https://api.github.com/users/kieranjol/orgs","repos_url":"https://api.github.com/users/kieranjol/repos","events_url":"https://api.github.com/users/kieranjol/events{/privacy}","received_events_url":"https://api.github.com/users/kieranjol/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T13:17:07Z","updated_at":"2015-11-22T13:17:07Z","body":"```\r\nimport subprocess\r\nimport sys\r\nimport os\r\n\r\n\r\nfilename = sys.argv[1]\r\ndoc = filename + '.txt'\r\nwd = os.path.dirname(filename)\r\nprint wd\r\nacodec_raw1 = subprocess.check_output(['xml', 'sel', '-N', 'x=http://www.digicine.com/PROTO-ASDCP-PKL-20040311#', '-t', '-m', \"//x:Asset[contains(x:Type,'Picture')]\", '-v', 'x:OriginalFileName', '-n', filename ]).splitlines() \r\ndir_append = wd + '/'\r\nconcat_string = 'file \\'' \r\nconcat_append = '\\''\r\nacodec_raw = [dir_append + x for x in acodec_raw1]\r\n# http://stackoverflow.com/a/2050721/2188572\r\nnewlist = [concat_string + x for x in acodec_raw]\r\nfinalpic = [x + concat_append for x in newlist]\r\nprint finalpic\r\n#http://www.pythonforbeginners.com/files/reading-and-writing-files-in-python\r\nfile = open(doc, \"w\")\r\nfor item in finalpic:\r\n  file.write(\"%s\\n\" % item)\r\n```\r\n\r\nprints what appears to be a functional ffmpeg concat.txt"}}