Add batch export functionality to Camtasia for Mac

  • 24
  • Idea
  • Updated 7 months ago
  • Implemented
  • (Edited)
Exporting videos as a batch: There should be a feature where I can select multiple Camtasia files and then export them all at once.
Photo of azamsharp

azamsharp

  • 2 Posts
  • 2 Reply Likes

Posted 8 years ago

  • 24
Photo of Kelly Mullins

Kelly Mullins, TechSmith Employee & Helper

  • 2886 Posts
  • 643 Reply Likes
Hello,
Have you tried the Batch Production feature?
You can find that option here within Camtasia Studio:
Camtasia Studio > Tools menu item > Sharing > Batch Production > Batch Production wizard

If you are looking for something else, let us know and we can go from there.

Hope this helps!
Kelly
Photo of azamsharp

azamsharp

  • 2 Posts
  • 2 Reply Likes
I should have mentioned that I am using Camtasia for MAC.
Photo of Kelly Mullins

Kelly Mullins, TechSmith Employee & Helper

  • 2886 Posts
  • 643 Reply Likes
Hello,

OK - good to know. I have changed the product from Camtasia Studio to Camtasia for Mac.

Thanks!
kelly
Photo of Chris

Chris

  • 33 Posts
  • 7 Reply Likes
So, to answer your question, Camtasia:Mac does not have a batch production feature. You have to render each video individually. I would suggest this as a future feature, because I often create a series of videos and would like to have a batch feature that runs all the projects and renders them one after another.

After Effects has a render tool that let's you select several projects and render them one after the other. Something like that would work well for me.
Photo of philstokes03

philstokes03

  • 5 Posts
  • 1 Reply Like
I've been searching for batch export feature in Camtasia for Mac too. Teachers like myself are starting to use screencast feedbacks on our students assignments but its impossible to do for a whole class if you have to wait so long to process each one individually. Better if I can make all my screencasts during working hours, then just let them all batch process overnight or when the computer is not being used.
Photo of David M. Converse

David M. Converse

  • 440 Posts
  • 26 Reply Likes
At this time, Camtasia for Mac does not have a batch production feature. The only way to get batch production would be use Camtasia for Mac in conjunction with our Camtasia Relay product.
Photo of philstokes03

philstokes03

  • 5 Posts
  • 1 Reply Like
Thanks for that David. Any chance that Techsmith would like to offer this free to people who bought Camtasia for mac?? :))) - Seems unfair we miss out on features the windows lot get (Is *that* why it was cheaper? If I'd known there was a features difference I'd have bought the Windows version!)
Photo of Oliver Sturm

Oliver Sturm

  • 5 Posts
  • 11 Reply Likes
I'm considering using Camtasia on the Mac instead of the Windows versions for some recordings I'm doing. However, for each project I will be creating several hours of recorded material in blocks of 5-20 minutes. I used to batch-export these from Camtasia on Windows. I understand the Mac version doesn't have batch export. So how can I handle this? Are there command line options available? Is the Mac version compatible with Automator? Or with Apple Script? Or is it really just usable for simple one-file projects?

Thanks
Oliver

This reply was created from a merged topic originally titled
How can I automate exporting files from Camtasia Mac?.
Photo of Oliver Sturm

Oliver Sturm

  • 5 Posts
  • 11 Reply Likes
Right... well. My question has been merged into this thread, which hasn't seen a response for about a year, and the only actual info in here is that no, Camtasia Mac doesn't have a batch feature. You see, I already knew that, as I'm clearly stating in my question.

I was also asking about command line, Automator or scripting options, which you neglected entirely. I actually thought I was throwing a line by mentioning these - after all, it shouldn't be very hard to implement a command line interface, if your application architecture is any good at all, and that would satisfy many use cases for automation (batch processing as well as using standard settings, another "idea" I found around this board somewhere) easily.

So, can we get a proper reply here please?

Thanks
Oliver
Photo of Rowan Gillson

