Set audio channel controlled by multimedia buttons

In KDE, is there a way I can set the audio channel that is controlled by the multimedia buttons? I am having a problem where the raise and lower volume buttons are not controlling the correct (PCM) channel.
I have a Dell Inspiron 9300 with the Intel AC'97 audio controller. The computer has normal speakers, controlled by the Master channel and a subwoofer controlled by the Master Mono channel. Because of this, in kmix, I leave the two above channels set and use the PCM control to control overall volume, as adjusting the "Master" channel does not affect subwoofer volume. Now, when I use kmix to adjust volume, things are fine, however when I use the multimedia raise/lower volume buttons, only the Master channel gets adjusted. I assume there must be some place where the channel controlled by these buttons can be set, but I cannot find it. I believe I've read that kmilo handles this task, but I cannot find where I might configure that.
I would be willing to do some hacking of the appropriate code, if it is required. Someone would just have to point me to what library/executable contains the code that handles the mentioned multimedia buttons.
Thanks and regards,
jbro

Thanks for the suggestion, but that is actually one thing I tried with no luck. I could create a "Soft Master" channel and use it to control overall volume, the same as just selecting PCM as the master channel, but the multimedia keys still directly changed the "Master" channel. Note that I have no problem when changing the volume through kmix. It properly adjusts the PCM channel, which I have set as the master channel. Only when I press the multimedia keys do I have this problem, so it looks like kmilo isn't paying attention to the master channel and automatically adjusting the first channel. Unfortunately, according to the ALSA wiki, there is no way to override an existing channel.
OK, I took a look at the latest code (KDE 4.0) for the delli8k plugin for kmilo and it adjusts "masterVolume" via dcop. When I do the corresponding commands from a prompt everything works fine. This leads me to believe that KDE 3.5.7 doesn't have the code I'm looking at. This is odd, though, as the last change in the Dell kmilo plugin was in September of last year. Perhaps it has not been backported to KDE 3.5.7. When I get some time I will try to compile the new kmilo and plugins to see if that changes anything.
Thanks again for the suggestion.

