Happy Otter Scripts for Vegas Pro

Comments

wwaag wrote on 7/1/2024, 10:25 AM

@Phil_P

Thanks for the post. Problem confirmed and hopefully resolved. I thought I had fixed this issue in the last release, but apparently not.

The new scripts for testing can be downloaded here. https://www.dropbox.com/scl/fo/grhrwru8z1kgs0z7mks7o/AA0NDbHSZHk9rqiRWhqLyME?rlkey=xgam54m83umws9a77ifcmeug4&st=s7k618tv&dl=0

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Phil_P wrote on 7/1/2024, 11:54 AM

Hi @wwaag

Placed the new files: C:\Program Files\VEGAS\VEGAS Pro 21.0\Script Menu\Happy Otter Scripts

(overwriting the original files)

Unfortunately, same behaviour here.

Also tested with new project with just one single video file and no edits.

Get asked to save the project first, then CTD. Sorry.

bitman wrote on 7/2/2024, 2:36 AM

@wwaag If your speech to text is by any chance based on my whisper speech to text script v7, I made an recent update v8 to fix an issue with the recent Vegas 21 builds: due to a Vegas version check in the code to be backward compatible with old Sony Vegas versions, I removed the build version in the version check as it confused V21 build 314, build 315 with old Sony Vegas main version 14, 15, as it should check on Vegas main version alone (like Vegas 21, 20, etc...)!

@Phil_P does it crash in older Vegas builds? Like 208?

Last changed by bitman on 7/2/2024, 2:37 AM, changed a total of 2 times.

APPS: VIDEO: VP 365 suite (VP 22 build 194) VP 21 build 315, VP 365 20, VP 19 post (latest build -651), (uninstalled VP 12,13,14,15,16 Suite,17, VP18 post), Vegasaur, a lot of NEWBLUE plugins, Mercalli 6.0, Respeedr, Vasco Da Gamma 17 HDpro XXL, Boris Continuum 2025, Davinci Resolve Studio 18, SOUND: RX 10 advanced Audio Editor, Sound Forge Pro 18, Spectral Layers Pro 10, Audacity, FOTO: Zoner studio X, DXO photolab (8), Luminar, Topaz...

  • OS: Windows 11 Pro 64, version 24H2 (since October 2024)
  • CPU: i9-13900K (upgraded my former CPU i9-12900K),
  • Air Cooler: Noctua NH-D15 G2 HBC (September 2024 upgrade from Noctua NH-D15s)
  • RAM: DDR5 Corsair 64GB (5600-40 Vengeance)
  • Graphics card: ASUS GeForce RTX 3090 TUF OC GAMING (24GB) 
  • Monitor: LG 38 inch ultra-wide (21x9) - Resolution: 3840x1600
  • C-drive: Corsair MP600 PRO XT NVMe SSD 4TB (PCIe Gen. 4)
  • Video drives: Samsung NVMe SSD 2TB (980 pro and 970 EVO plus) each 2TB
  • Mass Data storage & Backup: WD gold 6TB + WD Yellow 4TB
  • MOBO: Gigabyte Z690 AORUS MASTER
  • PSU: Corsair HX1500i, Case: Fractal Design Define 7 (PCGH edition)
  • Misc.: Logitech G915, Evoluent Vertical Mouse, shuttlePROv2

 

 

Phil_P wrote on 7/2/2024, 2:57 AM

@Phil_P does it crash in older Vegas builds? Like 208?

Hi @bitman
Can't really answer that I'm afraid. I don't have any way to check older version as I am in mid project. Sorry.

wwaag wrote on 7/2/2024, 9:36 AM

@bitman

No, it's not based on your scripts but I have made changes addressing the problem you had with builds 314 and 315.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Phil_P wrote on 7/2/2024, 12:30 PM

OK I figured out the issue at this end: My Happy Otter Scripts exist in 2 locations:

  1. C:\ProgramData\HappyOtterScripts\Magix Vegas Pro\Scripts
  2. C:\Program Files\VEGAS\VEGAS Pro 21.0\Script Menu\Happy Otter Scripts

I had put the updated versions in location no.2 but the shortcuts on the Otter Bar are all pointing to the location 1.

So when I was running the scripts from the Otter Bar it was running the old versions.

 

wwaag wrote on 7/2/2024, 1:04 PM

I will try to get a new build out later in the week with the corrections to these scripts

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

mark-y wrote on 7/15/2024, 11:48 PM

Unless I'm mistaken, Wayne's scripts are not a partnered application.

Steve_Rhoden wrote on 7/16/2024, 5:44 AM

@ccscotty A very good analyst right there....

