Copyright 2018 - HappyOtterScripts by The Happy Otter
SmartVideoTrim (SVT) is designed for frame accurate trimming of video files with long GOP formats. Trimmed files are exact copies of the original with no re-rendering. They may be added back to the timeline as a Take or an event on a new track. Frame accuracy is achieved by an image comparison of the first frame of the original event on the timeline with individual frames of the trimmed file. Once an identical match is found, an offset is calculated and the event is added, thus ensuring frame accuracy. There are also options to keep the same or change containers. When possible, metadata from the original file will be copied to the trimmed file.
How to Trim
- Use Auto Settings. If checked, SVT will estimate the number of head and tail frames necessary to find a match. If unchecked, the user may apply Custom Settings by choosingt his own Head and Tail frames to be added.
- Skip Time in Seconds. Event will be skipped if the difference between the length of the media file and length of the event is less than or equal to the number of seconds entered.
- Copy Skipped Events. If Render to New Track is selected (#8), skipped events will also be added to the new track. The media file will also be copied to the Trimmed Files destination folder.
Custom Settings. If Use Auto Settings is unchecked, Custom Settings info box is enabled which permits the user to enter the number of head or tail frames to be added. The number of frames may be entered directly into the info boxes underlined in red, or the number of frames selected from the drop down list as shown.
- Container. A drop-down list with container options which include Same, mov, and mp4. WARNING! By far, the safest option is to keep the container the same. While FFmpeg will readily change containers, the results may not be decoded back in Vegas. For example, if you want to change an m2ts file with ac3 audio to mp4, FFmpeg will do that without issue. However, Vegas will not decode the resulting audio. In such cases, the ac3 audio will be transcoded to aac so that the resulting media file can be imported back into Vegas.
- Offset. The number of frames to be trimmed from selected event on the timeline. To be used only if there are no head frames and the user wants to trim frames from the start of the videostream. This can be useful if the recorded media (E.g. some GH4 footage) does not start with an I-frame.
- None. No audio. Only the trimmed videostream will be saved.
- Keep Audio. If checked, the audiostream will also be saved.
- Replace from Track. If selected, the audiostream will be replaced by the audiostream from the track selected in the numeric updown box.
- Offset. Number of milliseconds to be added or subtracted to compensate for out-of-sync problems which can often be found when changing containers using FFmpeg.
- Add Audio Track Back. If checked, SVT will add new audio track to the timeline if Render to New Track is selected or adds a take to the audio event if Add as Take is selected.
What to Load
- Last Used . By default, SVT loads the same settings that were used the last time the script was executed.
- Default . Loads default settings.
How to Save
- Add as Take . If selected, the trimmed media file’s videostream will be added back to the original video event as a Take. If Add Audio Back Track is checked, the rendered file’s audio stream will be added as a Take to the selected event’s audio track.
- Render to New Track . If selected, the trimmed file’s videostream will be added to a new track entitled “Trimmed Video”. If Add Audio Back Track is checked, the trimmmed file’s audio stream will be added to a new track entitled “Trimmed Audio”.
- Save Only . If selected, the rendered trimmed file will just be saved. It will not be added back to the timeline. WARNING. No synchronizatioin between the trimmed file and timeline event will occur.
Where to Save
- Specific Folder Location . Rendered media files are stored in a specific folder selected by the user. A left-click on the folder icon opens the browse folder dialog from which the location is selected or a new folder created. If “Create Project Name Sub-folder” is checked, a sub-folder will be created in that location with the name of the subfolder being the Project name.
- Sub-folder of Project Folder. Rendered media files are stored in a sub-folder in the folder where the Vegas project is located. The name of the sub-folder may be entered into the textbox on the right.
- Sub-folder of Media File Folder . Rendered media files are stored in a sub-folder in the folder where the media file is located. The name of the sub-folder may be entered into the textbox on the right.This option is available only for event renders. .