Skip to main content

Python API for Camtasia projects

Project description

A Python API for Camtasia projects.


To work with an existing Camtasia project, first load it:

import camtasia
proj = camtasia.load_project('path/to/project.cmproj')

The media_bin attribute of Project gives you access to elements in the media bin:

# list the Media in the MediaBin
for media in proj.media_bin:

# add a new media to the media bin

The timeline attribute of Project gives you access to elements on the timeline:

# list the tracks on the timeline
for track in proj.timeline.tracks:

# list the timeline markers
for marker in proj.timeline.markers:
    print(, marker.time)

# print details of media on the timeline
for track in proj.timeline.tracks:
    for media in track.medias:
        print(media.start, media.duration)
        for marker in media.markers:
            print(, marker.time)

And if you have edits to the project that you want to write to disk, use the save() method:


The package also installs a command-line program called pytsc which exposes a lot of the API. You can get help on pytsc with the “-h” flag:

$ pytsc -h

You can also get help on particular subcommands by putting “-h” after the subcommand name:

$ pytsc tracks-ls -h

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

camtasia-6.3.0.tar.gz (18.3 kB view hashes)

Uploaded source

Built Distribution

camtasia-6.3.0-py3-none-any.whl (23.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page