FORUMS: list search recent posts

AppleScript app for removing tracks from Quicktime files

COW Forums : Apple OS X

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Drew Lahat
AppleScript app for removing tracks from Quicktime files
on Oct 31, 2012 at 4:05:01 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:
http://www.precisionpost.com/channels/videovillage/2012/10/delete-tracks-from-quicktime-files---applescripting-qt.html


Return to posts index

max rosenheim
Re: AppleScript app for removing tracks from Quicktime files
on Aug 26, 2014 at 7:24:44 pm

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


Return to posts index

Drew Lahat
Re: AppleScript app for removing tracks from Quicktime files
on Aug 26, 2014 at 9:33:52 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:
http://www.drewlahat.com/misc/DeleteQTTracks.zip
http://www.drewlahat.com/misc/DeleteQTTracks.txt

The original page (with brief documentation) can be found at the Wayback machine...

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


Return to posts index


luke sloma
Re: AppleScript app for removing tracks from Quicktime files
on Nov 4, 2014 at 6:27:06 pm

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


Return to posts index

Drew Lahat
Re: AppleScript app for removing tracks from Quicktime files
on Nov 5, 2014 at 7:12:35 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 :-)


Return to posts index

luke sloma
Re: AppleScript app for removing tracks from Quicktime files
on Nov 5, 2014 at 4:10:17 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


Return to posts index


Drew Lahat
Re: AppleScript app for removing tracks from Quicktime files
on Nov 8, 2014 at 4:27:08 am

Let me start with an "Avid question"... why would you need to do that?


Return to posts index

Bouke Vahl
Re: AppleScript app for removing tracks from Quicktime files
on Nov 16, 2014 at 3:55:13 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

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


Return to posts index

max rosenheim
Re: AppleScript app for removing tracks from Quicktime files
on Sep 27, 2015 at 2:42:48 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


Return to posts index


Fede Barberan
Re: AppleScript app for removing tracks from Quicktime files
on Apr 25, 2018 at 1:25:42 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)


Return to posts index

Drew Lahat
Re: AppleScript app for removing tracks from Quicktime files
on Apr 25, 2018 at 9:13:28 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.)


Return to posts index

Fede Barberan
Re: AppleScript app for removing tracks from Quicktime files
on May 1, 2018 at 10:10:57 pm

That line didn't solve my issue. I choose the same path and it returns as an error. 😞

I'm wondering for the default metadata for apple videos, like 'gps info' and so but if thats a major issue, I prefer to address the audio/video removal.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]