image
image

Go Back   macosx.com > Scripts > Apple Scripts

Reply
 
LinkBack Thread Tools
  #1  
Old February 7th, 2008, 12:43 AM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,682
Thanks: 6
Thanked 53 Times in 48 Posts
Mikuro will become famous soon enough
[APPLESCRIPT] Change QuickTime movie aspect ratio

This is a script I've made to easily change the aspect ratio of a movie in QuickTime Player. It presents the user with a dialog box with common ratios, like 4:3 and 16:9, with an option for the user to enter any arbitrary ratio.

I find this very useful for video podcasts from iTunes and movies downloaded from sites like YouTube. For some reason they often have the wrong aspect ratio, resulting in stretched (or smooshed) video. This script lets me fix it easily.

The zip includes both .scpt and .app versions. Personally, I recommend enabling the Script Menu (which you can do from AppleScript Utility, located in /Applications/AppleScript/) and putting it in there. You can even set it up so it only appears in the menu when QuickTime Player is the frontmost application.

This script has been tested with QuickTime 7 in Tiger and Leopard.
Attached Files
File Type: zip Change aspect ratio.zip (31.0 KB, 774 views)
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.8

Useful programs: Privoxy, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
The Following 3 Users Say Thank You to Mikuro For This Useful Post:
B2Y4ever (August 12th, 2008), divinetta (November 15th, 2009), tasman (August 13th, 2009)
  #2  
Old July 30th, 2008, 09:59 PM
Registered User
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ElijahLynn is on a distinguished road
Thanks a bunch - Compressor has been outputting a bunch of mov files that were natively 4:3 and making the people look fat. This fixed it. Quicktime asks if you want to save the file when exiting. When you reopen the saved file it then keeps the correct aspect ratio that you set with your script.

I would like to set this in compressor on the h.264 export but until then at least I can view the real output.

Thanks for your work

I joined just to download and thank you.
Reply With Quote
  #3  
Old August 26th, 2008, 04:00 AM
Registered User
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jle44 is on a distinguished road
this is a glorious manuscript!
Reply With Quote
  #4  
Old August 26th, 2008, 10:03 AM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,671
Thanks: 7
Thanked 383 Times in 365 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Quote:
Originally Posted by jle44 View Post
this is a glorious manuscript!
Hehe... I can't wait for the movie!
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #5  
Old August 27th, 2008, 10:55 PM
Registered User
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ElijahLynn is on a distinguished road
Please help. I applied the script to one of my videos to 4:3 and saved it. Final Cut Pro now shows it as square pixel and 720 x 540.

I need the original footage back to the way it was.

Thanks
Reply With Quote
  #6  
Old August 28th, 2008, 01:11 AM
Registered User
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ElijahLynn is on a distinguished road
How can I manually go into a video file and change a dimension?

Final Cut is showing me it as square pixel when it isn't and also dominant field shows none - it should be lower field.
Reply With Quote
  #7  
Old September 18th, 2008, 06:16 PM
Registered User
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
hindsholm is on a distinguished road
I am sorry to ask a stupid question like this, but I am a new iMac userand I can't figure out how to install the script. It works fine when I execute it, but I would like to have it available on the menu whenever I run QuickTime. What do I do?

TIA
Reply With Quote
  #8  
Old September 18th, 2008, 06:27 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,682
Thanks: 6
Thanked 53 Times in 48 Posts
Mikuro will become famous soon enough
Quote:
Originally Posted by ElijahLynn View Post
Please help. I applied the script to one of my videos to 4:3 and saved it. Final Cut Pro now shows it as square pixel and 720 x 540.

I need the original footage back to the way it was.
Hi. Sorry for the delayed reply; I must have missed your post originally.

You can use the script to change the ratio back to its original ratio. Or, if you have QuickTime Pro, you can also do it manually like this:

- Open the movie
- Sselect "Show Movie Properties" from the Window menu
- Select the video track
- Go to "Visual Settings"
- Un-check the "preserve aspect ratio box"
- Enter the numbers from the "normal size" boxes into the "Scaled Size" boxes and hit Return.
- Save.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.8

Useful programs: Privoxy, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
Reply

Bookmarks

Tags
applescript, aspect, movie, quicktime, ratio

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 01:59 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.