Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Stream-copy function for video and audio events

  • Stream-copy function for video and audio events

    Posted by Omer Aydin on August 3, 2017 at 12:24 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?

    Omer Aydin replied 8 years, 9 months ago 2 Members · 4 Replies
  • 4 Replies
  • Aleksey Tarasov

    August 3, 2017 at 3:22 pm

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

  • Omer Aydin

    August 4, 2017 at 9:10 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.

  • Aleksey Tarasov

    August 4, 2017 at 2:36 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);

  • Omer Aydin

    August 7, 2017 at 8:49 am

    It worked great, thanks Aleksey!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy