Filming With Video Compression in Mind <TITLE></h1><div class="entry-meta"><span class="cat-links"><a href="https://www.brighthub.com/multimedia/video.aspx" rel="category tag">Digital Video</a></span> / By <span class="posted-by vcard author" itemtype="https://schema.org/Person" itemscope="itemscope" itemprop="author"> <a class="url fn n" title="View all posts by Shane Burley" href="https://www.brighthub.com/author/shaneburley" rel="author" itemprop="url"> <span class="author-name" itemprop="name">Shane Burley</span> </a> </span> / <span class="tags-links"><a href="https://www.brighthub.com/multimedia/video/topics/film-production.aspx" rel="tag">Film Production</a></span></div> </div> </header><!-- .entry-header --> <div class="entry-content clear" itemprop="text"> <h2>Distribution</h2> <p>The likelihood is that you will be distributing your digital video project through some online video publication or by adding it to a DVD. No matter what, you are most likely going to have to compress your final film, which cuts down its file size but makes you sacrifice quality and clarity. Since you know that you are going to do this there are film techniques that can help minimize your need for video compression.</p> <h2>Background</h2> <p>The most important thing that is affected by compression is the background, which will lose much of its visual consistency. Try to use lat lighting on the background, and much of the foreground, as a way of reducing band lighting. This is where many of the colors come together after compression. Always make sure that the entire location you are shooting in is lit, because otherwise you will have to change shutter speed settings or use gain to compensate. This will reduce the video quality before compression, which will make it almost unusable afterwards. You should also try to cut down on extreme contrasts between light and dark areas. Try to keep the background as generic as possible because if it is too engaging, the audience will focus on these areas that will be heavily distorted by compression.</p> <h2>Movement</h2> <p>When filming for this type of project try to make sure that there is not excessive movement within each frame. This makes the image more complicated and in need of a lot of clarity, which you will not have after video compression. Keep a fair amount of movement, both of the camera and of the action within the frame, but make sure not to go overboard with it.</p> <h2>Camera Tricks</h2> <p>You may want to avoid camera tricks like Chroma Key, unless you are using a simple background for that as well. If you do this kind of work make sure that the green or blue screen you are working with is flawless and that you observe many of the standard rules for using such a device. Make sure that it is lit evenly.</p> <h2>High Quality Camera</h2> <p>Use the highest quality camera and settings as you possibly can. The better the video is that you are filming then the less it will be noticeable once you have compressed it. If you have the ability to work on an extremely high quality, professional camera then this is the time to do it.</p> <h2>Making Concessions</h2> <p>Compression is just another time when you have to make compromises between your artistic vision and practicality. Don’t over compress the files, and make sure to get the settings just perfect so that the file size is at the maximum the specific system allows. This way you can get the highest possible quality while staying within the acceptable range.</p> <h2><small>This post is part of the series:</small> Video Compression</h2> <div>Here are different articles on video compression.</div> <ol> <li><a href="https://www.brighthub.com/multimedia/video/articles/5675.aspx">Compressing QuickTime Files</a></li> <li><a href="https://www.brighthub.com/multimedia/video/articles/55824.aspx">Basic Differences Between Audio and Video Compression</a></li> <li><a href="https://www.brighthub.com/multimedia/video/articles/16391.aspx">The Best Freeware Video Compression Programs</a></li> <li><a href="https://www.brighthub.com/multimedia/video/articles/7393.aspx">Filming With Video Compression in Mind</a></li> <li><a href="https://www.brighthub.com/multimedia/video/articles/76760.aspx">Compressing Videos for High Quality DVD</a></li> </ol> <div id="cfAdBlock-astra_entry_content_after_native_above_display"> <!-- Ezoic - astra_entry_content_after_native_above_display --><div id="ezoic-pub-ad-placeholder-128"></div><!-- End Ezoic - astra_entry_content_after_native_above_display --> </div> <div id="cfAdBlock-astra_entry_content_after"> <!-- Ezoic - astra_entry_content_after --><div id="ezoic-pub-ad-placeholder-110"></div><!-- End Ezoic - astra_entry_content_after --> </div> <div id="cfAdBlock-astra_entry_content_after_native_below_display"> <!-- Ezoic - astra_entry_content_after_native_below_display --><div id="ezoic-pub-ad-placeholder-124"></div><!-- End Ezoic - astra_entry_content_after_native_below_display --> </div> <div id="disqus_thread" data-bhTrackRegion="Comments"></div> </div><!-- .entry-content .clear --> </div> </article><!-- #post-## --> <nav class="navigation post-navigation" role="navigation"> <h2 class="screen-reader-text">Post navigation</h2> <div class="nav-links"><div class="nav-previous"><a href="https://www.brighthub.com/multimedia/video/articles/7387.aspx" rel="prev"><span class="ast-left-arrow">←</span> Previous Post</a></div><div class="nav-next"><a href="https://www.brighthub.com/computing/windows-platform/articles/7278.aspx" rel="next">Next Post <span class="ast-right-arrow">→</span></a></div></div> </nav> </main><!-- #main --> <div id="cfAdBlock-astra_entry_content_inline_top"> <!-- Ezoic - astra_entry_content_inline_top --><div id="ezoic-pub-ad-placeholder-111"><div id="div-gpt-ad-1378316917522-3"></div></div><!-- End Ezoic - astra_entry_content_inline_top --> </div> <div id="cfAdBlock-astra_entry_content_inline_middle_top"> <!-- Ezoic - astra_entry_content_inline_middle_top --><div id="ezoic-pub-ad-placeholder-112"></div><!-- End Ezoic - astra_entry_content_inline_middle_top --> </div> <div id="cfAdBlock-astra_entry_content_inline_middle_bottom"> <!-- Ezoic - astra_entry_content_inline_middle_bottom --><div id="ezoic-pub-ad-placeholder-113"></div><!-- End Ezoic - astra_entry_content_inline_middle_bottom --> </div> <div id="cfAdBlock-astra_entry_content_inline_middle_bottom_native"> <!-- Ezoic - astra_entry_content_inline_middle_bottom_native --><div id="ezoic-pub-ad-placeholder-125"></div><!-- End Ezoic - astra_entry_content_inline_middle_bottom_native --> </div> <div id="cfAdBlock-astra_entry_content_inline_bottom"> <!-- Ezoic - astra_entry_content_inline_bottom --><div id="ezoic-pub-ad-placeholder-114"></div><!-- End Ezoic - astra_entry_content_inline_bottom --> </div> <div id="cfAdBlock-astra_primary_content_bottom_native_above_display"> <!-- Ezoic - astra_primary_content_bottom_native_above_display --><div id="ezoic-pub-ad-placeholder-"></div><!-- End Ezoic - astra_primary_content_bottom_native_above_display --> </div> <div id="cfAdBlock-astra_primary_content_bottom"> <!-- Ezoic - astra_primary_content_bottom --><div id="ezoic-pub-ad-placeholder-116"></div><!-- End Ezoic - astra_primary_content_bottom --> </div> <div id="cfAdBlock-astra_primary_content_bottom_native_below_display"> <!-- Ezoic - astra_primary_content_bottom_native_below_display --><div id="ezoic-pub-ad-placeholder-"></div><!-- End Ezoic - astra_primary_content_bottom_native_below_display --> </div> </div><!-- #primary --> <div itemtype="https://schema.org/WPSideBar" itemscope="itemscope" id="secondary" class="widget-area secondary" role="complementary"> <div class="sidebar-main" > <div id="cfAdBlock-astra_sidebars_before"> <!-- Ezoic - astra_sidebars_before --><div id="ezoic-pub-ad-placeholder-119"><div id="div-gpt-ad-1378316917522-0"></div></div><!-- End Ezoic - astra_sidebars_before --> </div> <!--begin channel recemt articles --> <aside class="widget widget_recent_entries"> <h2 class="widget-title">Recent</h2> <ul><li style="margin-bottom:20px;line-height:1.6em;"><a href="https://www.brighthub.com/multimedia/video/articles/127608.aspx">Pinnacle Studio 16: New Look and Feel to Classic Video Editing Software</a></li><li style="margin-bottom:20px;line-height:1.6em;"><a href="https://www.brighthub.com/multimedia/video/articles/127566.aspx">Using Keyframes in VideoStudio Pro X5 to Create Custom Pan & Zoom Effects</a></li><li style="margin-bottom:20px;line-height:1.6em;"><a href="https://www.brighthub.com/multimedia/video/articles/127565.aspx">Screen Recording With VideoStudio Pro X5: Tips for Producing a Great Screencast</a></li><li style="margin-bottom:20px;line-height:1.6em;"><a href="https://www.brighthub.com/multimedia/video/articles/127564.aspx">Corel VideoStudio Pro X5 Review: Great New Features Including Screen Recording Tools</a></li><li style="margin-bottom:20px;line-height:1.6em;"><a href="https://www.brighthub.com/multimedia/video/articles/127526.aspx">Complete Guide to Adobe Premiere Elements Tutorials</a></li><li style="margin-bottom:20px;line-height:1.6em;"><a href="https://www.brighthub.com/multimedia/video/articles/126790.aspx">Adobe Premiere CS5 Tips for Video Editing</a></li></ul> </aside> <!--end channel featured articles--> <div id="cfAdBlock-astra_sidebars_inline_middle"> <!-- Ezoic - astra_sidebars_inline_middle --><div id="ezoic-pub-ad-placeholder-120"></div><!-- End Ezoic - astra_sidebars_inline_middle --> </div> <div id="cfAdBlock-astra_sidebars_inline_middle_native"> <!-- Ezoic - astra_sidebars_inline_middle_native --><div id="ezoic-pub-ad-placeholder-130"></div><!-- End Ezoic - astra_sidebars_inline_middle_native --> </div> <div id="cfAdBlock-astra_sidebars_after_native_above_display"> <!-- Ezoic - astra_sidebars_after_native_above_display --><div id="ezoic-pub-ad-placeholder-131"><div id="div-gpt-ad-1378316917522-1"></div></div><!-- End Ezoic - astra_sidebars_after_native_above_display --> </div> <div id="cfAdBlock-astra_sidebars_after"> <!-- Ezoic - astra_sidebars_after --><div id="ezoic-pub-ad-placeholder-121"><div id="div-gpt-ad-1378316917522-1"></div></div><!-- End Ezoic - astra_sidebars_after --> </div> <div id="cfAdBlock-astra_sidebars_after_native_below_display"> <!-- Ezoic - astra_sidebars_after_native_below_display --><div id="ezoic-pub-ad-placeholder-129"><div id="div-gpt-ad-1378316917522-1"></div></div><!-- End Ezoic - astra_sidebars_after_native_below_display --> </div> </div><!-- .sidebar-main --> </div><!-- #secondary --> </div> <!-- ast-container --> </div><!-- #content --> <div id="cfAdBlock-astra_footer_before"> <!-- Ezoic - astra_footer_before --><div id="ezoic-pub-ad-placeholder-117"></div><!-- End Ezoic - astra_footer_before --> </div> <footer itemtype="https://schema.org/WPFooter" itemscope="itemscope" id="colophon" class="site-footer" role="contentinfo"> <div class="ast-small-footer footer-sml-layout-2"> <div class="ast-footer-overlay"> <div class="ast-container"> <div class="ast-small-footer-wrap" > <div class="ast-row ast-flex"> <div class="ast-small-footer-section ast-small-footer-section-1 ast-small-footer-section-equally ast-col-md-6 ast-col-xs-12" > Copyright © 2020 <span class="ast-footer-site-title">Bright Hub</span>. All Rights Reserved. </div> <div class="ast-small-footer-section ast-small-footer-section-2 ast-small-footer-section-equally ast-col-md-6 ast-col-xs-12" > <a href="/content/about/">About</a> | <a href="/content/copyright/">Copyright Policy</a> | <a href="/content/privacy/">Privacy Policy</a> | <a href="/content/terms/">Terms of Use</a> </div> </div> <!-- .ast-row.ast-flex --> </div><!-- .ast-small-footer-wrap --> </div><!-- .ast-container --> </div><!-- .ast-footer-overlay --> </div><!-- .ast-small-footer--> </footer><!-- #colophon --> <div id="cfAdBlock-astra_footer_after"> <!-- Ezoic - astra_footer_after --><div id="ezoic-pub-ad-placeholder-118"></div><!-- End Ezoic - astra_footer_after --> </div> </div><!-- #page --> <script> (function(jQuery){ if(!jQuery) { return; } var reloacteAdUnitBefore = function(adSelector, targetSelector){ var adBlock = jQuery(adSelector); var target = jQuery(targetSelector); if(target.length === 0 || adBlock.length === 0) { adBlock.remove(); return; } adBlock.insertBefore(target); } reloacteAdUnitBefore("#cfAdBlock-astra_entry_content_inline_top", ".entry-content p:eq(1)"); reloacteAdUnitBefore("#cfAdBlock-astra_entry_content_inline_middle_top", ".entry-content p:eq(3)"); reloacteAdUnitBefore("#cfAdBlock-astra_entry_content_inline_middle_bottom", ".entry-content p:eq(5)"); reloacteAdUnitBefore("#cfAdBlock-astra_entry_content_inline_middle_bottom_native", ".entry-content p:eq(6)"); reloacteAdUnitBefore("#cfAdBlock-astra_entry_content_inline_bottom", ".entry-content p:eq(7)"); reloacteAdUnitBefore("#cfAdBlock-astra_sidebars_inline_middle", ".sidebar-main aside:eq(1)"); reloacteAdUnitBefore("#cfAdBlock-astra_sidebars_inline_middle_native", ".sidebar-main aside:eq(2)"); })(window.jQuery); </script> <script> (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); }()); </script> <link rel='stylesheet' id='lazyload-spinner-css' href='https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.1.0/jquery.lazyloadxt.spinner.min.css?ver=5.2.2' type='text/css' media='all' /> <script type='text/javascript'> /* <![CDATA[ */ var astra = {"break_point":"921","isRtl":"","query_vars":"{\"page\":\"\",\"name\":\"7393\",\"category_name\":\"multimedia\\\/video\"}","edit_post_url":"https:\/\/www.brighthub.com\/wp-admin\/post.php?post={{id}}&action=edit","ajax_url":"https:\/\/www.brighthub.com\/wp-admin\/admin-ajax.php","infinite_count":"2","infinite_total":"0","pagination":"number","infinite_scroll_event":"scroll","infinite_nonce":"d6d29ed6d9","no_more_post_message":"No more posts to show.","grid_layout":"2","site_url":"https:\/\/www.brighthub.com","show_comments":"Show Comments","masonryEnabled":"","blogMasonryBreakPoint":"768"}; /* ]]> */ </script> <script type='text/javascript' src='https://www.brighthub.com/wp-content/themes/astra/assets/js/minified/style.min.js?ver=1.8.7'></script> <script type='text/javascript' src='https://www.brighthub.com/wp-content/themes/astra-bright-hub/assets/js/unminified/mediafactual/tracking.js?ver=5.2.2'></script> <script type='text/javascript'> /* <![CDATA[ */ var astraAddon = {"sticky_active":""}; /* ]]> */ </script> <script type='text/javascript' src='https://www.brighthub.com/wp-content/plugins/astra-addon/addons/advanced-search/assets/js/minified/advanced-search.min.js?ver=1.8.7'></script> <script type='text/javascript' src='https://www.brighthub.com/wp-includes/js/wp-embed.min.js?ver=5.2.2'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.1.0/jquery.lazyloadxt.min.js?ver=5.2.2'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.1.0/jquery.lazyloadxt.srcset.min.js?ver=5.2.2'></script> <script> /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); </script> <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","licenseKey":"650583de9b","applicationID":"239260795","transactionName":"ZlIGYktZC0dXAUcNDF8YJVVNUQpaGRFaCgRdUg==","queueTime":0,"applicationTime":437,"atts":"ShUFFANDGEk=","errorBeacon":"bam.nr-data.net","agent":""}</script><script data-cfasync="false" type="text/javascript"> if (typeof $ezJQuery == 'undefined') { if (typeof jQuery == 'undefined') { document.write('<scr'+'ipt type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></sc'+'ript>'); } else { $ezJQuery = jQuery; } } if (typeof $ezJQuery == 'undefined' && typeof jQuery != 'undefined') { $ezJQuery = jQuery.noConflict(true); } if (typeof $ezJQuery != 'undefined') { $ezJQuery("body").mousemove(function(e){ ez_last_activity_count = ez_tos_track_count; }); $ezJQuery("body").keypress(function(e){ ez_last_activity_count = ez_tos_track_count; }); $ezJQuery(window).scroll(function(e){ ez_last_activity_count = ez_tos_track_count; }); } else { ez_last_activity_count = 8; } </script><script type='text/javascript' src='//www.brighthub.com/utilcave_com/inc/tb.php?dirname=brighthub_com&cb=188-38?template=orig' data-cfasync="false" async></script> <script> /* --- getComputedStyle() doesn't do what you think it does. To get styles dynamically added to elements by scripts, there is no unified cross-browser way to do it, so you have to construct a string (like cssText in Chrome) and use that instead. FF/IE do not work --------------------------------------------------------------------------------------- */ function ezoGetCurrentStyles(element) { if (typeof $ezJQuery === "undefined") return; if (typeof(__JASS) !== 'undefined' && typeof(__JASS.isChrome) === 'function' && __JASS.isChrome()) return window.getComputedStyle(element).cssText; var styles = window.getComputedStyle(element); var cssText = []; for (var prop in styles) { if (typeof(styles[prop]) === 'string' && styles[prop] !== '') { cssText[cssText.length] = (prop.replace(/[A-Z]/g, function (x) { return '-' + (x.toLowerCase()) })) + ': ' + styles[prop]; } } return cssText.join('; ') + ';'; } /* --- Moves every class from the body tag to the stylesheet_body element --------------------------------------------------------------------------------------- */ function ezoBodyEventListener() { var attr = $ezJQuery('body').attr('class'); if (typeof attr !== typeof undefined && attr !== false) { var ezBodyClass = ""; $ezJQuery.each(attr.split(' '), function (k, v) { if (v.indexOf('ez') !== 0) { /* remove ezn-332 or ezCSS classes */ ezBodyClass = ezBodyClass.length > 0 ? ezBodyClass + " " + v : v; } }); var newStyle = typeof ezoOrigSBStyle !== "undefined" ? ezoOrigSBStyle + ' ' + ezBodyClass : ezBodyClass; if (newStyle.length > 0) { $ezJQuery('#stylesheet_body').attr('class', newStyle); } } setTimeout(ezoBodyEventListener, ezoBELTime); ezoBELTime = ezoBELTime * 2; } var ezoBELTime = 10; var ezoOrigSBStyle = $ezJQuery('#stylesheet_body').attr('class'); setTimeout(ezoBodyEventListener, ezoBELTime); /* ------------------------------------------------------------------------------------- */ if (ezoFormfactor != "2") { var ezIgnoreTags = ['SCRIPT', 'IFRAME', 'STYLE', 'LINK', 'BODY', 'HEAD']; $ezJQuery(document).on('DOMNodeInserted', function (e) { try { var element = e.target; var getStyle = function (el, prop) { if (typeof getComputedStyle !== 'undefined') { return getComputedStyle(el, null).getPropertyValue(prop); } else { return el.currentStyle[prop]; } }; //move our before and after spans to be first or last sibling elements var after_span = $ezJQuery(element).prev('.ezoic-after-el'); if (after_span != null) { after_span.insertAfter($ezJQuery(element)); } var before_span = $ezJQuery(element).next('.ezoic-before-el'); if (before_span != null) { before_span.insertBefore($ezJQuery(element)); } if (ezIgnoreTags.indexOf(element.tagName) == -1) { if ($ezJQuery(element).hasClass('ezoic-wrapper') == false && $ezJQuery(element).hasClass('ezoic-no-wrapper') == false) { if ($ezJQuery(element).closest('.ezoic-no-wrapper').length < 1 && $ezJQuery(element).closest('.ezoic-ad').length < 1 && $ezJQuery(element).closest('.ezo_ad').length < 1 && $ezJQuery(element).closest('.ezoic-wrapper').length < 1 && getStyle(element, 'position') != 'fixed' && getStyle(element, 'position') != 'absolute') { $ezJQuery(element).addClass('ezoic-wrapper'); /* this is a kludgy failsafe to prevent the array from going crazy. the checker runs every 200ms, btw. */ if (ezo_elements_to_check.length < 100) { ezo_elements_to_check.push(element); } ezo_resize_interval_count = 0; //reset interval timer if ($ezJQuery(element).hasClass('ez_wrap_ins') == false && $ezJQuery(element).parent().is('body')) { $ezJQuery(element).wrap("<ins class='ezoic-wrapper ez_wrap_ins'></ins>"); $ezJQuery(element).css('max-width', 'none'); //var ezo_style = getComputedStyle(element); var cssText = ezoGetCurrentStyles(element); var rand_class = 'ezo_wrapper_' + Math.floor((Math.random() * 100000) + 1); var ezoTempStyle = document.createElement('style'); ezoTempStyle.innerHTML = '.' + rand_class + '{' + cssText + '}'; document.getElementsByTagName('head')[0].insertBefore(ezoTempStyle, document.getElementsByTagName('head')[0].firstChild); $ezJQuery(element).addClass('ez_wrap_ins'); $ezJQuery(element).addClass(rand_class); $ezJQuery(element).unwrap('ins'); } } } } } catch (e) { console.log(e) } }); } </script> <script language="javascript"> </script> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.brighthub.com", "potentialAction": { "@type": "SearchAction", "target": "http://www.brighthub.com/ez-site-search/?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> <script> $ezJQuery(function() { if (typeof run_body_onload == 'function') { run_body_onload(); } if (typeof ezoicJSPageLoad == 'function') { ezoicJSPageLoad($ezJQuery); } }); function ezoic_block_page_ad_placement(lid, el) { $ezJQuery.ajax({ url: "/utilcave_com/bap.php?l="+lid+"&p="+window.location.pathname+"&d="+did, context: document.body, statusCode: { 403: function () { window.location.replace("http://www.ezoic.com/publisher.php?msg=Please%20log%20in%20to%20your%20ezoic%20account%20to%20block%20ad%20positions%20on%20your%20site.&rurl=" + encodeURIComponent("http://" + window.location.host + "/utilcave_com/auth.php?rurl=" + window.location.href)); } }, success: function(){ $ezJQuery(el).closest('.ezoic-ad').hide(); $ezJQuery(el).closest('.ezoic-ad').parent().hide(); } }); } </script> <script type='text/javascript'>__ez.evt.add(window,"load",function(){var a="ra-585ada819945d9d3",b="true",c="";if(1==ezoFormfactor&&"true"===b){var d=document.createElement("script");d.async=!0,d.onload=function(){ezExcludeDoctor={addthis:1},addthis.layers(function(a){a.destroy("share")}),setTimeout(function(){addthis.layers({share:{position:""==c?"left":c,responsive:!1}})},0)},d.setAttribute("src","https://s7.addthis.com/js/300/addthis_widget.js#pubid="+(""!=a?a:"ra-57054ddedfb1b3c2")),document.body.appendChild(d)}});</script><script type='text/javascript'>var __ez_rp_opts={activeLayoutTester:!1,isOn:"true",showImages:"",theme:"",locations:"",title:"Related Articles on this Site",showSocial:"false",fbURL:"BrightHub",twitterURL:"brighthub",gplusURL:"https://plus.google.com/share?url=https%3A%2F%2Fwww.brighthub.com%2Fmultimedia%2Fvideo%2Farticles%2F7393.aspx",contentURL:"https://www.brighthub.com/multimedia/video/articles/7393.aspx",swipe:"false"},__ez_rp_script=document.createElement("script");__ez_rp_script.setAttribute("async",""),__ez_rp_script.setAttribute("src","/utilcave_com/apps/js/recommended_pages.js?cb=7"),document.getElementsByTagName("head")[0].appendChild(__ez_rp_script),function(b){var b=b,c=b.document,d=b.screen;b.touchSwipeListener=function(f){var g={startX:0,endX:0},h={moveHandler:function(){},redirectHandler:function(){},endHandler:function(){},startHandler:function(){},scrollEndHandler:function(){},minLengthRatio:0.2},i=function(){return g.endX>g.startX?"prev":"next"},j=function(){var m=Math.ceil(d.width*f.minLengthRatio);return Math.abs(g.endX-g.startX)>m},l={scrollEnd:function(){var n="innerHeight"in b?b.innerHeight:c.documentElement.offsetHeight,o=c.body,p=c.documentElement,q=Math.max(o.scrollHeight,o.offsetHeight,p.clientHeight,p.scrollHeight,p.offsetHeight);windowBottom=n+b.pageYOffset,windowBottom>=q&&q>n+400&&f.scrollEndHandler()},touchStart:function(m){0<m.touches.length&&(g.startX=m.touches[0].pageX,f.startHandler(i()))},touchMove:function(m){0<m.touches.length&&(g.endX=m.touches[0].pageX,f.moveHandler(i(),j()))},touchEnd:function(m){var n=m.changedTouches||m.touches;0<n.length&&(g.endX=n[0].pageX,j()&&f.redirectHandler(i())),f.endHandler(i())}};return function(){for(var m in h)h.hasOwnProperty(m)&&(f[m]||(f[m]=h[m]))}(),c.addEventListener?{on:function(){c.addEventListener("touchstart",l.touchStart,!1),c.addEventListener("touchmove",l.touchMove,!1),c.addEventListener("touchend",l.touchEnd,!1),b.addEventListener("scroll",l.scrollEnd,!1)},off:function(){c.removeEventListener("touchstart",l.touchStart),c.removeEventListener("touchmove",l.touchMove),c.removeEventListener("touchend",l.touchEnd),b.removeEventListener("scroll",l.scrollEnd)}}:{on:function(){},off:function(){}}}}(window),function(b){var c=b.document,d=function(){var h,i,e={},f={prev:null,next:null},g={prev:null,next:null};return{init:function(){this.retrievePageSiblings();f.next&&(this.renderArrows(),this.syncUI())},syncUI:function(){var j=this;h=new b.touchSwipeListener({moveHandler:function(k,l){l?g[k]&&f[k]&&g[k].classList.add("visible"):g[k].classList.remove("visible")},scrollEndHandler:function(){},startHandler:function(){i&&clearTimeout(i),e.classList.add("visible")},endHandler:function(){g.next.classList.remove("visible"),g.prev.classList.remove("visible"),i=setTimeout(function(){e.classList.remove("visible")},1500)},redirectHandler:function(k){j[k]&&j[k]()}}),h.on()},retrievePageSiblings:function(){f.prev=c.querySelector("head > link[rel=prev]"),f.next=c.querySelector("head > link[rel=next]")},renderArrows:function(){var k=function(l){var m=c.createElement("span");m.className="icon-wrap "+l;var n=c.createElement("div"),o=c.createElement("a");return o.href="prev"===l?"javascript:window.history.go(-1);":f[l].href,o.className=l,o.appendChild(m),o.appendChild(n),o};g.next=k("next"),g.prev=k("prev"),e=function(l,m){var n=c.createElement("nav");return n.className="nav-multithumb",n.appendChild(m),n.appendChild(l),c.getElementsByTagName("body")[0].appendChild(n),n}(g.next,g.prev)},showLoadingScreen:function(){b.scrollTo(0,0);var j=c.createElement("div");j.className="spn-freezing-overlay",c.getElementsByTagName("body")[0].appendChild(j)},prev:function(){this.showLoadingScreen(),setTimeout(function(){b.location.href=b.history.go(-1)},1e3)},next:function(){f.next&&(this.showLoadingScreen(),setTimeout(function(){b.location.href=f.next.href},1e3))}}}();b.swipePageNav=d}(window);</script> <script type="text/javascript"> var __inScopeForCCPA = false; function __uspapi(command, version, callback) { var response = null; var successs = false; if (command === "getUSPData" && version === 1) { var uspString = "1"; // Version if (__inScopeForCCPA) { uspString += "N"; // Has Explicit Notice for Opt Out been provided (ex footer or minor consent modal) var result; var consentCookie = (result = new RegExp('(?:^|; )ezoccpaconsent=([^;]*)').exec(document.cookie)) ? (result[1]) : null; if (consentCookie === "nonconsent") { uspString += "N"; } else { uspString += "Y"; } uspString += "N" // Is pub a signatory to the IAB Limited Service Provider Agreement (http://www.iabprivacy.com/) } else { uspString += "---"; } response = { uspString: uspString, version: 1 }; success = true; } return callback(response, success); }; function __receiveUspapiMessage(event) { if (event.data.hasOwnProperty('__uspapiCall')) { __uspapi('getUSPData', 1, (uspData, success) => { event.source.postMessage({ __uspapiReturn: { returnValue: uspData, success: success, callId: event.data.__uspapiCall.callId } }, event.origin); }); } return null; }; window.addEventListener("message", __receiveUspapiMessage, false); </script> <script type="text/javascript"> (function(f,a){function g(b,a,c){b.addEventListener?b.addEventListener(a,c):b.attachEvent("on"+a,function(){c.call(b)})}function k(b){b&&("string"==typeof b["class"]&&b["class"]&&a.getElementById("uglipop_popbox").setAttribute("class",b["class"]),b.keepLayout&&!b["class"]&&a.getElementById("uglipop_popbox").setAttribute("style","position:relative;height:300px;width:300px;background-color:white;opacity:1;"),"string"==typeof b.content&&b.content&&"html"==b.source&&(a.getElementById("uglipop_popbox").innerHTML=b.content),"string"==typeof b.content&&b.content&&"div"==b.source&&(a.getElementById("uglipop_popbox").innerHTML=a.getElementById(b.content).innerHTML));a.getElementById("uglipop_overlay_wrapper").style.display="";a.getElementById("uglipop_overlay").style.display="";a.getElementById("uglipop_content_fixed").style.display=""}function h(){a.getElementById("uglipop_overlay_wrapper").style.display="none";a.getElementById("uglipop_overlay").style.display="none";a.getElementById("uglipop_content_fixed").style.display="none"}g(a,"DOMContentLoaded",function(){var b=a.createElement("div"),e=a.createElement("div"),c=a.createElement("div"),d=a.createElement("div");e.id="uglipop_content_fixed";e.setAttribute("style","position:fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);-webkit-transform: translate(-50%, -50%);-ms-transform: translate(-50%, -50%);opacity:1;z-index:10000000;");c.id="uglipop_popbox";d.id="uglipop_overlay_wrapper";d.setAttribute("style","position:absolute;top:0;bottom:0;left:0;right:0;display:none");b.id="uglipop_overlay";b.setAttribute("style","position:fixed;top:0;bottom:0;left:0;right:0;opacity:0.3;width:100%;height:100%;background-color:black;");d.appendChild(b);e.appendChild(c);a.body.appendChild(d);a.body.appendChild(e);a.getElementById("uglipop_overlay_wrapper").style.display="none";a.getElementById("uglipop_overlay").style.display="none";a.getElementById("uglipop_content_fixed").style.display="none";d.addEventListener("click",h);g(f,"keydown",function(a){27==a.keyCode&&h()});f.uglipop=k})})(window,document); var ezRBA = (function() { function init() { var reportAdsBtns = document.querySelectorAll('.ez-report-ad-button'); for (var i = 0; i < reportAdsBtns.length; i++) { reportAdsBtns[i].addEventListener('click', function(e) { var url = '<iframe src="https://ezoic.com/pub/reportads/reportads.html' + e.target.getAttribute('name') + '" width="400" height="500" style="border-radius: 10px; box-shadow: 2px 2px 30px 6px rgba(0,0,0,0.75); border: 1px solid black;"></iframe>' uglipop({ class: 'none', source: 'html', content: url, }); }); } function bindEvent(element, eventName, eventHandler) { if (element.addEventListener) { element.addEventListener(eventName, eventHandler, false); } else if (element.attachEvent) { element.attachEvent('on' + eventName, eventHandler); } } bindEvent(window, 'message', function(e) { if (e.data === 'close-report-ad-modal') { document.getElementById('uglipop_overlay_wrapper').style.display = 'none'; document.getElementById('uglipop_overlay').style.display = 'none'; document.getElementById('uglipop_content_fixed').style.display = 'none'; } }) } return { init: init }; })(); ezRBA.init(); </script> <script type='text/javascript' data-cfasync='false'>(function(){function b(e,c){for(var d=0;d<c.length;d++){var f=c[d];if(0==f.complete||"undefined"!=typeof f.readyState&&4>f.readyState){var g=f.getAttribute("src")||f.currentSrc;"undefined"!=typeof f.readyState&&0==f.readyState?f.addEventListener("loadstart",function(h){var k=h.getAttribute("src")||h.currentSrc;window.ezorqs(h,k)}):(g=f.getAttribute("src")||f.currentSrc,window.ezorqs(f,g));f.addEventListener("load",function(h){var k=h.currentTarget.getAttribute("src")||h.srcElement.currentSrc;window.ezorqe(h, k)});f.addEventListener("loadeddata",function(h){var k=h.currentTarget.getAttribute("src")||h.srcElement.currentSrc;window.ezorqe(h,k)});f.addEventListener("error",function(h){var k=h.currentTarget.getAttribute("src")||h.srcElement.currentSrc;window.ezorqe(h,k)})}}}function a(e){for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].href==e)return!0;return!1}b("img",document.querySelectorAll("img"));b("video",document.querySelectorAll("video"));b("audio",document.querySelectorAll("audio")); (function(e){for(var c=0;c<e.length;c++){var d=e[c];if(("preload"==d.getAttribute("rel")||"stylesheet"==d.getAttribute("rel"))&&null!=d.getAttribute("href")&&a(d.getAttribute("href"))){window.ezorqs(d,d.getAttribute("href"));var f=document.createElement("img");f.onerror=function(g){"undefined"!=typeof g.path&&"undefined"!=typeof g.path[0].currentSrc?window.ezorqe(d,g.path[0].currentSrc):"undefined"!=typeof g.srcElement&&"undefined"!=typeof g.srcElement.href&&window.ezorqe(d,g.srcElement.href)};f.src= d.getAttribute("href")}}})(document.querySelectorAll("link"));"undefined"!=typeof window.__ez.ssaf&&-1<window.__ez.ssaf.indexOf(16)&&"undefined"!==typeof window.__ez.sshsdef&&!1===window.__ez.sshsdef&&Element.prototype.addEventListener&&("function"==typeof window.onload&&(window.addEventListener("load",window.onload),window.onload=null),"function"==typeof document.onload&&(document.addEventListener.addEventListener("load",document.onload),document.onload=null))})();</script></body> </html>