Rowan Gillson

  • 1 Post
  • 1 Reply Like
Bump. Let's get a batch option for Camtasia for Mac.
Photo of Dave Loodts

Dave Loodts

  • 1 Post
  • 2 Reply Likes
Need this too urgent !
Photo of shannon  sellars

shannon sellars

  • 20 Posts
  • 1 Reply Like
I'd also like it if you could add a batch export feature to Camtasia:Mac. I work in both platforms (PC and Mac, mostly Mac), and would love to see this added to the Mac platform.

Thanks!
Photo of Leonardo de Macedo

Leonardo de Macedo

  • 6 Posts
  • 2 Reply Likes
Someone knows how to write an apple script to accomplish this?
Photo of Stephen Wagner

Stephen Wagner, Employee

  • 650 Posts
  • 173 Reply Likes
It is possible to write an apple script to accomplish this. We do have apple script support. We use it for our own internal testing, but do not consider it really ready for general use. That being said, here is a script that works for me. It will export every .cmproj in a given folder as an mp4. I apologize if Get Satisfaction messes up the formatting.


set myDirectory to "/Users/username/myFolder"

tell application "Finder"
set fl to files of folder POSIX file "/Users/username/myFolder"
end tell
repeat with f in fl
set n to name of f
set offs to offset of ".cmproj" in n
if offs > 0 then
set exportName to (text 1 through offs of n) & "mp4"
tell application "Camtasia 2"
open f
repeat
delay 1
if number of documents > 0 then
if name of first document = n then
exit repeat
end if
end if
end repeat
tell project of first document
export file myDirectory & "/" & exportName
repeat
set shouldExit to not isExporting
if shouldExit then exit repeat
delay 2
end repeat
end tell

end tell
end if
end repeat
Photo of Leonardo de Macedo

Leonardo de Macedo

  • 6 Posts
  • 2 Reply Likes
Statues should be raised in Stephen Wagner honor :-D

Thanks a LOT Stephen. It worked like a charm.

In addition, I saved the script as an application (save as), which enables iCal to run it on a schedule.

Just another "kestion": Is there a way to set up the mp4 parameters in the script?

How about export it to YouTube?

Thanks again, from Brazil.
Photo of sebas0710

sebas0710

  • 3 Posts
  • 0 Reply Likes
i've tried this script and can't make it work.  i am running mac os x 10.8.4  i copied/pasted the script using 'vi' in terminal and trying to run it from shell and it failed.

can someone please let me know how to make it work?  thanks a lot!!
Photo of Stephen Wagner

Stephen Wagner, Employee

  • 650 Posts
  • 173 Reply Likes
The easiest way is to open Applescript Editor and enter the script there.  But if you have already created a script file with 'vi', you should be able to run your script from the command line using the osascript command.

osascript yourscriptfile

You can also add
#!/usr/bin/osascript
as the first line of your script file, and then run it like any other shell script.

I always love to learn that someone else out there still uses 'vi'.  :)


Photo of sebas0710

sebas0710

  • 3 Posts
  • 0 Reply Likes
Great!!  Thanks.  Would you mind letting me know what do I need to change in the script so I can export .mov at 1920x1200?  Thanks a lot!!!
Photo of Chris Jones

Chris Jones

  • 2 Posts
  • 1 Reply Like
BUMP!

This script is working great for me other than the fact the export quality is very poor.  Text is almost unreadable.  I ran a lot of tests and found that if I simply select SHARE > EXPORT then move the slider down to the lowest quality, this gives me a good balance between file size and quality.  It is much more readable then the default setting from this script.  I'm recording a lot of coding examples and need to be able to read the text. 

Is there anyway to specify the export quality, or mimic when I am doing manually, inside the script?

It would be super nice as well if there was even some unofficial documentation of the available applescript commands available even if they are still unstable.  
(Edited)
Photo of Tom Rose

Tom Rose

  • 2 Posts
  • 1 Reply Like
