FORUMS: list search recent posts

Stream-copy function for video and audio events

COW Forums : VEGAS Pro

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Omer Aydin
Stream-copy function for video and audio events
on Aug 3, 2017 at 12:24:32 pm

Hi,
I wonder why Magix does not consider adding stream-copy as a native function.
It does not support it even saving VEG projects with the `Copy media with project ` and `Create trimmed copies of source media` options ticked.
Say you have a 2 hour MP4 file and your project uses a few minutes of it. Vegas copies the whole MP4 file even you have the copy&trim option selected.

The Smart-Trim tool in Vegasaur is a great utility that can extract Video and Audio Events in Vegas timeline without the need of re-encoding.
I've been running the trial version of Vegasaur 2 on Vegas 12 for a while and I've decided I don't need the other tools in the bundle. I've contacted Vegasaur and they said there is no option to buy Smart-Trim tool seperately. I'm not willing to buy the tools that I'm not going to use so I'm looking for a similar tool / script that does the same stream-copy job.

BTW is Smart-Trim tool in Vegasaur is using a Vegas script to do that or using it's own engine?



Return to posts index

Aleksey Tarasov
Re: Stream-copy function for video and audio events
on Aug 3, 2017 at 3:22:48 pm

Vegasaur uses ffmpeg for trimming.
You should read this thread and use Nick's script


Return to posts index

Omer Aydin
Re: Stream-copy function for video and audio events
on Aug 4, 2017 at 9:10:32 am
Last Edited By Omer Aydin on Aug 4, 2017 at 9:12:55 am

Thank you so much for the link Aleksey. Nick's scripts works great and solved my problem, except there is a little parameter issue.

The script creates a list of In and Out timecodes(in seconds) using a comma; (SS,ssssss)
FFMPEG does not process "," and requires "." like this; (SS.ssssss)
It works fine if I manually edit the BAT file and convert all commas to dots.

How can I make it write timecode in a dotted format or as integers?

I think this is the part of the code that converts from timecode to seconds:
-------------------------------------------------------
double start = offsetAdjustedTC.ToMilliseconds() / 1000;
double duration = lengthAdjustedTC.ToMilliseconds() / 1000;
-------------------------------------------------------

Any help would be appreciated.



Return to posts index


Aleksey Tarasov
Re: Stream-copy function for video and audio events
on Aug 4, 2017 at 2:36:59 pm

change this line:

string triminfo = String.Format(basename + ".mp4 " + start + " " + duration);

to this:

string triminfo = String.Format(System.Globalization.CultureInfo.InvariantCulture, basename + ".mp4 {0:0.00} {1:0.00}", start, duration);


Return to posts index

Omer Aydin
Re: Stream-copy function for video and audio events
on Aug 7, 2017 at 8:49:37 am

It worked great, thanks Aleksey!



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]