|
|
#1 |
|
Triple-A Player
Join Date: Nov 2006
Posts: 62
|
unix command to record audio or movie with quicktime?
I saw this cool little feature and was wondering, what is the unix command to record a movie or audio file with quicktime?
http://www.apple.com/uk/pro/tips/cameratoquicktime.html launch the QuickTime Pro Player, then from the File menu choose New Movie Recording. A QuickTime window will open showing you a preview of what your camera is seeing. Now just click the round red record button at the bottom of the QuickTime window and it starts recording. Click the stop button when you’ve finished and you’ve got an instant QuickTime movie. Last edited by pressure; 12-10-2006 at 03:24 PM. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jan 2002
Posts: 10,677
|
I wasn't aware there was a command line interface for quicktime.
|
|
|
|
|
|
#3 |
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,941
|
You could write an AppleScript to control QT Player and invoke that from a shell script.
__________________
hayne.net/macosx.html |
|
|
|
|
|
#4 | |||||||||||||||||||||||
|
Triple-A Player
Join Date: Nov 2006
Posts: 62
|
how do I start to do this? I have no idea how to write script amd dont know what a shell is |
|||||||||||||||||||||||
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
MVP
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
|
Just tested this. Code:
tell application "QuickTime Player" set nr to (new movie recording) set nr to start recording true delay 10 set nr to stop recording true end tell |
|||||||||||||||||||||||
|
|
|
|
|
#6 |
|
MVP
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
|
Using Haynes Ash shell script
I can set up ash abbreviations to the commands which allows a quick and easy way to do this from the command line. Code:
ash> -abbrev qtr tell application "QuickTime Player" to new movie recording ash> -abbrev qtrst tell application "QuickTime Player" to start recording true ash> -abbrev qtrsp tell application "QuickTime Player" to stop recording true ash> So I created the ~/.ashrc file and saved the commands into it so they would load when ASH starts. Hayne this worked really well. Last edited by mark hunte; 12-10-2006 at 09:17 PM. |
|
|
|
|
|
#7 | |||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,941
|
Note that you could of course have saved these commands into any text file of your choosing (e.g. "qtcmds.txt" or "qtcmds.ash" or whatever) and then used "-source" to bring those commands into the 'ash' environment when needed. By the way (for other readers), the 'ash' scripting environment referred to is: http://hayne.net/MacDev/Ash/
__________________
hayne.net/macosx.html |
|||||||||||||||||||||||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|