I added a small tweak: closing the file after the export. I found that I could only use the above script on about 20 files before camtasia would crash since they all stay open. I needed to use it on several hundred files and this mod worked for me.

set myDirectory to "/Users/username/path/to/videos"
tell application "Finder"
    set fl to files of folder POSIX file "/Users/username/path/to/videos"
end tell

repeat with f in fl
    set n to name of f
    set offs to offset of ".cmproj" in n
    if offs > 0 then
        set exportName to (text 1 through offs of n) & "mp4"
        tell application "Camtasia 2"
            open f
            repeat
                delay 1
                if number of documents > 0 then
                    if name of first document = n then
                        exit repeat
                    end if
                end if
            end repeat
            tell project of first document
                export file myDirectory & "/" & exportName
                repeat
                    set shouldExit to not isExporting
                    if shouldExit then exit repeat
                    delay 2
                end repeat
            end tell
            close every document without saving
        end tell
    end if
end repeat
Photo of Tom Rose

Tom Rose

  • 2 Posts
  • 1 Reply Like
sebas0710, this script exports the files at the same size that you recorded them. If you want a different size, then record a different size.
(Edited)
Photo of Feroz Sheikh

Feroz Sheikh

  • 1 Post
  • 0 Reply Likes
Hi, thanks for the script. it used to run on Mavericks but not running on Yosemite. 

export command runs without error but doesn't actually start the export. isExporting returns false, so the repeat loop terminates immediately. 

I am running Yosemite, with Camtasia:mac 2.9.1. Anything has changed in the recent release. It used to work in my old machine running Mavericks and Camtasia 2.7. 
Photo of Rich Morrow

Rich Morrow

  • 2 Posts
  • 0 Reply Likes
Tom, that was a Hyyyoooooge help for me & saved me from having to stay up & babysit transcodes all night. Works perfectly on Camtasia 2.7.2 / OS 10.8.3

was able to just change the "mp4" to "mov" to export to mov format.

Where do I mail you a six pack?
(Edited)
Photo of Rich Morrow

Rich Morrow

  • 2 Posts
  • 0 Reply Likes
Dang... spoke too soon... the ".mov" export downsized the video dimensions -- source vid is in 720p (1280x720), but my exported vids came out 640x320. Any ideas on how to resolve?
Photo of philstokes03

philstokes03

  • 5 Posts
  • 1 Reply Like
Stephen, that's awesome! :)

I haven't tested it yet, but assuming it works OK, can I have your permission to re-post this on my blog? (I will give due credit of course while being careful to point out its not a "supported" TechSmith solution).

My blog already hosts a fairly favourable review of Camtasia 2, so it should all be good for Techsmith.

blog url for your ref: http://applehelpwriter.com/product-re...
Photo of MathDreamer

MathDreamer

  • 15 Posts
  • 4 Reply Likes
We need batch processing for the Mac. I'm a teacher. I don't have time to do each file individually.
Photo of Leonardo de Macedo

Leonardo de Macedo

  • 6 Posts
  • 2 Reply Likes
The script is not working :(

When I run it I gets in and infinite loop:

get isExporting of project of document 1

--> true

get isExporting of project of document 1

--> true

get isExporting of project of document 1

--> true

get isExporting of project of document 1

--> true


How can we fix it?

Photo of Stephen Wagner

Stephen Wagner, Employee

  • 650 Posts
  • 173 Reply Likes
isExporting will return true for as long as it takes the project to export.  For large projects, this may take several minutes.   For very large projects, 10 or 20 minutes may be required.

Progress messages will be printed out to console.  They look like this:

3/3/14 3:59:28.456 PM [0x0-0x4f04f].com.techsmith.camtasia2: Export update : 0 0.706443

You can look at those messages to get a sense of how long it will take for the export to finish.

Photo of sebas0710

sebas0710

  • 3 Posts
  • 0 Reply Likes
Hi Stephen,

Personally I love this script and I use it all the time on my mac.  However, I was not able to figure out how to run this script with my advanced export settings.  I'd love to be able to do this since the basic export does not work for me.  Any information on how to customize the script to read my advanced settings?  Thanks!!
Photo of Leonardo de Macedo

Leonardo de Macedo

  • 6 Posts
  • 2 Reply Likes
Thank you Stephen.

You're right. All it takes is a bit of patience.
Photo of Stephen Wagner

Stephen Wagner, Employee

  • 650 Posts
  • 173 Reply Likes
Patience is a virtue. :)