wwaag wrote on 7/16/2024, 9:58 AM

@ccscotty

I presume this is what you mean??

If so, I have rarely, if ever, used this debugging approach. I just checked and see that it doesn't work for V20 and V21 although Vegas launches in earlier versions.

I don't use it for a couple of reasons. One major problem when using this debugging approach is that you can no longer use drag-drop operations since I always run Visual Studio as Administrator. And since many of the tools I've written support drag-drop, it can't be used. Additionally, you have to load Vegas each time you compile and want to test changes that you've made, which, as you know, takes quite a bit of time.

A far better approach (IMHO) and the one I use when possible is to simply keep Vegas "open" so that you don't have to launch it each time you want to debug changes you've made. For scripts, the following command will enable you to do that.

vegas.UnloadScriptDomainOnScriptExit = true;

Additionally, I make extensive use of simple MessageBox's when trying to identify lines of code that might be causing Vegas to crash during testing. Also try-catch regions to display the call stack when errors occur.

 

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

ccscotty wrote on 7/16/2024, 10:53 AM

@ccscotty

I presume this is what you mean??

If so, I have rarely, if ever, used this debugging approach. I just checked and see that it doesn't work for V20 and V21 although Vegas launches in earlier versions.

I don't use it for a couple of reasons. One major problem when using this debugging approach is that you can no longer use drag-drop operations since I always run Visual Studio as Administrator. And since many of the tools I've written support drag-drop, it can't be used. Additionally, you have to load Vegas each time you compile and want to test changes that you've made, which, as you know, takes quite a bit of time.

A far better approach (IMHO) and the one I use when possible is to simply keep Vegas "open" so that you don't have to launch it each time you want to debug changes you've made. For scripts, the following command will enable you to do that.

vegas.UnloadScriptDomainOnScriptExit = true;

Additionally, I make extensive use of simple MessageBox's when trying to identify lines of code that might be causing Vegas to crash during testing. Also try-catch regions to display the call stack when errors occur.

 

Thanks form the information! Yeah, I assumed that once Vegas loaded and ran the script once it was locked until the program closed. That bit of code should be helpful.

wwaag wrote on 7/30/2024, 10:59 AM

New build 1.0.3.32 is now available.

Change log may be found here. https://tools4vegas.com/wp-content/uploads/HappyOtter-Change-Log.pdf

IMPORTANT: Limited rendering support for Vegas 22

  • Rendering tools using DebugMode FrameServer do NOT work due to Vegas version changes
  • Attempted use of rendering tools  with previous HOS builds will lead to Vegas 22 crash
  • Only rendering tools supporting native Vegas Renderers continue to work
  • New HOS build will be released upon completion of updates to FrameServer

 

New versions of Nvencc64, Qsvencc64, Vceencc64, MPC-HC


New Tools and Features

  • KwikPreview2 – New Tool
    • Combines KwikPreview and KwikZoomPreview features  into a single tool
    • Option to use native Vegas renderers and templates
    • Additional split-screen comparisons—Left/Right and Top/Bottom
    • Option to compare the same half—E.g. compare left half for 2 different tracks
    • Option to select events in addition to render loop for preview
  • Render Plus
    • Added MP4 chapter support using Vegas marker position and label

Bug Fixes

  • Speech to Text and Text Assist—still failed with Vegas 21 Build 314 and 315—fixed

 

Known issue—help file needs updating for new KwikPreview2 and RenderPlus tools

 

Here is the direct download link. https://tools4vegas.com/ru4f7l9rxql9ykg/

Last changed by wwaag on 7/30/2024, 11:07 AM, changed a total of 3 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Shaun_K wrote on 7/30/2024, 11:50 AM

Thank you for the quick turnaround with the new release! @wwaag I am having an issue suddenly. When trying to use ImportAssist to rewrap my MOV files to MP4, it creates a 0 byte file. Is there a log file I could look at to see what the issue here may be? This was working well previously. (I am not sure that this is a VP22 issue. When I go back to VP21 it has the same issue now too)

 

wwaag wrote on 7/30/2024, 1:08 PM

@Shaun_K

Just tried rewrapping an iPhone 4K 60P HEVC MOV file to an MP4 file and it worked without issue.

Note that the version (21 or 22) should not be affected since the DebugMode FrameServer is not used in this tool.

To troubleshoot, navigate to C:\ProgramData\HappyOtterScripts\Magix Vegas Pro\ImportAssist.

