Personal View site logo

User Tools

Site Tools


software:sony-vegas-pro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:sony-vegas-pro [2013/10/10 06:37]
balazer [Level ranges and input/output conversion]
software:sony-vegas-pro [2013/10/18 07:27] (current)
balazer [Color Space]
Line 8: Line 8:
     * 8-bit mode is quite fast for editing, preview, and rendering.     * 8-bit mode is quite fast for editing, preview, and rendering.
   * In 32-bit projects, RGB values are 32-bit floating point values.   * In 32-bit projects, RGB values are 32-bit floating point values.
-    * 32-bit mode is quite slow for editing, preview, and rendering. +    * 32-bit mode is quite slow for editing, preview, and rendering when your project resolution is high
-    * 32-bit mode is more accurate and less prone to banding and other color precision  artifacts - especially the cumulative errors of long filter chains.+    * 32-bit mode is more accurate and less prone to banding and other color precision artifacts - especially the cumulative errors of long filter chains.
     * 32-bit projects support values below 0 and above 255, and some filters allow access to these out-of-range values. For example, increasing the contrast could push a low value below 0, and decreasing the contrast could bring a below-0 value back above 0.     * 32-bit projects support values below 0 and above 255, and some filters allow access to these out-of-range values. For example, increasing the contrast could push a low value below 0, and decreasing the contrast could bring a below-0 value back above 0.
     * Compositing operates with 32-bit floating point precision in 32-bit projects.     * Compositing operates with 32-bit floating point precision in 32-bit projects.
Line 15: Line 15:
     * In 32-bit full range projects, you should set the compositing gamma to 2.22, which means that Vegas's compositing and filters operate linearly on the encoded RGB values, same as in 8-bit and 32-bit video levels projects.  Setting the compositing gamma to 1 changes the behavior of compositing and some filters in a way that you probably don't want (but perhaps is appropriate for video sources with a linear transfer function).     * In 32-bit full range projects, you should set the compositing gamma to 2.22, which means that Vegas's compositing and filters operate linearly on the encoded RGB values, same as in 8-bit and 32-bit video levels projects.  Setting the compositing gamma to 1 changes the behavior of compositing and some filters in a way that you probably don't want (but perhaps is appropriate for video sources with a linear transfer function).
   * Projects can be switched freely between 8-bit mode, 32-bit video levels mode, and 32-bit full range mode, but filters may behave differently depending on how your input formats are mapped to RGB level ranges.   * Projects can be switched freely between 8-bit mode, 32-bit video levels mode, and 32-bit full range mode, but filters may behave differently depending on how your input formats are mapped to RGB level ranges.
-  * By default Vegas Pro makes no particular assumptions about the primary chromaticities or transfer function ("gamma") of the RGB encoding:  operations are linear on the RGB values, and the scopes and preview window show the full range of RGB values with no conversion or remapping.+  * Most filters behave similarly in 8-bit and 32-bit modes, but a few like Color Balance behave quite differently when the color corrections are strong.  If you are making strong corrections (e.g. for log footage), it's best to stick with either 8-bit or 32-bit mode for color correction and rendering. 
 +  * By default Vegas Pro does no color management and makes no particular assumptions about the primary chromaticities or transfer function ("gamma") of the RGB encoding:  operations are linear on the RGB values, and the scopes and preview window show the full range of RGB values with no conversion or remapping.
    
  