@sabas0710:  There is no way to change the export settings via Apple Script. 

If you have not already, please hit the 'Me Too!' button if you want batch export functionality.  We do pay attention to feature requests when deciding what to work on next.  The Apple Script support was not meant to be the real solution for batch export, we just were sharing that because it is available and can solve some problems people currently have. 
Photo of James

James

  • 4 Posts
  • 2 Reply Likes

Speaking of patience and virtue - it's three years later and Camtasia for mac needs batch exporting more than ever.  With the new .trec format it's impossible to use any other program to handle batch processing; quicktime will load the files with some coaxing if the tsc2 codec is installed but there is no cursor information displayed.  Even with the tsc2 component installed, no other quicktime compatible program will even load the files.

Batch exporting is essential considering the program records to a proprietary format.  It's doubly essential given the laggy and limited editing functionality within the mac edition of the program.  This feature is years overdue and shouldn't require anything more than a couple of days for a decent coder to implement.
Photo of 2551phil

2551phil

  • 2 Posts
  • 0 Reply Likes
@Stephen: what "Me Too" button? I see a "Like" button, is that what you meant?
Photo of Stephen Wagner

Stephen Wagner, Employee

  • 650 Posts
  • 173 Reply Likes
Yeah.  "Like" is what I meant.  My interface looks a little different. :)
Photo of 2551phil

2551phil

  • 2 Posts
  • 0 Reply Likes
Thanks. Consider it pressed. I'm wondering what's the threshold before this request is taken seriously? 
Photo of Simon Johnson

Simon Johnson

  • 3 Posts
  • 1 Reply Like
I'm still waiting for batch export. Is this such an impossible feature to add?
Photo of Chris Jones

Chris Jones

  • 2 Posts
  • 1 Reply Like
Techsmith should know that ignoring their product causes people to shop for alternatives.  I've already replaced snagit with Voila.  Camtasia is next and it won't be long.  In fact Viola may have already replaced Camtasia too.  Doesn't have some of the features of Camtasia but it doesn't require conversion.  Come to think of it I haven't used Camtasia since I bought Viola.  Techsmith was great 10 yrs ago but not so much anymore.  I've been a loyal customer for longer than that but just can't pay the upgrade fees for a reskin.  Super disappointed.  </rant>
Photo of Chad Darby

Chad Darby

  • 1 Post
  • 0 Reply Likes
I would love to have batch export feature :-)
Photo of Mike

Mike

  • 4 Posts
  • 3 Reply Likes
4 years later and dozens of +1's and "Patience is a virtue. :) If you have not already, please hit the 'Me Too!' button" is all we get? There are screen recording applications for half the price on Mac that have had bulk export for long time now.
Photo of Leonardo de Macedo

Leonardo de Macedo

  • 6 Posts
  • 2 Reply Likes
I used Tom Rose script in past successfully, but it's not working on Mac OS 10.11.2 and Camtasia 2.10.4.

When I run it now the files only open and close, without being exported.

Some "wizard of Woz(niack)" knows how to fix it?
(Edited)
Photo of Phil Stokes

Phil Stokes

  • 6 Posts
  • 0 Reply Likes
They seem to have messed up the AppleScript support in the version of Camtasia I have (2.10.4). For one thing, they've hidden the entire AppleScript dictionary. You can edit the sdef file and change all the hidden="Yes" lines to hidden="No" to expose it again, but it doesn't make any sense for them to go to the trouble to provide AS support then deliberately hide it from users.

