Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Apple OS X AppleScript app for removing tracks from Quicktime files

  • AppleScript app for removing tracks from Quicktime files

    Posted by Drew Lahat on October 31, 2012 at 4:05 am

    I usually post questions, but here’s an answer for once:

    There are some scenarios where you want to get rid of audio or video in a bunch of Quicktime files. When syncing audio and video in FCP or Avid, the clips must contain only audio or video tracks, respectively. Perhaps you rolled audio in a video camera and the picture is useless and just takes up space. Conversion can be lossy, slow, and you may lose timecode.

    Deleting tracks is possible (one file at a time) via Quicktime Player’s “Show Movie Properties” feature, but I got very annoyed one day when I had 60 files to process…

    I ended up developing a little app that does just that: it batch-removes video or audio tracks from a list of QuickTime files. It’s also written in AppleScript, which means you can use the source code to modify it in any way you want, and learn how to control Quicktime with AppleScript.

    More info and download:
    https://www.precisionpost.com/channels/videovillage/2012/10/delete-tracks-from-quicktime-files—applescripting-qt.html

    Fede Barberan replied 6 years, 8 months ago 5 Members · 11 Replies
  • 11 Replies
  • Maxr Hopeless

    August 26, 2014 at 7:24 pm

    Donwload link’s broken, would you be as kind as to share that script again?
    =) thanks

  • Drew Lahat

    August 26, 2014 at 9:33 pm

    Indeed, the website has been redesigned just recently so my little section is no more… For now, you can download the application and source code here:
    https://www.drewlahat.com/misc/DeleteQTTracks.zip
    https://www.drewlahat.com/misc/DeleteQTTracks.txt

    The original page (with brief documentation) can be found at the https://www.precisionpost.com/channels/videovillage/2012/10/delete-tracks-from-quicktime-files—applescripting-qt.html“>Wayback machine…

    It also appears that Mac Informer stores a copy of the app, although it hasn’t been validated by me.
    https://macdownload.informer.com/delete-qt-tracks/download/

  • Luke Sloma

    November 4, 2014 at 6:27 pm

    This is great! Is there a way to delete the Timecode tracks as well?

  • Drew Lahat

    November 5, 2014 at 7:12 am

    There is… just open a QT file (in QT Player 7), hit Cmd+J, choose the timecode track and delete it…

    This of course does it one file at a time, not automated. Also note that if you need more QT manipulation capabilities, I recommend VideoToolShed’s QTChange utility. More powerful and useful that my script 🙂

  • Luke Sloma

    November 5, 2014 at 4:10 pm

    Thanks for the reply! I got this far, I was just curious if your script could be altered to batch remove the timecode tracks for, say, 282 clips.

    For whatever reason, QTC won’t strip TC tracks from my ProRes source. However, my version may be out of date.

    luke

  • Drew Lahat

    November 8, 2014 at 4:27 am

    Let me start with an “Avid question”… why would you need to do that?

  • Bouke Vahl

    November 16, 2014 at 3:55 pm

    Eeh Luke,
    You’re referring to QTchange?
    If so, it ‘should’ work. But do note, deleting tracks DISABLES them.
    (since there is no new clip generated, there is only a small change in the metadata of the file.)

    It can’t be a version problem afaik (but you can always download the latest demo, and that’s probably a free upgrade).

    One thing to check, you do have read/write persmissions on the files?

    hth,

    Bouke

    https://www.videotoolshed.com/
    smart tools for video pros

  • Maxr Hopeless

    September 27, 2015 at 2:42 pm

    A bit delayed but wanna say thanks =)
    For those formats that QT doesn’t handle (i.e. hevc) I found using this ffmpeg’s code quite useful – ffmpeg -i [input_file] -vcodec copy -an [output_file]
    A good for y’all

  • Fede Barberan

    April 25, 2018 at 1:25 pm

    Hi there!
    I was trying to use ‘Delete QT Tracks’ but saving the file in the same folder instead of duplicating the file on another one. Is there any workaround for this action?
    Also deleting the ‘Metadata’ will be great too. Or Audio & Metadata for example. Is that hard to accomplish that? Sorry I have no programmer skills.

    OSX Sierra 10.12
    QT Player 7.6.6 (1709)

  • Drew Lahat

    April 25, 2018 at 9:13 pm

    Phew, it’s been a while (6 years, to be exact). ☺ Glad to see this tool is still being useful to some, unfortunately my AppleScripting is a bit rusty and I’m in the midst of several projects, so can’t dive into the code right now.
    For changing the save path, it was a safety feature to prevent you from damaging your precious video if something goes awry. You can always delete the source files… Alternatively, can you just choose the same path to overwrite?

    The place to affect that in the code will be set saveAsFileNamePath to (savePath as text) & outFileName

    As far as deleting metadata, you can’t have a QT file without any metadata – might as well delete the file altogether. So the question is what metadata are you trying to remove. Quicktime can be quite serpentine about its elements, some are easier to access, some are nearly impossible to decipher. (For example, vendors like Sony/Panasonic/etc. can insert their own metadata which is utterly cryptic, and they don’t publish how to read it yourself.)

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy