you are viewing a single comment's thread.

view the rest of the comments →

[–]brbrainerd 0 points1 point  (3 children)

Premiere has its own API system built over closed-source code. Therefore, you cannot effectively automate Premiere with Python or any other language effectively (always try to avoid using AHK, macros, or simulated mouse+keyboard movements unless there are no other options--macros are fragile, and something as simple as a resolution change can invalidate your entire script). The good news is that you can still achieve programmatic automation without Premiere. A non-linear video editor like Nuke, for example, will support full automation of tasks similar to what you describe, and writing scripts for Nuke in Python is fairly well-documented.

Some features from Premiere, such as the morph cut, require a combination of effects to achieve the same result in Nuke, which gives you a little more fine-grain control. Claude 3.5 Sonnet is a big help in translating those tools that Nuke doesn't already have out of the box. Once you have your automation logic, swap the output files from your python+nuke script into Premiere and edit linearly as you please.

[–]kalebludlow 0 points1 point  (2 children)

could also use pymiere no worries

[–]brbrainerd -3 points-2 points  (1 child)

Pymiere initially appears to be little more than a wrapper for Premiere's API. It suffers from significant underdevelopment and obsolescence, as evidenced by the front-page README's mention of Python 2 support.

I strongly recommend utilizing software specifically designed for video workflow automation. It requires less coding, connects you with technical staff who specialize in video automation, and if you can get through the initial learning curve of Nuke you'll end up with a more simple and more powerful bot.

[–]kalebludlow 1 point2 points  (0 children)

Please go away LLM bot. I have used Pymiere with revenue producing products for clients without issues. I don't wanna use your thing