Even after exposing the dictionary, I can't get the export command to work. It doesn't appear to have changed according to the dictionary entry, and I suspect that someone at TechSmith has just cocked things up and broken NSScriptCommand file in the source code. 

Not positive on that though, so I'll try asking around the AppleScript support community if anyone has any better ideas; however, if it's a TechSmith coding error, there's nothing to be done until they fix it their end.

Of course, if TS support folk would like to chime in here and save the day... :)
(Edited)
Photo of robpercival80

robpercival80

  • 3 Posts
  • 1 Reply Like
Hey guys, I've fixed the Applescript and the below works for me (more details at http://www.robpercival.co.uk/batch-export-for-camtasia-2-on-mac/).

set projDir to choose folder with prompt "Choose a folder with .cmproj files in it" without invisibles

set myDirectory to POSIX path of projDir

tell application "Finder"

set fl to files of alias (projDir as text)

end tell


repeat with f in fl

set n to name of f

if n ends with ".cmproj" then

set offs to offset of ".cmproj" in n

set exportName to (text 1 through offs of n) & "mp4"

tell application "Camtasia 2"

open f

repeat

delay 1

if number of documents > 0 then

if name of first document = n then

exit repeat

end if

end if

end repeat

end tell

tell application "System Events" to tell process "Camtasia 2"

#click menu item "Export..." of menu "Share" of menu bar item "Share" of menu bar 1

repeat

key code 14 using {command down}

delay 0.5

try

tell window n to click button "Export" of sheet 1

exit repeat

end try

# 1 - none; 2 - axraise; 3 - window menu

tell window n to perform action "AXRaise"

#click menu item n of menu "Window" of menu bar item "Window" of menu bar 1

delay 0.1

end repeat

repeat

try

static text "Export finished" of sheet 1 of window n

tell window n to click button "Close" of sheet 1

exit repeat

end try

delay 2

end repeat

end tell

(* 

tell project of first document

export file myDirectory & "/" & exportName

repeat

set shouldExit to not isExporting

if shouldExit then exit repeat

delay 2

end repeat

end tell

*)

tell application "Camtasia 2"

close every document without saving

end tell

end if

end repeat

Photo of Phil Stokes

Phil Stokes

  • 6 Posts
  • 0 Reply Likes
Hey Rob

You need to point out that anyone on 10.9 or later needs to add Script Editor and/or System Events.app to the list of Accessibility apps in Sys Prefs or this will fail.


Best


p
(Edited)
Photo of robpercival80

robpercival80

  • 3 Posts
  • 1 Reply Like
Thanks Phil - I did mention this in the link, but should have added it here too. Cheers.
Photo of Leonardo de Macedo

Leonardo de Macedo

  • 6 Posts
  • 2 Reply Likes
Thanks a lot for sharing robpercival80 and Phil Stokes!
Photo of Phil Stokes

Phil Stokes

  • 6 Posts
  • 0 Reply Likes
You're welcome, and good luck.


Still, if any TechSmith staff happen by this thread (is that the sound of tumbleweed I hear...) they need to understand that Rob's script doesn't fix the problem, it just gets around it by using OS X's GUI scripting capabilities. 


The AppleScript support in Camtasia still needs fixing. The export command should work natively without users having to resort to invoking System Events.


And while they're at it, they could add native support for the batch scripting we've all been asking for... ;)


(Edited)
Photo of jy

jy

  • 7 Posts
  • 0 Reply Likes
I'd also like to see a batch export function added to Camtasia Mac.
Photo of Brooks

Brooks, Camtasia Technical Product Manager

  • 138 Posts
  • 127 Reply Likes
Official Response
Batch Export is being actively worked on by the Camtasia Mac team.

Brooks

Camtasia Technical Product Manager
Mobile Technical Product Manager
TechSmith