0

Tip/Trick - Mix Audio track to Stereo using Keyboard Maestro

Recently a user on these forums Wes Bos posted a forum thread about a restriction in Screenflow 6. Before in Screenflow 5 (and below) you could select audio clips on mass and "mix the input to mono" which would essentially make all clips in the document stereo if they were initially mono.

Now in Screenflow 6 you need to mix every individual clip to stereo, using the sliders provided. This takes between 5 and 10 seconds. A lot of the time we have many many clips which means this process becomes extremely slow and tedious.

So over the past 2 days I have been trying to create a solution to this problem. I have created a macro in KeyboardMaestro to accomplish this task for you!

 

------------------------------------------------------------------------------------------------------

 

Installation:

If you want to use it, first download and install KeyboardMaestro

Next download the attached file.

Import the file into KeyboardMaestro (File>Import Macros...>Mix Mono to Stereo.kmmacros)

 

------------------------------------------------------------------------------------------------------

 

Using the tool:

Now whenever you have a selected clip in Screenflow:

Press ⌘D and the application will automatically set the clip's mono tracks to stereo.

The macro takes about 0.5 seconds to execute (per clip) which is significantly faster than it would take manually. Sadly it is unlikely that I will be able to make it faster, using Keyboard Maestro. I also am not able to enable bulk edits.

I am currently trying to figure out the Object Model of ScreenFlow... If I can figure that out then perhaps I can develop a bulk edit tool, but no promises. If anyone has any other ideas, feel free to let me know! :) And, if you have any problems with using the macro feel free to let me know!

I hope this helps people out with their Video Editing!

~Sancarn

11replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • sancarn
    • sancarn
    • 6 yrs ago
    • Reported - view

    So I spent the whole of roughy 2 nights trying to reveal the Object Model of Screenflow and to no aveil. Found some interesting things though:

    I cannot figure out how to inject FScript into ScreenFlow. It is possible that ScreenFlow isn't injectable (somehow) or that ScreenFlow isn't built in Cocoa.

    If the latter it would mean my second approach (using SIMBL) would also fail.

    However I think I have been going at this from the wrong angle.

     

    Whenever you hit save, on ScreenFlow saves all changes to a folder. This folder contains the "Media" - all Video/Audio source clips, the thumbnail for the SF project, the version of ScreenFlow and the ominous ScreenFlowDocument.DAT file. Example:

    If we open this ScreenFlowDocument.DAT file in text edit (for lack of a better tool) we can see a tonne of data (mostly in Binary format).

    You will occasionally also get bits of English:

    [AudioActionWCaptionVFilter_ScreenMediaClipVActionZTransition\SizeableClip_AnnotationsClip_AnnotationsAction]CalloutActionYMediaClipZClipMarker^MediaClipGroupXTextClip[VideoFilter[MediaSource_NestedMediaClip[VideoAction_ScreenRecordingAction_DocumentPropertiesVMarker[AudioFilterZAnnotation

     

    I assume this file contains all the data (video and audio editing data). Therefore if we can figure out how this data is structured and how it is read into Screenflow / Screenflow's database - then WE can make changes to screen flow files outside of ScreenFlow.  Ultimately giving us the ability to create some mass automation applications.

    Like
    • sancarn
    • sancarn
    • 6 yrs ago
    • Reported - view

    As an update, I doubt this will work. My method:

    I created 2 new empty projects:

    S1 &  S2

    They both have the same screen dimensions. They are made at slightly different times of course and have different names. I used "od s1.dat > s1.txt" to get a dump of the dat file in strictly number format. Then I printed these files to excel and matched them up.

     

    Here are my results

     

    I'm not too confident at this time that anything can be done (given that massive section of red in between) but it is possible that the footer is where the data manipulation happens. If this is the case then we might be safe since this footer appears to be mostly preserved.

    Like
    • CraigSModerator
    • Telestream Desktop Forum Moderator
    • CraigS
    • 6 yrs ago
    • Reported - view

    Sorry you're having so many issues with this. Please do ask that we implement within the GUI.

    ScreenFlow Feature Request

    Like
    • sancarn
    • sancarn
    • 6 yrs ago
    • Reported - view

    CraigS No need to apologise! I thoroughly enjoyed the challenge, and ,with the API, I think I know how to make it even faster! :D

    Like
    • CraigSModerator
    • Telestream Desktop Forum Moderator
    • CraigS
    • 6 yrs ago
    • Reported - view

    sancarn Intersting to see how your API progresses.

    Like
    • sancarn
    • sancarn
    • 6 yrs ago
    • Reported - view

    Apparently my 3rd post didn't show my findings properly.

    http://imgur.com/a/u1NY5

    Like
  • Alas, the Keyboard Maestro macro doesn't work for me (Screenflow 6.21, Keyboard Maestro 7.3.1, macOS 10.12.4). With an audio clip selected, the macro goes into a loop, flashing the View menu, starting and stopping the playback, and somehow erasing all audio clips on the timeline. I have to cancel the macro from KM's menu, or it will seemingly continue running.

    Back to manually centering audio one clip at a time.

    Like
    • sancarn
    • sancarn
    • 5 yrs ago
    • Reported - view

    Pahaha I have no idea why that would happen honestly xD. Your description is so classic. I haven't used Screenflow in a long while but have been considering for a while that i should make an add-on for this sort of stuff...

     

    Now to try and fix your problem:

    1. Is this the first time you have used the macro?

    2. Have you got multiple clips selected or just the one?

    3. CraigS  have there been any significant UI changes in Screenflow 6?

    Like
    • CraigSModerator
    • Telestream Desktop Forum Moderator
    • CraigS
    • 5 yrs ago
    • Reported - view

     sancarn Nothing significant since 6 came out. There's been a few fixes though. Some around manual numeric entry and also in French localization. Our Release Notes lists all the changes since 6.0. See top of ScreenFlow forum for the notes.

    Like
  • sancarn 

    1. No, I tried several times with different Screenflow documents.

    2. I've tried it with just one and with multiple selected.

    Like
    • sancarn
    • sancarn
    • 5 yrs ago
    • Reported - view

    Ah it looks like my knowledge regarding automating applications on mac has improved fairly significantly because it appears I was using image searching algorithms for this. I'm on Holiday in Canada at the moment and don't have access to my Mac (took the windows PC instead) but I will whip up a fix when I am back! :)

    Like 2
Like Follow
  • 5 yrs agoLast active
  • 11Replies
  • 772Views
  • 3 Following