How can I transcode videos via scripting?

MdSiyamSajeeb-Khan wrote on 5/21/2021, 4:53 AM

Hi, I am new to scripting and currently looking into the scripting API of Vegas for one of my projects. I need to transcode some video files before working with them. From my limited research, I haven't found any direct functionality provided by the API that can help me transcoding video files. My question is, is there any functionality provided by the scripting API for transcoding?

I am using Magix Vegas Pro 18.

Thank you for your help.

Comments

JN- wrote on 5/21/2021, 6:39 AM

@MdSiyamSajeeb-Khan Can’t help you with scripting.  “I need to transcode some video files before working with them”

Why not just transcode the video clips prior to loading into vp? Handbrake, WWAAGS tools and the vfr2cfr util via my signature can all do it plus probably about another 100 utils😂.

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

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

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

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

jetdv wrote on 5/21/2021, 8:47 AM

You might take a look at my tutorials. Especially the 6 part series on rendering.

3d87c4 wrote on 5/21/2021, 5:36 PM

FFMPEG is also useful for transcoding.

Del XPS 17 laptop

Processor    13th Gen Intel(R) Core(TM) i9-13900H   2.60 GHz
Installed RAM    32.0 GB (31.7 GB usable)
System type    64-bit operating system, x64-based processor
Pen and touch    Touch support with 10 touch points

Edition    Windows 11 Pro
Version    22H2
Installed on    ‎6/‎8/‎2023
OS build    22621.1848
Experience    Windows Feature Experience Pack 1000.22642.1000.0

NVIDIA GeForce RTX 4070 Laptop GPU
Driver Version: 31.0.15.2857
8GB memory
 

MdSiyamSajeeb-Khan wrote on 7/7/2021, 5:31 AM

You might take a look at my tutorials. Especially the 6 part series on rendering.

Thank you. Is it possible for you to share the codes?

jetdv wrote on 7/7/2021, 7:37 AM

@MdSiyamSajeeb-Khan, The tutorials do show how to code in VEGAS. I go through the exact code you need to perform these tasks. You might want to start at the beginning - what do I need to write scripts in VEGAS and then proceed to the six part rendering series.

altarvic wrote on 7/8/2021, 12:29 AM

Take a look at the Batch Render script that comes with VEGAS - good starting point.

Musicvid wrote on 7/13/2021, 6:10 PM

 

Happy Otter Scripts

altarvic wrote on 7/14/2021, 2:19 AM

The topic title implies that OP wants to write his own transcoding script.

Howard-Vigorita wrote on 7/16/2021, 9:07 PM

The batch render script that comes with Vegas is a great place to start. It's lightweight code you can edit with notepad. Not designed to render multiple clips unless you put each clip into a region. Then you can render all your regions. I started with that about 8 years ago and figured it out enough to modify it to name my renders in the way I needed... essentially just with a numeric prefix and the region name.

Jetdv's approach is much better. Will probably be a harder climb unless you're already familiar with Visual Studio. But do it and you'll be glad you did. I can just hear Marie saying, "It's easy. You watch the tutorials, then you write the scripts."