Line 23: Line 24:
   * Most computer monitors are calibrated for sRGB, which is very close to rec.709.  They have the same primary chromaticites and white point. Rec.709's transfer function is approximately a power curve with a gamma of 2.4, compared to sRGB's transfer function which is a power function with a gamma of 2.2.  The differences are small enough that you'll be fine to just calibrate your monitor for sRGB and ignore the differences - in fact the gamma would need to be changed by a larger amount than this small difference to account for different levels of ambient light in your editing environment.   * Most computer monitors are calibrated for sRGB, which is very close to rec.709.  They have the same primary chromaticites and white point. Rec.709's transfer function is approximately a power curve with a gamma of 2.4, compared to sRGB's transfer function which is a power function with a gamma of 2.2.  The differences are small enough that you'll be fine to just calibrate your monitor for sRGB and ignore the differences - in fact the gamma would need to be changed by a larger amount than this small difference to account for different levels of ambient light in your editing environment.
   * I suggest calibrating your monitor using the excellent [[http://www.lagom.nl/lcd-test/|Lagom LCD test pages]], even if you use a CRT or other type of monitor.   * I suggest calibrating your monitor using the excellent [[http://www.lagom.nl/lcd-test/|Lagom LCD test pages]], even if you use a CRT or other type of monitor.
-    * Ise the [[http://www.lagom.nl/lcd-test/contrast.php|Contrast page]]:+    * Use the [[http://www.lagom.nl/lcd-test/contrast.php|Contrast page]]:
        * Set your monitor's contrast adjustment to the maximum, and then adjust the monitor's brightness and the individual R, G, and B gain and bias settings.        * Set your monitor's contrast adjustment to the maximum, and then adjust the monitor's brightness and the individual R, G, and B gain and bias settings.
        * Make black, grey, and white appear with no tint.        * Make black, grey, and white appear with no tint.
Line 47: Line 48:
 ^                    ^8-bit project\\ RGB levels / OOR^32-bit video levels\\ RGB levels / OOR^32-bit full range\\ RGB levels / OOR^YCbCr<->RGB\\ conversion matrix | ^                    ^8-bit project\\ RGB levels / OOR^32-bit video levels\\ RGB levels / OOR^32-bit full range\\ RGB levels / OOR^YCbCr<->RGB\\ conversion matrix |
 ^ :::                ^ :::          ^ :::          ^ :::          ^ :::     ^ ^ :::                ^ :::          ^ :::          ^ :::          ^ :::     ^
-^ .MPG MPEG-1 input  | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709 for proj764+  | +^ .MPG MPEG-1/2 input  | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709 for proj 1358x764 | 
-^ .MP4 h.264 input   | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709 for proj764+ +^ .MP4 MPEG-2 input  | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709 for hires file  | 
-^ .MTS h.264 input   | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709 always |  +^ .MP4 h.264 input   | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709 for anyres file
-^ .MOV h.264 input † | 0-255 / no   | 0-255 / no   | 0-255 / no   | rec.601 | +^ .MTS h.264 input   | 16-235 / yes | 16-235 / yes | 0-255 / yes | rec.709  |  
-^ .MOV ProRes input †| 0-255 / no   | 0-255 / no   | 0-255 / no   | rec.709 | +^ .MOV h.264 input † | 0-255 / no   | 0-255 / no   | 0-255 / no   | rec.601  
-^ .MOV Cineform input| 16-235 / yes | 16-235 / yes | 16-235 / yes | rec.709 | +^ .MOV ProRes input †| 0-255 / no   | 0-255 / no   | 0-255 / no   | rec.709  
-^ .AVI Cineform input| 16-235 / yes | 16-235 / yes | 16-235 / yes | rec.709 | +^ .MOV Cineform input *| 16-235 / yes | 16-235 / yes | 16-235 / yes | rec.709  
-^ .AVI YUV-10 (v210) input| 16-235 / yes | 16-235 / yes | 0-255 / yes  | rec.709 for proj764+ | +^ .AVI Cineform input *| 16-235 / yes | 16-235 / yes | 16-235 / yes | rec.709  
-^ Mainconcept MPEG-2 output|16-235 / yes|16-235 / yes| 0-255 / yes| rec.709 | +^ .AVI YUV-10 (v210) input *| 16-235 / yes | 16-235 / yes | 0-255 / yes  | rec.709 for proj 1358x764+ | 
-^ Mainconcept AVC/MP4 output|16-235 / yes|16-235 / yes| 0-255 / yes| rec.709 | +^ Mainconcept MPEG-2 output|16-235 / yes|16-235 / yes| 0-255 / yes| rec.709  
-^ Sony YUV-10 (v210) AVI output|16-235 / yes|16-235 / yes| 0-255 / yes| rec.709 |+^ Mainconcept AVC/MP4 output|16-235 / yes|16-235 / yes| 0-255 / yes| rec.709  
 +^ Sony YUV-10 (v210) AVI output *|16-235 / yes|16-235 / yes| 0-255 / yes| rec.709 |
  
-† Quicktime h.264 and ProRes input boost the gamma by 1/0.88.  Compensate by adding a Levels filter with 0.88 gamma (and no changes to the input and output limits) at the beginning of the filter chain.  It is a [[http://vitrolite.wordpress.com/2010/12/31/quicktime_gamma_bug/|documented bug]] in Quicktime:  +* Supports 10-bit precision
  
-  So yes, Vegas's handling of RGB levels is totally inconsistent and non-standard.  You'll need to do different things in your project depending on your input and output formats, project settings, and preferences.  +† Quicktime h.264 and ProRes input boost the gamma by 1/0.88.  Compensate by adding a Levels filter with 0.88 gamma (and no changes to the input and output limits) at the beginning of the filter chain.  It is a [[http://vitrolite.wordpress.com/2010/12/31/quicktime_gamma_bug/|documented bug]] in Quicktime   
 + 
 +  * Vegas's handling of RGB levels is totally inconsistent and non-standard.  You'll need to do different things in your project depending on your input and output formats, project settings, and preferences.  
   * A levels filter with the "Studio RGB to Computer RGB" preset expands RGB levels from 16-235 to 0-255.   * A levels filter with the "Studio RGB to Computer RGB" preset expands RGB levels from 16-235 to 0-255.
   * A Levels filter with the "Computer RGB to Studio RGB" preset compresses RGB levels from 0-255 to 16-235.   * A Levels filter with the "Computer RGB to Studio RGB" preset compresses RGB levels from 0-255 to 16-235.
Line 69: Line 73:
     * 8-bit RGB: R=0-255, G=0-255, B=0-255     * 8-bit RGB: R=0-255, G=0-255, B=0-255
   * Quicktime .MOV input requires Quicktime to be installed.  I use Quicktime Alternative 3.2.2.   * Quicktime .MOV input requires Quicktime to be installed.  I use Quicktime Alternative 3.2.2.
-  * Vegas can read .AVI Cineform and .MOV Cineform formats with 10-bit precision, thank to integration with the Cineform SDK Install the free GoPro Studio to get codecs that enable reading and writing of Cineform files.  (GoPro Studio version 2.0.0.285 tested) +  * Quicktime input suffers from precision errors that produce banding. 
-  * If Vegas is reading your input using the wrong YCbCr->RGB conversion matrix, you can compensate by using  [[http://www.dvinfo.net/forum/what-happens-vegas/115239-mixing-hd-709-sd-601-clips.html|601<->709 Channel Blend filter values]] at the beginning of your filter chain.+  * Cineform .MOV and .AVI input and output are enabled by installing the free GoPro Studio (version 2.0.0.285 tested) Vegas reads these files in 4:2:2 with 10-bit precision.  The codec included with GoPro Studio is supposed to support output of up to 1920 x 1080. 
 +  * .AVI input seems to support PCM audio of 16-bit precision at most. 
 +  * Compensate for an incorrect YCbCr<->RGB conversion matrix by using  [[http://www.dvinfo.net/forum/what-happens-vegas/115239-mixing-hd-709-sd-601-clips.html|601<->709 Channel Blend filter values]] at the beginning or end of your filter chain.
   * If your output renderer allows out-of-range values, prevent out-of-range values by adding a Curves filter to the output: the default curve clips values below 0 and above 255.  To clip values below 16 and above 235, add a "Studio RGB to Computer RGB" levels filter, then a default curve, then a "Computer RGB to Studio RGB" levels filter.   * If your output renderer allows out-of-range values, prevent out-of-range values by adding a Curves filter to the output: the default curve clips values below 0 and above 255.  To clip values below 16 and above 235, add a "Studio RGB to Computer RGB" levels filter, then a default curve, then a "Computer RGB to Studio RGB" levels filter.
 +=====Rendering======
 +  * Mainconcept MPEG-2 is my recommended renderer
 +    * It's fast and the quality is very good when you choose a high bit rate
 +    * It supports output of up to 80 Mbps CBR
 +    * It supports output greater than 4 GB
 +    * YouTube will accept this as input and convert it with no resampling or remapping of levels.
 +  * Mainconcept AVC/MP4 is not recommended
 +    * It's slow
 +    * The CBR option is broken.  Instead you can choose VBR with max bit rate equal to average.
 +    * When the output reaches 4 GB, rendering fails.
 +  * If you want h.264 output, I recommend rendering first to Mainconcept MPEG-2 at a high bit rate, and then recompressing with ffmpeg.
 +  * If you want ProRes output, you can render to a Sony YUV-10 (v210) .AVI file, and then use ffmpeg to compress to ProRes. 10-bit precision is preserved this way and the output quality is excellent.
 +  * To resolve out-of-memory errors or black or silent events in the output:
 +    * Make sure you have plenty of free memory.  Quit memory-hungry apps and services. 
 +    * In video prefs, set dynamic RAM preview max to 0. This leaves more memory for rendering.
 +    * Close and re-open Vegas just before rendering.
 +  * 32-bit rendering
 +    * You must render video and audio separately.  32-bit rendering is hopelessly unreliable otherwise.
 +    * Render audio to a .WAV file, and mux it with your video outside of Vegas.
 +
 =====Settings & Switches====== =====Settings & Switches======
-  * Resampling of video events means that frame blending will be used when the event frame rate doesn't match the output frame rate.  If the difference is tiny, e.g. 30 fps to 29.970 fps, you probably want to disable resampling so that frames are not blended.  Same for integer ratios, e.g. 60 fps to 30 fps.+  * Resampling of video events means that frame blending will be used when the event frame rate doesn't match the output frame rate.  If the difference is tiny, e.g. 30 fps to 29.970 fps, or when the difference is an integer ratio like 60 fps to 30 fps, you probably want to disable resampling so that frames are not blended.
  
 =====Workflow Tips===== =====Workflow Tips=====
-  * Video filters may be applied to source media, the timeline video events, video tracks, or to the video output (tools menu, video, output FX).   +  * To make fine adjustments to a filter slider, click it, hold down the CTRL key, and then turn your mouse's scroll wheel. 
-  * While editing, set the project to 8-bit mode and reduce the project resolution to match your full-screen preview device.  This will make preview of filter adjustments much more responsive.  Don't forget to change the project resolution back when you render. +  * Video filters may be applied to source media, the timeline video events, video tracks, or to the video output (tools menu, video, video output FX).   
-  * To apply the same filter settings to multiple events,  +  * A video filter applied to a track can be made to affect every track below it as well as the track itself (i.e. post-compositing instead of pre-compositing) by dragging the filter to the right of "compositing" in the filter chain. 
-  * +  * While editing, set the project to 8-bit mode and/or reduce the project resolution to match your full-screen preview device, or to an even smaller size.  This will make preview of filter adjustments much more responsive.  Don't forget to change the project resolution back when you render. 
 +  * To add a filter with a saved filter preset to multiple video events, select the events on the timeline, view Video FX, and then drag a preset onto the selected video events.  
 +  * When adding video filters using the plug-in chooser, the filter chain can be saved as a filter package by clicking Save As in the plug-in chooser dialog. 
 +  * To add a saved filter package to one or more events, view the plug-in manager, find the filter package and drag it onto the video event or onto multiple selected video events.  Filters added this way use the filter's default.
software/sony-vegas-pro.1381387075.txt.gz · Last modified: 2013/10/10 06:37 by balazer