Skip to main content

Python API for Camtasia projects

Project description

A Python API for Camtasia projects.

Quickstart

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:
    print(media.source)

# add a new media to the media bin
proj.media_bin.import_media('path/to/image/or/movie.mov')

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:
    print(track.name)

# list the timeline markers
for marker in proj.timeline.markers:
    print(marker.name, 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.name, marker.time)

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

proj.save()

pytsc

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.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

camtasia-6.3.1-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file camtasia-6.3.1.tar.gz.

File metadata

  • Download URL: camtasia-6.3.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for camtasia-6.3.1.tar.gz
Algorithm Hash digest
SHA256 ba1970801678eb48e9a8e468f5a7b8c067f1f28f872fb3126f20e24b516575a9
MD5 048a7f1aa694da343ed61e9442dad267
BLAKE2b-256 41474d1d12da497314bab1d5c5373158bc7adef4b3ac04af3a480100b6b86591

See more details on using hashes here.

File details

Details for the file camtasia-6.3.1-py3-none-any.whl.

File metadata

  • Download URL: camtasia-6.3.1-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for camtasia-6.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a369f138d23aa26a0e23458d4730d5b06476efcd2374bf0a49f73f1b13435d2
MD5 5e1911c88d7344b239bbabae0ba88212
BLAKE2b-256 915ac7546ba410f63c81ee18b2cb3e332175c557fe87f59a1c6f2daf70687ab4

See more details on using hashes here.

Supported by

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