Then open the file "C:\ProgramData\HappyOtterScripts\Magix Vegas Pro\ImportAssist\rewrapLogFile.txt" with any text editor which gives the FFmpeg log which will usually tell you the problem. In the same folder you can also view the actual FFmpeg command line that is being used (rewrapCommandLine.txt) and also the script execute log (ImportAssistExe.log).

Let me know what you find.

Last changed by wwaag on 7/30/2024, 1:11 PM, changed a total of 1 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Shaun_K wrote on 7/30/2024, 1:11 PM

@Shaun_K

Just tried rewrapping an iPhone 4K 60P HEVC MOV file to an MP4 file and it worked without issue.

Note that the version (21 or 22) should not be affected since the DebugMode FrameServer is not used in this tool.

To troubleshoot, navigate to C:\ProgramData\HappyOtterScripts\Magix Vegas Pro\ImportAssist.

Then open the file "C:\ProgramData\HappyOtterScripts\Magix Vegas Pro\ImportAssist\rewrapLogFile.txt" with any text editor which gives the FFmpeg log which will usually tell you the problem. In the same folder you can also view the actual FFmpeg command line that is being used (rewrapCommandLine.txt) and also the script execute log (ImportAssistExe.log).

Let me know what you find.

I think this is where the issue happens:
2024/07/30  18:34:02  --[mp4 @ 000001fd7ad40a40] Could not find tag for codec pcm_s24be in stream #1, codec not currently supported in container
2024/07/30  18:34:02  --Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
2024/07/30  18:34:02  --Stream mapping:
2024/07/30  18:34:02  --  Stream #0:0 -> #0:0 (copy)
2024/07/30  18:34:02  --  Stream #0:1 -> #0:1 (copy)
2024/07/30  18:34:02  --    Last message repeated 1 times

wwaag wrote on 7/30/2024, 1:17 PM

I see the problem. Your mov file has pcm audio which is not generally supported within an MP4 container. This has been an issue with FFmpeg for years. Could you upload a sample mov file somewhere that I could download and take a look.

BTW, why do you want to rewrap to an MP4 container since the most recent versions of Vegas handle MOV files quite well?

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Shaun_K wrote on 7/30/2024, 1:24 PM

I see the problem. Your mov file has pcm audio which is not generally supported within an MP4 container. This has been an issue with FFmpeg for years. Could you upload a sample mov file somewhere that I could download and take a look.

BTW, why do you want to rewrap to an MP4 container since the most recent versions of Vegas handle MOV files quite well?

This is my workaround to the timecode issue I am having. Vegas Pro doesn't recognise my timecode in the mov file. When I rewrap with your tool to MP4, then it sees the timecode just fine. (I have raised this a few times here on the forum). I will find a sample for you and post.

PIT wrote on 8/1/2024, 8:14 AM

@wwaag

I want to find and locate all transitions at the timeline.

If I open an old project with a new version of Vegas PRO it sometimes happens that there is an old transition which is no longer activated. At this point I want to replace this transition with a new one.

I use Vegas PRO 21.0 Build 315 and Happy Otter Script 1.0.3.32, but I do not find a function to do this.

Can you help me?

wwaag wrote on 8/1/2024, 10:58 AM

@PIT

Sorry. None of the tools in HOS or the HOS Free Tools Library will do what you are asking. As @jetdv replied in another thread, a special script would have to be written.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

joelsonforte.br wrote on 8/1/2024, 3:30 PM

@wwaag @PIT

The Free Tools Script "Regions From Transitions" does this. It will create Regions on all existing transitions, making it easier to locate.

https://tools4vegas.com/regions-from-transitions/

Reyfox wrote on 8/1/2024, 4:43 PM

+1 on this!

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 24.12.1

Gigabyte X570 Elite Motherboard

Panasonic G9, G7, FZ300

wwaag wrote on 8/1/2024, 6:15 PM

@joelsonforte.br

Thanks for reminding me of this text script. It could easily be changed to add markers rather than regions.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

jetdv wrote on 8/1/2024, 6:16 PM

@joelsonforte.br, that script simply shows every overlap of events on the selected track(s). It doesn't actually look for "Transitions" - all crossfades will get a region as well.

Please try this script. It will list ALL TRANSITIONS in project and where on the timeline they are located. It's just a string list but it will show all actual transitions being used.

https://www.vegascreativesoftware.info/us/forum/find-and-locate-all-transitions-in-a-project--146712/#ca921437

Marco-Vinc wrote on 8/1/2024, 9:23 PM

Thank you so much for the updates! Just one small issue when using HOS with the new Vegas PRO 22, whenever I try opening RenderEvents through a shortcut it always gives me this error, then the program crashes.

For some reason it works perfectly if I open it through the menu but through any hotkey it just crashes.