Quicktime Pro Record Webinar Audio
I'd like to record a webinar (audio) that I'm listening to Tomorrow night.. I've been searching the net for a program that can do this ? Can I do it with Quicktime Pro ?
Any helps or explanations would be most appreciated !!
RLB
QuickTime recordings can only be made from input devices and not from what plays through your speakers.
You need an audio capture software app like WireTap.
Similar Messages
-
Quicktime pro recording video playback too fast
I'm using Quicktime Pro to make a video recording with audio using the "Best" settings in the preferences (i.e. h264 encoding). When playing these videos back, the audio sounds good, but the video framerate seems almost x2 the speed as it should be. Below is the output of ffmpeg on one such movie. The output points to the fact that there's a problem with framerates, but I'm not really sure how to interpret it towards getting a solution. Any ideas on how to fix this so that we get audio video sync'd up and at the right speed?
$ ffmpeg -i 1226187784.mov
FFmpeg version SVN-r15792, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration:
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 3. 0 / 52. 3. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Nov 8 2008 00:16:13, gcc: 4.3.0 20080428 (Red Hat 4.3.0-8)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x15bd550]edit list not starting at 0, a/v desync might occur, patch welcome
Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1226187784.mov':
Duration: 00:01:01.57, start: 0.000000, bitrate: 1759 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 640x480, 29.97 tb(r)
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16
Must supply at least one output fileHello,
I think it has something to do with audio settings in your camera.
There's a menu where you can choose 12bits audio or 16bits audio.
Change the setting and try again.
Regards, BJ -
Use QuickTime Pro to extract audio from VCD
Can I use QuickTime Pro to extract the audio from a VCD? after that, I would like to convert that audio file to an mp3.
MPEG Streamclip is exactly what I needed. Thank you!
For others with the same need, here's my workflow for Extracting Audio from a VCD:
* Pop the vcd into a computer and open it up.
* Navigate to the MPEGAV folder. You should see something like AVSEQ01.DAT.
* rename that to AVSEQ01.mpg
* Drag this new .mpg file into MPEG Streamclip
* File/Export Audio . . .
* Open up Audacity (optional)
* File/Open . . .
* direct it to the newly created .mp3
* Trim off any extra audio (I didn't want the opening credits, etc. on the .mp3)
* File/Export as .mp3 -
QuickTime Pro recording Desktop, finder
I have a simple question, before I buy QuickTime Pro.
I need to be able to record everything that happens on my desktop, I need to do a few tutorials of different programs and want to record everything that takes place on my monitor.
Is this possible with QuickTime Pro. ??There's a nice rundown of many of the current options posted here.
http://www.tuaw.com/2008/05/05/tuaw-faceoff-screenshot-apps-on-the-firing-line/
I enjoy using ScreenFlow. -
Quicktime screen record no audio
i love the new quicktime where you screen record but how do you have it record the audo thats playing through the sytstem? thre is o preference for system and the mic is not where i want to record the audio from screen record
thanksHi --
Have just tried both methods, and am pleased to report that both worked on my MacBook (once I clued in to the fact you need to leave the volume slider OFF in the little QuickTime X Screen Recording window!)
As a footnote, with Soundflower, I found it was best to set both its Input and Output volumes in Sys Prefs at maximum. (Switching either the Input or Output pref back to one of the other options returns the volume setting to wherever you left it for that option.)
One question though:
Is there a way -- using the Soundflower method -- to also hear the sound AS you're doing the screen recording, instead of only when you play the QT X file afterwards?
I was able to use a 1/8" splitter from the headphone jack, with one side looping back to the Line In as described, and the other feeding some actual headphones for me to listen in on. But for situations where those cables don't happen to be handy, I'm curious to know if there's any way to listen in while doing a screen recording using the all-internal Soundflower solution. Has anyone managed that?
John Bertram
Toronto -
Quicktime Pro recording video - dimensions presets
It appears that the QT Pro presets for recording video (all two options) depend in part on what maching you're using it on -
On my G5, the videos recorded are 320 X 240, which is fine for my purposes... but on my Powerbook (with which I'll be doing the actual recording), the videos are 240 X 180, which is too small for my purposes.
Has anyone discovered a way to change these settings? Or to "fool" QT Pro into thinking it's on a different machine so that it will allow for larger dimensions?
Failing that - any suggestions for other software to record 3-4 hour meetings using an iSight and a Powerbook? (I've tried BTV, but can't get the file size to quality ratio anywhere near as good as QT Pro, and BTV seems to create huge swap files or something that make several hours of recording impossible).
G5 Dual 2Ghz; 12 AlBook; iPod 3rd Gen Mac OS X (10.4.4)Thanks, QuickTimeKirk... I've got SnapzPro and gave it a shot, having it record the QT Pro record window (without having QT record, of course)... but one of the things I like about using QT Pro itself is that it appears to do the capture and the compression all at once -- i.e. no post-processing needed. This is ideal because the plan is to copy the movie to a USB thumb drive for the client at the end of the session; waiting for a 3 hour video to save and convert/compress won't work (hence something like iVezeen, while good, won't do).
Anyway, I have managed to change the dimensions via the .plist file that applies to my Powerbook. The next thing I want to try to change (if possible) is the framerate - it doesn't really need to be as high as it is for our purposes, and would cut down size (and processing cpu usage?) if I could reduce it to 15 or 20fps. I can't find that setting anywhere in the .plist files though.
Any ideas?
Thanks,
Scott
G5 Dual 2Ghz; 12 AlBook; iPod 3rd Gen Mac OS X (10.4.4)
G5 Dual 2Ghz; 12 AlBook; iPod 3rd Gen Mac OS X (10.4) -
QuickTime Pro 7 No Audio on Export
Hello!
I've browsed the forum to see if my question has been asked before but didn't find anything.
This is what's happening. Out of 10 or so short clips (about 1 min) I made one 10 minute clip for youtube, by copying and pasting all of the clips toghether. So far so good, I have my 10 minute movie with audio and video. The problem comes when I try to export it from movie to quicktime movie format...only the first couple of mintues have sound, afterwards it's a silent movie, no audio can be heard.
When I've pasted only 3 or 4 clips together everything's been fine. This is the first time I paste so many vids together.
All the clips were recorded on the same camera and are of the same format.
Hope you can help me out.
Cheers,
Santiago.
Message was edited by: coolsanMy camera gives me movies in MPEG1 Muxed format. I have good video AND audio. But, when i try to downsize these movies by export or share (within QT Pro), there is no audio settings allowed. So i get smaller sized movies with NO AUDIO!MPEG-1 employs interspersed blocks of audio and video data in a single data stream for spatial synchronization. QT is temporally synchronzed "frame-to-frame" audio and video. These are two different technologies. Basically, this means that QT only supports MPEG-1 movies for playback -- not editing and conversion. Use a third-party MPEG based converter like MPEG Streamclip (free) to convert these file and retain audio.
-
QuickTime Pro - Annotations for audio
I have started using QT Pro recently, was successful in recording a speech, added annotations, and saved it as a .mov file. Later I exported that file as a .m4a (mpeg-4 audio file)and it lost all the annotations. Have tried exporting it as mp4 (mpeg-4 Movie) and it won't keep the annotations. What am I doing wrong? Is it not supported in audio files? If not, any suggestions on how to add annotations to an audio file?
TIA.I got them from my friend who just sent them over to me through the internet. He imported them from his Panasonic HVX200 HD Camera into Final Cut Pro, then sent me the raw files.
The "Format" under Movie Inspector is as follows:
DVCPRO HD 720p60, 960 x 720 (1248 x 702), Millions
16-bit Integer (Big Endian), Center, 48.000 kHz
16-bit Integer (Big Endian), Center, 48.000 kHz
16-bit Integer (Big Endian), Center, 48.000 kHz
16-bit Integer (Big Endian), Center, 48.000 kHz
Please let me know if that helped any.
Thank you! -
QuickTime: Screen Recording with audio from Flash video?
I saw a short flash video on a website that I wanted to save. SO I tried using the new QuickTime's Screen Recording feature, but no matter what options I use (Line input or Internal microphone), I get no audio.
Is this because Flash won't allow it, or am I doing something wrong?just figured this out myself today. you're on right track.
open system pref and go to SOUND - got to OUTPUT tab and choose soundflower (2ch) as your OUTPUT
open safari and open a new window - drag SWF file into that. it should play in the browser window. hit pause on the video.
open quicktime. go to NEW SCREEN RECORDING, and use the arrow to the right to open options. Choose sound INPUT as soundflower (2ch). do not raise the volume in the record window - keep it at lowest possible else you'll get an echo.
you are ready to roll.
so the browser will be outputting sound to soundflower, whilst the quicktime screenrecord gets input from soundflower. works like a charm. sounds great.
good luck.
keywords: convert SWF to MOV files convert flash to quicktime
Message was edited by: California Matt -
Quicktime screen recording with audio
i want to record audio that is played by a software running on Mac when recording the screen.
there seems four microphone setting: none, built-in input, soundflower 16ch and 2ch. but none of them worked properly.
i found a software called iShowU that can record audio but not free.
is there anyway to record screen and audio with quicktime?I would think soundflower could do this as screenium uses it to do just what you are saying. But I have not been able to do it natively on QT X
-
Quicktime Pro Applescript - Assign audio channels
Hi, I have been trying to find an applescript which would open a Quicktime Prores file which has multiple audio tracks in, either 8 mono tracks or 6 mono and one strereo track, currently all audio tracks by default have the 'Channels' assigned to mono. I currently have to go in and manually assign every track, using the dropdown menu to Left, Right, Center, LFE, Left Surround, Right Surround, Left Total, Right Total, but was wondering if this could be done with an Applescript as I have lots of these files to do regually. Another post I saw was able to change the 'name' of the tracks but not the 'Channels'.
I am on Mavericks with Quicktime 7 Pro.
Kind regards.Hello
If I understand it correctly, the script listed below will do the job.
Please edit the channel_layouts_map1 and channel_layouts_map2 as you see fit. The former is for 8 mono tracks and the latter is 6 mono tracks and 1 stereo track. Each entry in the map consists of a list of three items such that -
item 1 = (string or int) name of index of target sound track
item 2 = (string or int) new name for target track (int i denotes original name of sound track i)
item 3 = (list) list of audio channel layout(s) in the target sound track
Currently, script will remap the audio channel layouts and rename the sound track as specified. If you don't want to rename the tracks, specify the same value for item 1 and item 2.
If the script is run in AppleScript Editor, it will ask you to choose movie file(s). If it is saved as applet (droplet), you may drag-and-drop movie file(s) onto it. It uses GUI scripting to reassign audio channel layouts, so you need to enable GUI scripting, that is a bit complicated under 10.9.
cf.
OS X: Using AppleScript with Accessibility and Security features in Mavericks
http://support.apple.com/kb/HT5914
Briefly tested with QuickTime Player Pro 7.6.6 (1710) (QuickTime version 7.6.6 (1800)) under OS X 10.6.8.
* Script will override the original files. Please make sure you have backups of original files.
Hope this may help,
H
remap audio channel layouts.applescript
v0.1
on run
open (choose file with prompt ("Choose movie file(s)") ¬
of type {"com.apple.quicktime-movie", "public.mpeg-4"} ¬
with multiple selections allowed)
end run
on open aa
set channel_layouts_map1 to {¬
{"Sound Track 1", "Left", {"Left"}}, ¬
{"Sound Track 2", "Right", {"Right"}}, ¬
{"Sound Track 3", "Center", {"Center"}}, ¬
{"Sound Track 4", "LFE Screen", {"LFE Screen"}}, ¬
{"Sound Track 5", "Left Surround", {"Left Surround"}}, ¬
{"Sound Track 6", "Right Surround", {"Right Surround"}}, ¬
{"Sound Track 7", "Left Total", {"Left Total"}}, ¬
{"Sound Track 8", "Right Total", {"Right Total"}} ¬
set channel_layouts_map2 to {¬
{"Sound Track 1", "Left", {"Left"}}, ¬
{"Sound Track 2", "Right", {"Right"}}, ¬
{"Sound Track 3", "Center", {"Center"}}, ¬
{"Sound Track 4", "LFE Screen", {"LFE Screen"}}, ¬
{"Sound Track 5", "Left Surround", {"Left Surround"}}, ¬
{"Sound Track 6", "Right Surround", {"Right Surround"}}, ¬
{"Sound Track 7", "Left Total + Right Total", {"Left Total", "Right Total"}} ¬
repeat with a in aa
set f to a's POSIX path
set k to count_sound_tracks(f, {_close:false})
if k = 8 then
remap_audio_channels(f, channel_layouts_map1)
else if k = 7 then
remap_audio_channels(f, channel_layouts_map2)
else
-- ignore it (just close it)
close_document(f, {_save:false})
end if
end repeat
end open
on count_sound_tracks(f, {_close:_close})
string f : POSIX path of QT movie
boolean _close: true to close document, false othewise
tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
open (f as POSIX file)
tell (document 1 whose path = f)
repeat until exists
delay 0.2
end repeat
set k to count (tracks whose audio channel count > 0)
if _close then close
end tell
end tell
return k
end count_sound_tracks
on close_document(f, {_save:_save})
string f : POSIX path of QT movie
boolean _save: true to save document (if modified), false othewise
tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
tell (document 1 whose path = f)
if exists then
if _save and modified then save
close
end if
end tell
end tell
end close_document
on remap_audio_channels(f, channel_layouts_map)
string f : POSIX path of source movie
list channel_layouts_map : list of {trk, trk_new, layouts}
trk = (string or integer) name or index of source sound track
trk_new = (string or integer) new name for source track (integer i denotes original name of sound track i)
layouts = list of audio channel layout for channel(s) in source sound track
Mono
Left
Right
Center
LFE Screen
Left Surround
Right Surround
Left Center
Right Center
Center Surround
Rear Surround Left
Rear Surround Right
Left Total
Right Total
Discrete-0
Discrete-1
Unused
e.g. 1
{{"Sound Track 1", "Left", {"Left"}}, ¬
{"Sound Track 2", "Right", {"Right"}}, ¬
{"Sound Track 3", "Center", {"Center"}}, ¬
{"Sound Track 4", "LFE Screen", {"LFE Screen"}}, ¬
{"Sound Track 5", "Left Surround", {"Left Surround"}}, ¬
{"Sound Track 6", "Right Surround", {"Right Surround"}}, ¬
{"Sound Track 7", "Left Total", {"Left Total"}}, ¬
{"Sound Track 8", "Right Total", {"Right Total"}}}
e.g. 2
{{1, 1, {"Left", "Right"}}, ¬
{2, 2, {"Center", "LFE, Screen"}}, ¬
{3, 3, {"Left Surround", "Right Surround"}}, ¬
{4, 4, {"Left Total", "Right Total"}}}
* this handler behaves as follows:
1) open f
2) scan sound tracks of document 1 for each trk and remap the track's audio channel layouts as specified
3) scan sound tracks of document 1 for each trk and rename the track as specified
4) save and close document 1
* if specified trk is not found, it is ignored and no remapping is performed on the track.
* if specified layout is not found, it is ignored and no remapping is performed on the layout.
* if specified layout count is greater than channel count of the target track, excessive layouts are ignored.
* if specified layout count is smaller than channel count of target track, excessive channels are ignored.
* if trk and trk_new denotes the same track, renaming is not performed on the track.
script o
property map : channel_layouts_map
property pp : {}
property qq : {}
-- get name and id of sound tracks
tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
activate
open (f as POSIX file)
tell (document 1 whose path = f)
repeat until exists
delay 0.2
end repeat
tell (tracks whose audio channel count > 0)
set {pp, qq} to {name, id} -- name and id of sound tracks
end tell
end tell
end tell
-- remap audio channel layouts as specified
tell application "System Events"
tell (process 1 whose bundle identifier = "com.apple.quicktimeplayer")
-- open movie properties window
keystroke "j" using {command down}
tell (window 1 whose subrole = "AXDialog") -- properties for movie
repeat until exists
delay 0.2
end repeat
repeat with m in my map
set {trk, undef, layouts} to m
-- [TRK:
repeat 1 times
if trk's class = integer then
if trk < 1 or trk > (count my pp) then exit repeat -- TRK:
set trk to my pp's item trk
end if
tell scroll area 1
tell table 1
tell (row 1 whose text field 1's value = trk) -- target sound track whose name = trk
if not (exists) then exit repeat -- TRK:
select
end tell
end tell
end tell
tell tab group 1
click radio button 3 -- audio settings
tell scroll area 1
tell table 1 -- channel assignment table
set ix to count layouts
repeat with i from 1 to count rows
if i > ix then exit repeat
tell row i -- channel i
tell pop up button 1
click
tell menu 1 -- channel assignment menu
tell (menu item 1 whose title = layouts's item i)
if exists then click
end tell
end tell
end tell
end tell
end repeat
end tell
end tell
end tell
end repeat
-- /TRK:]
end repeat
-- close movie properties window
click (button 1 whose subrole = "AXCloseButton")
end tell
end tell
end tell
-- rename sound tracks as specified
tell application id "com.apple.quicktimeplayer"
tell document 1
repeat with m in my map
-- [RENAME:
repeat 1 times
set {x, y} to m's items 1 thru 2 -- {old name or index, new name or index}
if x's class = integer then
if x < 1 or x > (count my pp) then exit repeat -- RENAME:
else
set x to my _index_of(pp, x)
if x = 0 then exit repeat -- RENAME:
end if
if y's class = integer then
if y < 1 or y > (count my pp) then exit repeat -- RENAME:
set y to my pp's item y
end if
set p to my pp's item x
set q to my qq's item x
if p ≠ y then set track id q's name to y
end repeat
-- /RENAME:]
end repeat
if modified then save
close
end tell
end tell
end script
tell o to run
end remap_audio_channels
on _index_of(xx, x) -- renamed _bsearch() v0.1
list xx : source list
anything x : item to be searched in xx
return integer : the first index of x in xx if {x} is in xx, or 0 if not.
script o
property aa : xx
local i, j, k
if {x} is not in my aa then return 0
set i to 1
set j to count my aa
repeat while j > i
set k to (i + j) div 2
if {x} is in my aa's items i thru k then
set j to k
else
set i to k + 1
end if
end repeat
return i
end script
tell o to run
end _index_of -
Quicktime Pro Recording - Disable Horizontal Flipping?
Hi there,
Is there any way to disable QPro (7) from automatically flipping the video horizontally when recording with iSight?
Thanks!Claude,
You have strayed into the iWork '08 Pages discussion area. You might want to post again in the correct area.
Regards,
Jerry -
Audio upsampling in Quicktime Pro: Best export settings for Final Cut?
I'm using Quicktime Pro to convert audio from 32 kHz to 48 kHz, for use in FCE/FCP. Quicktime gives me several options for export settings. I want to make the conversion lossless, without increasing the size of the audio file too much.
These are the settings I'm using so far:
Format: Linear PCM
Channels: Stereo (L R)
Rate: 48 kHz
Sample Rate Converter Settings: Quality: Best
Linear PCM Settings: Sample size: 16 bits
Are these settings the best choices? Does anyone have experience doing this kind of upsampling?
Here are the other options in Quicktime:
Format: Linear PCM, A-Law 2:1, IMA 4:1, MACE 3:1, MACE 6:1, QDesign Music 2, Qualcomm PureVoice, and mu-Law 2:1
Channels: 2 Discrete Channels, Mono, Stereo (L R)
Rate: there are other choices, but I know 48 kHz is what I want
Advanced Settings:
Sample Rate Converter Settings: Faster, Fast, Normal, Better, Best
Linear PCM Settings (when Linear PCM is the format): 8 bit, 16 bit, 24 bit, 32 bit (floating point checked), 32 bit (floating point unchecked).
The file size grows quickly as you increase the Linear PCM bit settings.You can't create something that is not in the file.
Moving from 32kHz to 48 will only make the file size
larger and can't improve the audio.
Doesn't FCP or FCE import your file at 32. Or does it
change it to 48 after import?
I am aware that increasing the audio from 32 kHz to 48 kHz will not improve the quality of the audio. And yes, Final Cut Pro and Express will both capture and allow you to work witih 32 kHz audio.
I have several hours of video shot with 32 kHz audio settings that I'd prefer to have stored on disk with 48 kHz audio, because (a) some applications like iMovie have demonstrated problems with 32 kHz audio in the past, and (b) the majority of my video is shot with 48 kHz audio, so my 32 kHz video will eventually end up in a 48 kHz project, leaving the upsampling to Final Cut. Yes, I do eventually plan to burn my projects to DVD as well, but this isn't an immediate concern.
The problem with doing the conversion in Final Cut is this: Some of the people knowledgeable about Final Cut Pro and Express recommend doing the upsampling using Quicktime or another application, instead of using Final Cut, because Final Cut may not do as good a job as Quicktime. So my intention is to upsample the audio now in preparation for later projects. I don't completely understand why Final Cut wouldn't do as good of a job at upsampling, but a couple of experienced users in the FCP and FCE forums have independently corroborrated this.
Thanks to everyone for their helpful posts and responsiveness.
PowerMac G5 Quad 2.5 GHz 3GB RAM Mac OS X (10.4.5) NVIDIA GeForce 7800GT
Message was edited by: Anthony M Kassir MD -
Can anyone help with Quicktime Pro audio prob?
I've been trying to compress an audio/video file shot on my Cybershot so that I can upload on a contest website. Every time I copy into I-Movie, I have no audio (although it plays fine on my desktop). I was told I-Movie does not support muxed streaming. At Apple's recommendation, I upgraded to Quicktime Pro.
The audio and video both work fine when I play it in Quicktime Pro; but when I export it from Quicktime to either MPEG4 or Quicktime Movie, I get no audio. (Also, the audio setting area is grayed out.) Any suggestions? I need to send the file 320X240 around 15 mb by midnight tonight.
Thanks for the help...Use the "Export to DV" option. (Any of the sub options will work.) Split into segments if needed for older versions of iMovie.
-
QuickTime Pro Scripting - Audio Channel Mapping
Does anyone know if there is a way to script audio channel mapping and renaming in QuickTime Pro 7? I deal with a lot of 5.1 audio that needs to be channel mapped and renamed to its specific channel for iTunes uploading. I'm currently doing this task manually in QuickTime Pro, but I'd love to know if there is a possibility to automate this task. I'm new to scripting, and its been very helpful with a lot of my day to day tasks, but I can't seem to figure this one out. Any suggestions would be awesome! Thanks!
Hello
A QT file contains sound tracks and a sound track contains audio channels.
If you mean your QT file has 4 sound tracks each of which contains one audio channel marked as "Mono", you may try the following script. Please make sure you have complete backup of files in advance, for this script will overwrite the files.
Script is basically the same as the one posted in the following thread except for the channel_layouts_map definition.
Quicktime Pro Applescript - Assign audio channels
https://discussions.apple.com/thread/6055790
Notes.
* You need to have QuickTime Player 7 Pro. QuickTime X Player is useless for this.
* You need to enable GUI scripting.
cf.
OS X: Using AppleScript with Accessibility and Security features in Mavericks
http://support.apple.com/kb/HT5914
Briefly tested with QuickTime Player Pro 7.6.6 (1710) (QuickTime version 7.6.6 (1800)) under OS X 10.6.8.
Good luck,
H
on run
open (choose file with prompt ("Choose movie file(s)") ¬
of type {"com.apple.quicktime-movie", "public.mpeg-4"} ¬
with multiple selections allowed)
end run
on open aa
set channel_layouts_map1 to {¬
{1, 1, {"Unused"}}, ¬
{2, 2, {"Unused"}}, ¬
{3, 3, {"Mono"}}, ¬
{4, 4, {"Mono"}} ¬
set channel_layouts_map1 to {¬
{1, 1, {"Unused"}}, ¬
{2, 2, {"Unused"}} ¬
repeat with a in aa
set f to a's POSIX path
set k to count_sound_tracks(f, {_close:false})
if k = 4 then
remap_audio_channels(f, channel_layouts_map1)
else
-- ignore it (just close it)
close_document(f, {_save:false})
end if
end repeat
end open
on count_sound_tracks(f, {_close:_close})
string f : POSIX path of QT movie
boolean _close: true to close document, false othewise
tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
open (f as POSIX file)
tell (document 1 whose path = f)
repeat until exists
delay 0.2
end repeat
set k to count (tracks whose audio channel count > 0)
if _close then close
end tell
end tell
return k
end count_sound_tracks
on close_document(f, {_save:_save})
string f : POSIX path of QT movie
boolean _save: true to save document (if modified), false othewise
tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
tell (document 1 whose path = f)
if exists then
if _save and modified then save
close
end if
end tell
end tell
end close_document
on remap_audio_channels(f, channel_layouts_map)
string f : POSIX path of source movie
list channel_layouts_map : list of {trk, trk_new, layouts}
trk = (string or integer) name or index of source sound track
trk_new = (string or integer) new name for source track (integer i denotes original name of sound track i)
layouts = list of audio layout for channel(s) in source sound track
Mono
Left
Right
Center
LFE Screen
Left Surround
Right Surround
Left Center
Right Center
Center Surround
Rear Surround Left
Rear Surround Right
Left Total
Right Total
Discrete-0
Discrete-1
Unused
e.g. 1
{{"Sound Track 1", "Left", {"Left"}}, ¬
{"Sound Track 2", "Right", {"Right"}}, ¬
{"Sound Track 3", "Center", {"Center"}}, ¬
{"Sound Track 4", "LFE Screen", {"LFE Screen"}}, ¬
{"Sound Track 5", "Left Surround", {"Left Surround"}}, ¬
{"Sound Track 6", "Right Surround", {"Right Surround"}}, ¬
{"Sound Track 7", "Left Total", {"Left Total"}}, ¬
{"Sound Track 8", "Right Total", {"Right Total"}}}
e.g. 2
{{1, 1, {"Left", "Right"}}, ¬
{2, 2, {"Center", "LFE, Screen"}}, ¬
{3, 3, {"Left Surround", "Right Surround"}}, ¬
{4, 4, {"Left Total", "Right Total"}}}
* this handler behaves as follows:
1) open f
2) scan sound tracks of document 1 for each trk and remap the track's audio channel layouts as specified
3) scan sound tracks of document 1 for each trk and rename the track as specified
4) save and close document 1
* if specified trk is not found, it is ignored and no remapping is performed on the track.
* if specified layout is not found, it is ignored and no remapping is performed on the layout.
* if specified layout count is greater than channel count of the target track, excessive layouts are ignored.
* if specified layout count is smaller than channel count of target track, excessive channels are ignored.
* if trk and trk_new denotes the same track, renaming is not performed on the track.
script o
property map : channel_layouts_map
property pp : {}
property qq : {}
-- get name and id of sound tracks
tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
activate
open (f as POSIX file)
tell (document 1 whose path = f)
repeat until exists
delay 0.2
end repeat
tell (tracks whose audio channel count > 0)
set {pp, qq} to {name, id} -- name and id of sound tracks
end tell
end tell
end tell
-- remap audio channel layouts as specified
tell application "System Events"
tell (process 1 whose bundle identifier = "com.apple.quicktimeplayer")
-- open movie properties window
keystroke "j" using {command down}
tell (window 1 whose subrole = "AXDialog") -- properties for movie
repeat until exists
delay 0.2
end repeat
repeat with m in my map
set {trk, undef, layouts} to m
-- [TRK:
repeat 1 times
if trk's class = integer then
if trk < 1 or trk > (count my pp) then exit repeat -- TRK:
set trk to my pp's item trk
end if
tell scroll area 1
tell table 1
tell (row 1 whose text field 1's value = trk) -- target sound track whose name = trk
if not (exists) then exit repeat -- TRK:
select
end tell
end tell
end tell
tell tab group 1
click radio button 3 -- audio settings
tell scroll area 1
tell table 1 -- channel assignment table
set ix to count layouts
repeat with i from 1 to count rows
if i > ix then exit repeat
tell row i -- channel i
tell pop up button 1
click
tell menu 1 -- channel assignment menu
tell (menu item 1 whose title = layouts's item i)
if exists then click
end tell
end tell
end tell
end tell
end repeat
end tell
end tell
end tell
end repeat
-- /TRK:]
end repeat
-- close movie properties window
click (button 1 whose subrole = "AXCloseButton")
end tell
end tell
end tell
-- rename sound tracks as specified
tell application id "com.apple.quicktimeplayer"
tell document 1
repeat with m in my map
-- [RENAME:
repeat 1 times
set {x, y} to m's items 1 thru 2 -- {old name or index, new name or index}
if x's class = integer then
if x < 1 or x > (count my pp) then exit repeat -- RENAME:
else
set x to my _index_of(pp, x)
if x = 0 then exit repeat -- RENAME:
end if
if y's class = integer then
if y < 1 or y > (count my pp) then exit repeat -- RENAME:
set y to my pp's item y
end if
set p to my pp's item x
set q to my qq's item x
if p ≠ y then set track id q's name to y
end repeat
-- /RENAME:]
end repeat
if modified then save
close
end tell
end tell
end script
--tell o to run
run script o
end remap_audio_channels
on _index_of(xx, x)
list xx : source list
anything x : item to be searched in xx
return integer : the first index of x in xx if {x} is in xx, or 0 if not.
script o
property aa : xx
local i, j, k
if {x} is not in my aa then return 0
set i to 1
set j to count my aa
repeat while j > i
set k to (i + j) div 2
if {x} is in my aa's items i thru k then
set j to k
else
set i to k + 1
end if
end repeat
return i
end script
tell o to run
end _index_of
Maybe you are looking for
-
Error while trying to run DBMS_STAT.GATHER_TABLE_STATS
Hi Gurus, I am trying to run DBMS_STAT.GATHER_TABLE_STATS from a procedure from a DBA role granted user I am getting the folowing error: ORA-20000: Unable to analyze TABLE "<SCHEMA_NAME>"."<TABLE_NAME>", insufficient privileges or does not exist ORA-
-
I had already removed the previous firefox icon from my computer, and after having replaced it in my applications folder, I discovered that it would not run on my computer.
-
Can i install windows 7 and OS X together on the same Mac Book Pro?
can i install windows 7 and OS X together on the same Mac Book Pro?
-
since the last Apple-update I have a problem with Skype-talk; the other person can't hear me, while I do hear the other... Where can I find the microfoon tool?? I'm using a mac-book.
-
Is there a way to print object addresses?
Hi, I know if i do System.out.println(objectA); and the object has NOT overwritten the toString() method, then the object's address is printed out, but is there a way to get the object's address if the toString() method is overwritten? thanks!