Similar Messages

  • How to set audio hardware input channels for narration & to what?

    Searched forum - hope I didn't miss solution for the following:
    Using PE3 in Windows XPSP3
    Tried for the first time to add narration to a project. Was using a stereo/microphone headset. Got nothing but noise. Could record in Windows recorder and Audacity. However, the microphone as part of the set would not work in Windows Audio Hardware Test Wizard. The set was using a sound chip on the motherboard.
    A friend of mine has the same OS, motherboard and is using PE3. He too had never tried adding narration - but tried with a USP connected set, and was successful.
    I removed my stereo set, and connected a USB set. To make sure all settings were reset, I did a cold reboot. The USB set worked in Windows Audio Test Wizard. I opened my project again, and in Edit/Preferences/Audio Hardware, clicked AIIO Settings. Unchecked the old set (Realtek) in both the Output and Input Ports area, checked the USB Audio Device, moved to the top of both lists.
    Then tried to add narration and got the error message "Your current audio hardware selection does not have any input channels. Please use Preferences>Audio Hardware to correct this problem.
    Thinking that maybe this was a preset for the project and couldn't be changed, I started a new project, no video, just tried to add narration, and got the same message.
    The entries in the columns in the ASIO Direct Sound for Full Duplex Setup menu for the USB Audio Device in the Input section are: 2048, 0, 1, 16, Yes
    The only one of these that seems to be able to be adjusted is the second number - the Offset (Samples). The Audio Channels number is set to 1 and doesn't seem to be changeable. Suggestions?

    When working with Audio in most NLE's, i.e. Premiere Elements, or Pro, there are basically three areas that can affect how the Audio is handled on one's system. First, there is the Sound settings in Windows (from Control Panel). Next, the Audio card/chip probably/possibly has a console to make settings at the card/chip level. Last, and these are really two locations, but I'm only counting them as one since they are both in the NLE - Edit>Preferences>Audio & Audio Hardware. This is where Steve is referring to. Check all settings, and I'd suggest doing so in the order that I listed them above: OS, Audio card, then Premiere. A Mute, or by-pass in the first two, can override the settings in Premiere, and you may have its setting correct, but still not be able to effectively use your hardware.
    The exact settings chosen will depend on the exact hardware that is properly installed. Without knowing all of your hardware and other settings elsewhere, one cannot give you a definitive answer. Ideally, in the settings drop-downs, you *should* see your hardware listed. Look closely, as these can be a bit cryptic.
    If you are still unable to get your hardware working properly, a fourth place to look would be Control Panel>System>Hardware>Device Manager for your Audio hardware. Check that Device Manager sees your hardware, and that it is working properly.
    If all is set up properly, but still not working, report back with exact specs on your system, including all of your Audio hardware. There are possibly some more steps that can be taken. I will not mention them now, as they *should not* be needed. If you do need further assistance, please list every option in all of the drop-down lists from Premiere, so we can know what your choices are.
    Good luck,
    Hunt

  • How to Set Left/right audio channel while Video playback

    how can I controlling the left / right audio channel while video playback, I can't find any method or class for this in JMF, anyone that can direct me how to do it?

    The way I found to control two stereo channel is to implement a plug-in Effect that will control two volumes (left/right) indipandently.
    You can start from the example GainEffect from sun, and implement your control.
    For eample, if you want to mute the left channel, simply set to 0 all the odd samples (or even...I don't remember exactly, try it).
    You have then to add you plug in to the processor chain... again see the examples.
    More complex effects (panning etc) can be done in the same way, but it seems to me that it's quite CPU intensive.
    Bye
    Marco

  • Audio channel setting

    After pushing the voice dialing button I get a message in a message window that reads "Unable to allocate audio channel. Close other applications and try again" and the voice dialing doesn't activate. Any ideas as to what setting or change I need to make to restore voice dialing? This occured suddenly and I don't know if I accidentally changed something or not. Thanks
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    Anytime random strange behaviors creep in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Best!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • M30 - Front Mode and Audio/Video Control buttons don't work

    Hi
    The Front Mode and Audio/Video Control Buttons Don't Work
    Any ideas?
    Thanks

    Hi
    As far as I know the Toshiba Controls utility is responsible for key usage.
    Did you try to install Toshiba Controls?
    Check the Toshiba driver page for this driver.
    Bye

  • Help using multiple audio channels for one video

    Hi,
    I have a video file with 3 audio files (stereo (.wav), 5.1 surround (.AC3), and commentary (.wav).
    I have placed these on the time line of the video track, but now I need to have buttons to target each of them from a menu. However, when is choose a buttons target, is doesn't give me the option of which audio channel to play (A1/A2/A3 etc).
    Is this possible with just one track, or do I need 3 (each with a different audio file as A1)?
    Hope you can help! cheers.
    Tim

    There is a tutorial on setting this up here;
    http://www.kenstone.net/fcphomepage/dvd_languagenattress.html
    BTW I would very strongly suggest to compress your WAV files to stereo AC3 files. It will reduce your overall bandwidth, and you will have a disc that will less problems in playing.
    http://www.kenstone.net/fcphomepage/a_packwarmouth.html

  • How can I get 2 Mono Audio Channels in, 2 Identical Mono Channels Out?

    I use Premiere CS6. Most of my work requires simply editing with one audio track used for the on-camera talent's microphone, adding another track for music, and then outputting BOTH of those tracks to the right channel as a mixed mono output AND the same for the left channel (an identical mixed mono output).
    Otherwise, I have had problems in the past based on a user's particular playback settings/hardware/etc., and they may only be able to hear one channel or the other (only hearing voice or music). If I can put a mono mix on the right and a mono mix on the left, then I am covered.
    SO HERE'S THE QUESTION: What settings do I need to adjust to accomplish this, and how do I set this up as a default for future projects? (I realize that Premiere CS6 has a lot of flexibility when it comes to controlling audio, however, I have read several help articles, and cannot find the answer to this simple question.)

    You're overthinking this.  A normal stereo mix with the tracks centered will do the trick.  There are several ways to center the audio.  Option 3 is probably the most efficient.
    http://www.larryjordan.biz/premiere-pro-cs6-isolate-audio-channels/

  • Play a QuickTime file with eight separate audio channels

    I'm trying to play a QuickTime file with eight separate audio channels but they only play in stereo......  the same QT file will play all 8 channels separately in Qlab, which has separate level controls for each channel, and which "sees" my Digidesign 002 audio interface.  But QT does not recognize the interface, nor does Audio MIDI Setup utility, apparently.....  it will play all 8 channels mixed to stereo through channels 1 and 2

    The following will answer both your questions a) and b).
    Click on your master timeline and press cmd+0 (zero) to bring up Sequence Settings, then click on the Audio Outputs tab on the right. Click on the Outputs option and change it to 6. You can leave them as Stereo pairs.
    Now, back on your timeline, you need to make sure all your audio is organised so each track. A1, A2, A3, A4 etc has all the relevant media on it.
    Then, on the left of the timeline you see the Destination toggle buttons, then you see the Padlocks to lock tracks, then you have the Toggle Auto Select squares. If you right-click on the Toggle Auto Select squares you bring up a little sub-menu, at the top of this list you'll see Audio Outputs, which will show the stereo channels for that particular track. As you've changed the number of Audio Outputs in the Sequence Settings, the list will show: 1&2, 3&4, 5&6. You just tick whichever channels you want.
    In your case, you have dialogue on the first 4 tracks, no problem, just go down through tracks 1,2,3 and 4 as described above and assign these to Audio Outputs 1&2.
    Then just go down through your music and effects audio tracks and assign them accordingly.
    Now, when you export your timeline as a self-contained media file, it will have different audio channels.
    I hope that makes sense. When you change the number of audio outputs as described in the first step, I believe the rest of it is fairly self explanatory, once you know where the settings are.

  • Why does compressor settings of aac audio, stereo, create 2 channel mono from 2 discrete audio channel movies?

    Why does compressor settings of aac audio, stereo, create 2 channel mono from 2 discrete audio channel movies?

    well depending on how your audio is brought into your system you can select it as two streams of mono or a stereo pair. In reality, unless it's mixed in stereo, that's just two streams of mono locked together. Other streams brought in via other means, can have a lot more audio channels, e.g. 8, 16, 24.
      In your case, with what you're doing, two separate channels works best, so you can control the levels of two very different audio sources. If, for instance, you were taking the feed from the mixing board during a concert, you might want their stereo out. Otherwise you might be dealing with the 1.2 zillion channels that they're mixing live.
       I like separating the tracks coming in. I work with people who prefer to lock them together. Locking means the tracks move together during editing. Ok, fine, but I'm usually dealing with different audio sources, like you are: a camera mic (safety on location) and a close mic (shotgun, lav). Or I have a shotgun source and a lav. I want to determine the best source audio for the shot. Sometimes it's a lav, sometimes a different feed from somewhere else, sometimes the shotgun, and sometimes a mix of two sources. But if they're locked together and pre-set to come out evenly from both speakers there no way for me to make a determination. The other guys like to cut and figure out the audio later.
      To each his or her own. . .

  • Merged clips and modified audio channels bug/issue

    My problem is that if I create a merged clip and modify it's audio channels Premiere (both CC and CC2014) does not respect the modification under specific circumstances. These circumstances are: if I use keyboard shortcuts or the source window buttons for overwrite/insert to cut the merged clip into a timeline. However, if I drag & drop the clip from the source window or from a bin into the timeline Premiere will respect the audio channels set through modify audio channels.
    Here are steps needed to create my problem. You will need a video clip and an audio clip with at least two channels to reproduce this.
    1. Create a merged clip from the video and audio. Does not matter if you have "Remove audio from AV clip" enabled or not.
    2. Right click on the merged clip in the bin and select Modify -> Audio Channels.
    3. Set the merged clip's audio channels to Number of Audio Tracks: 1, Channel Format: Mono. Set the source channel for Audio 1 to anything except Channel 1. Click OK.
    4. Make sure you have the merged clip open in the source monitor. Use keyboard shortcuts (. or ,) or the insert/overwrite buttons in the source monitor to cut the clip into a sequence.
    5. The merged clip in the sequence will use channel 1 for audio, even though it has been set to use another channel.
    6. Now try drag & dropping the merged clip from either the source monitor or from a bin into the sequence. It will now use the audio channel that has been set through modify audio channels.
    My workaround is to use drag & drop for now for affected clips, but in the long run this is a pain in the backside.
    My question is if this is something that affects other users as well. And while I'm waiting for a fix, if anyone has any suggestions on how to get modified audio channels to work properly, I will gladly listen.
    I have filed a bug report for this. I have reproduced this on multiple Windows 7 machines with Premiere Pro CC and on two Macs with both CC and CC 2014.
    EDIT to add: I have been in discussion with Rameez from Adobe about this through the support chat and have been told that this is working as intended. He suggested I post a thread about it to see how other editors feel about the functionality. I personally feel that the way it works now makes no sense at all. If others feel the same way, maybe this issue can be fixed in a future update. So please make your voice heard.
    EDIT to add: In most usage this might not be an issue at all. But if for example you have external audio on multiple channels and to make sure you have a clean timeline, you wish to remove extra tracks from your merged clips and those extra tracks happen to be any track before the last one(s), you will find that editing the merged clip in in any other way than drag & dropping it in the sequence will result in you losing those last tracks instead of any tracks in the middle that you have disable through modify audio channels. I would think that the audio channel modifications should work no matter what way you cut the merged clip in.
    Message was edited by: Jaakko Rinne

    Going to try, but here is my workflow and have not encountered any problems until this last P/U days footage.  I've been doing things this way because I found having all files in the project was causing it to crash constantly when I was working.  I have a new I7' processor IMac with 24 gigs of RAM.  And since Premiere does not allow you to have multiple projects open at the same time (Wish this would change.  Avid and FCP both allowed multiple projects) I have to do things this way.
    Pre-workflow Project File
    Label all Video and Audio files to match Scene #'/Takes
    Set in points on all video and audio to reflect slate
    Merge Clips
    Working Project File
    Import only Merged Clips into Project.  Either via import or copy/paste
    Now I've done this workflow from just about the very beginning.  Deleting all of the original source video and all audio clips from my working project so only my bins containing my merged clips remain.  Have had no problems and edit has been smooth.  Did a pickup day last week, followed same steps as I've done in the past, imported the merged clips into my working project and the clips have the audio set to none by default.  Now once I go into the sequence I can manually set it and it's there but I cannot play audio in the source monitor which is how I edit, there's no reason I should have to go back to the crappy FCP way of editing doing the copy and paste from a sequence.

  • Map audio channels of items in sequence?

    I'm fairly new to Premiere CS4 (FCP guy). I have rough cut a piece with interviews recorded on ch.1 and b-roll. I've used Fill Left which works, but I was hoping to use Map Audio Channels to avoid chasing filters all over the place.
    I found that I could remap the channels of items that were not yet edited into a sequence, yet, when I opened clips that were edited into my sequence, the controls to change mapping were grayed out.
    Is there a way to do this?

    In this case, though, I don't see how remapping my audio would do anything but exactly what I want to do.
    Well, the reason is that Premiere treats audio differently than FCP does. In FCP, every audio track in a sequence is a mono track, period. You have no other options. Even if you import or capture a stereo audio clip (let's say a CD audio track, for instance), the two channels of the source clip are mapped to mono tracks: the left channel would go to to A1, and the right channel would go to A2, for example. You can create "stereo pairs" in FCP by selecting two clips on adjacent tracks and pairing them (which I believe automatically applies stereo panning, ie. hard left and hard right), but at their base level they are still mono tracks.
    Premiere is different, however, in that you can have mono tracks, stereo tracks, and 5.1 tracks in a sequence, or any combination thereof. As such, a source clip can only go to a matching track in a sequence; for example, a stereo source clip can only go into a stereo track in your sequence. This is where source channel mapping comes into play. You can instruct Premiere to treat the stereo audio track of a clip as two mono tracks, for example, with the end result being that those tracks WON'T go onto a stereo track in a sequence. They will ONLY go onto mono tracks (two of, to be exact) in a destination sequence.
    So if you've already used a stereo clip in a sequence, it has to be on a stereo track. Premiere will then prevent you from remapping those audio channels because of the identity of the destination track in the sequence, meaning that remapping from stereo to two monos won't work once the clip is in use. If you remap the channels before using the clip, you're golden. Hope that helps; it's simply a matter of the differences in the way the two programs work.
    Regarding titles: this is another case of the way two programs work. In FCP, titles are an effect, and so have no reference to any sort of "source," which is why you can copy and paste and change and the original stays the way it was. In Premiere, a title is a "synthetic" clip and therefore has a "source" so if you change the parent all of the children change as well. However, you can work around this by copying and pasting your title, double-click the copy to open the editor, and then click the "New Title Based on Current Title" button (looks like a film frame with a capital T in it). Name your new title and edit it. When you close the titler, you'll have a new title in your bin. Drag it from the bin and while holding the Alt key, drop it on the copy already in the timeline--this will replace the content of that clip instance in the timeline and maintain any effects or transitions you'd placed on the clip.

  • Capturing 4 Audio Channels - HDV???

    Correct me if I'm wrong, but it is NOT possible to capture 4 audio channels all at once in FCP?
    If this is this case, how do you go back and capture in another pass? Right now I can only capture the two channels that go along with the onboard mic, and not the channels that go with the XLR audio (in this case a Lav Mic.)
    I've tried to create a new capture preset, but it doesn't seem to work w/HDV.
    Should I try capturing the audio in a second pass using standard def? Would that work?
    Any thoughts would greattttttttttttly be appreciated.
    Thanks!

    As Thomas suggested in that thread, "Capturing Multiple Audio Channels", in chapter 20 of the the FCP User Manual is a great resource. But I'll break it down for you anyways...
    Here's how I capture 4-tracks of audio via Firewire with Final Cut Pro:
    Go to -
    Final Cut Pro Menu/Audio/Video Settings.../Capture Presets Tab
    Create two capture presets (1 set for the first two channels, the 2nd set for the last two channels and maybe one for all 4 channels mixed if you'd like)
    Select a Capture Preset and choose Edit then set which channels you'd like the preset to capture inside the Quicktime Audio Settings section of the Capture Preset Editor window. Make sure your device is plugged in and turned on or else the option will be greyed-out.
    Open the Log and Capture window in the Capture Settings tab and select which Capture Preset you'd like to use depending of which audio channels you'd like to capture.
    To make sure you're caturing 4-channels on your camera:
    Go To-
    Menu/Audio Setup/Audio Mode/ 12bit 1/2 , 3/4
    Throw the phones on and monitor the channels using the Audio Monitor button on the side of the camera. You can switch between monitoring the first 2, the second two, or all four channels at once. Remember if the camera is set to record 4 channels then it'll record 4 channels no matter what channels you're monitoring.

  • Changing audio channels, can it be done?

    Hi,
    I've been supplied several video clips in DV/DVCPRO - NTSC, 720 x 480 with two audio channels - 16-bit Integer (Little Endian), Mono, 48.000 kHz
    Both channels are set to 1 with the assignment set to Mono.
    If I play the clip in QuickTime Player then I can hear a mix of the two channels, if I try importing it into Final Cut then I only get one channel.
    I'm guessing that its the channel id that is causing the issue as they are both set to channel 1, does anyone know of a way to change one of these to channel 2?
    Thanks, Alan.

    Open the .dv file with QuickTime and then open the Movie Properties window.
    Highlight the audio track and click the Audio Settings button. You'll see the track assignments in the lower right.
    Use Save As if you edit any setting.

  • 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

  • VCD selecting audio channel

    Hi,
    I have some vcd's with two different audio channels. Left for cantonese and right for mandarin. I would like to watch those vcd's with quicktime 7, but I can't find out how to select the audio channel. Does someone have an idea? I have also VLC, but it's not really working well with vcd's =(
    Best Regards,
    Fung

    A VCD is just a MPEG-1 file with a different name.
    Mount the VCD and open it using the Finder. Drag the blah.DAT file to your Desktop (it will copy) and change .DAT to .mpg
    Editing audio in the QuickTime Player is a "Pro" feature but the free Player can give you some control over audio playback.
    With the file open in the QT Player hit Command-K and the A/V Controls window will open. Set the balance slider to the right or left to hear the different tracks.
    MPEG Streamclip (free) can extract the audio (not much help for these mixed tracks) but maybe you could use third party software to delete one of the channels.

Maybe you are looking for

  • How does "root" work in 3.0

    Does anyone know how to get the "root" action to work in 3.0? It used to be (1.0 and 2.0) that using "_root." would go to the root level of the movie (leaving a movie clip) and then you could control the timeline (or target another movie clip), but n

  • Require Salary packaging option in ESS portal for India

    Dear All, We need Flexi Benefit Pay option in ESS portal for India. We tried a lot for the same but could not get any break through.... We found Salary Packaging option in R3 under the Tcode P16B_admin...this is wrking fine in R3 but we want this opt

  • Custome tab develpment process in  crm portal application CRMD_BUS2000126

    Please guide the step by step procedure to create custome tab in crm portal. please suggest the way that is assigned to PCUI frame work. i will appreciate small help also

  • Using recovery partition

    I brought hp g6 with Windows7 and then I changed into Windows 8.but now I want to switch it back to Windows 7 using recovery partition how can it be done

  • External iSight Revision 1.0 will not update firmware

    I've had an external iSight since its first release. Worked great with my old Power Mac G4 FW800, then I loaned it to my father who rarely used it. I've since recovered it along with its original FW cable, but it requires the 1.0.3 firmware update. I