A script for either re-wrapping or transcoding media files into a format that can be more easily decoded on the Vegas timeline.  If re-wrapping is possible, the media file’s videostream and audiostream remain unchanged.  These are placed into a new container which can then be decoded by Vegas.  Transcoding involves the re-rendering of the media file’s videostream and audiostream into a format that can be better decoded on the Vegas timeline.  Ideally, a lossless VFW codec such as UtVideo, MagicYUV or Lagarith would be used for the videostream, but this can result in very large file sizes.  Alternatively, a VFW codec such as Cineform can be used or a high bit-rate x264 format.  At the moment, only iPhone, Panasonic GH5 and ProRes HQ422 media files are supported.  Transcoding options include direct x264 renders as well as VFW codecs such as Cineform using VirtualDub.

Type of Import. A drop-down llist of media for which a transcoding or rewrapping option is available.

Add Files

A left-click of the folder-only (left)  icon opens the browse folder dialog in which an entire folder may be added for processing. 

A left-click on the folder-explore (right) icon opens the file dialog in which multiple files may be selected for processing.

Selected Files to Import. An info box  which  shows the list of files to be processed.  To remove a file from this list, first left-click on the  file which will then be highlighted.  Then right-click which will remove the file.

Processing Options .  Once the Type of Import has been selected, the available processing options are shown in this info box.  There are two main processing options rewrapping or transcoding.  At the moment rewrapping options are limited and available only for a few types of media, while transcoding is generally available for all media. 

  • Rewrap .  If rewrap is selected, both the audio and video streams are simply copied into a new container.  E.g. iPhone video is saved in an mov container.  It can be quickly re-wrapped into an mp4 container and oftentimes can be more easily decoded when imported to the Vegas timeline.  If re-wrapping is possible, both the audio and video streams remain unchanged.
  • Transcode .  If transcode is selected, the video stream will be re-rendered.   For transcoding, there are usually three container options–mp4, mov and avi.  If mp4 or mov is selected, the drop down list will contain available x264 render templates.   If avi is selected, the drop down list will contain available Video for Windows render templates.  These templates include those that were part of the HOS installation package and whatever new render templates the user has created using AviDub.  Avi processing makes use of VirtualDub FilterMod while x264 processing uses FFmpeg.
  •  When clicked, the x264 rendering template window is shown. Note that the same window can be loaded when x264 rendering is selected in AviDub, ProxyAssist, and RenderEvents.  Templates created in one script may be used in other scripts as well.  A complete description of this window may be found in the help section describing x264 Render Templates in detail.

Video Options .

  • Trim Frames.  The number of frames to be trimmed from the beginning (head) and end (tail) of the media file.
  • Set Frame Rate. A dropdown list of available frame rates for the transcoded files.

Audio Options.

  • Keep Audio . If checked, the audio stream will be included in the new file. An attempt will be made to simply copy the audio stream.  Note that there are some circumstances where this may not be possible.  E.g. it is not possible to copy a pcm audio stream into an mp4 container.  While ac3 audio may be copied into an mp4 container, Vegas will not decode the audio.  In such cases, the audio will be re-rendered using the aac audio codec.
  • Add PCM Audio.  If checked, an uncompressed PCM audio file will be rendered for import to the Vegas timeline.  This can be useful for manually adjusting changes to audio length inside of Vegas.
  • Add Audio Delay .  Transcoding and re-wrapping can often lead to loss of audio sync. Use positive values if the audio is too early or negative values if the audio is late.  Time is in milliseconds with a  max and min of 2000 msec.  Note that this adjustment for audio delay ONLY applied to re-wrapped files and avi trascoded files using VirtualDub FilterMod.  For transcoded files within an  mp4 or mov container, use the audio offset option in the x264 Encoder Settings dialog (item #4).

Save Options

  • Add to Project Media.  If checked, the transcoded or rewrapped files will be added to project media pool.
  • Add to Timeline. If checked, the transcoded or rewrapped files will also be added directly to the timeline.  New tracks named Imported Video and Imported Audio will be created and the files will be placed on those tracks.  If the project already contains media on the timeline, the new files will be added at the end of the project.
  • Add File Tag. If checked, a file tag will be added which is any text the user wants added to the name of the rewrapped or transcoded media file.  Two separate file tags are possible–one for Rewrapped media and another for Transcoded media.

Where to Save . There are three options.

  • 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.

Copyright 2018 - HappyOtterScripts by The Happy Otter

Close Menu