<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>The Don&#039;s Craptastic World &#187; fix</title>
<atom:link href="http://www.donsalva.com/tag/fix/feed" rel="self" type="application/rss+xml" />
<link>http://www.donsalva.com</link>
<description>A meta-level binary dude embedded to a multimedia proxy world!</description>
<lastBuildDate>Mon, 21 May 2012 13:36:04 +0000</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<item>
<title>VirtualDub: How to prevent asynchronous sound</title>
<link>http://www.donsalva.com/2010/08/24/virtualdub-how-to-prevent-fix-asynchronous-sound</link>
<comments>http://www.donsalva.com/2010/08/24/virtualdub-how-to-prevent-fix-asynchronous-sound#comments</comments>
<pubDate>Tue, 24 Aug 2010 18:15:45 +0000</pubDate>
<dc:creator>Don Salva</dc:creator>
<category>
<![CDATA[Software]]>
</category>
<category>
<![CDATA[Tips and Tricks]]>
</category>
<category>
<![CDATA[asynchron]]>
</category>
<category>
<![CDATA[asynchronous]]>
</category>
<category>
<![CDATA[encoding]]>
</category>
<category>
<![CDATA[fix]]>
</category>
<category>
<![CDATA[guide]]>
</category>
<category>
<![CDATA[how-to]]>
</category>
<category>
<![CDATA[sound]]>
</category>
<category>
<![CDATA[transcoding]]>
</category>
<category>
<![CDATA[tutorial]]>
</category>
<category>
<![CDATA[vdub]]>
</category>
<category>
<![CDATA[virtualdub]]>
</category>
<guid isPermaLink="false">http://www.donsalva.com/?p=1000</guid>
<description>
<![CDATA[According to some comments from here, here and in some of the Emails I get people sometime experience asynchronous sound. As I have speculated here, this is most likely due the CPU being overwhelmed with the whole encoding process. Let me try to explain, and bear in mind, this is just speculation based on nothing [...]<h3>Related posts:</h3><ol>
<li><a href='http://www.donsalva.com/2009/03/01/virtualdub-720p-hd-settings-youtube' rel='bookmark' title='VirtualDub 720p HD settings for YouTube! [Good quality, small file size]'>VirtualDub 720p HD settings for YouTube! [Good quality, small file size]</a></li>
<li><a href='http://www.donsalva.com/2009/09/07/fraps-virtualdub-save-disk-space-good-quality-small-filesize' rel='bookmark' title='Fraps &amp; VirtualDub: How to save disk space and enjoy good quality, small file size HD video clips'>Fraps &#038; VirtualDub: How to save disk space and enjoy good quality, small file size HD video clips</a></li>
<li><a href='http://www.donsalva.com/2010/08/24/virtualdub-how-to-split-and-merge-video-files' rel='bookmark' title='VirtualDub: How to split and merge video files'>VirtualDub: How to split and merge video files</a></li>
</ol>]]>
</description>
<content:encoded>
<![CDATA[<p>According to some comments from <a href="http://www.donsalva.com/2009/03/01/virtualdub-720p-hd-settings-youtube">here</a>, <a href="http://www.donsalva.com/2009/09/07/fraps-virtualdub-save-disk-space-good-quality-small-filesize">here</a> and in some of the Emails I get people sometime experience asynchronous sound. As I have speculated <a href="http://www.donsalva.com/2009/03/01/virtualdub-720p-hd-settings-youtube#comment-4037">here</a>, this is most likely due the CPU being overwhelmed with the whole encoding process. Let me try to explain, and bear in mind, this is just speculation based on nothing but my own suspicions.</p>
<p>When you set the threads in the x264 codec to fully utilize your CPU, meaning all cores, and then some, you make sure the CPU is working at its maximum capacity just for video processing.</p>
<p>If you then add audio to the pile, the CPU just hasn't got any resources to spare, and if it does, it does a miserable job, thus resulting in lag which translates in asynchronous sound.</p>
<p>If that is the case, lowering the numbers of threads in the x264 codec should fix it. This way you can have both audio and video encoding in one go. I haven't tried this method, because I employ a different solution.<span id="more-1000"></span></p>
<p><strong>How I do it:</strong></p>
<p>I process video and audio separately. First I encode/transcode the video, leaving the audio in its original form. Then I encode the audio and overwrite it.</p>
<p>Let say we have recorded a video and named this video myvideo_unedited.avi .</p>
<p>Transcode/Encode your <em>myvideo_unedited.avi</em> according to <a href="http://www.donsalva.com/2009/03/01/virtualdub-720p-hd-settings-youtube">this</a> or <a href="http://www.donsalva.com/2009/09/07/fraps-virtualdub-save-disk-space-good-quality-small-filesize">this</a> BUT leave "Audio" at "Direct Stream copy". DO NOT change it like suggested in the aforementioned links and name this new video for instance <em>transcoded-myvideo_RAWAUDIO.avi</em>.</p>
<p>Now open <em>transcoded-myvideo_RAWAUDIO.avi</em> and set your "Video" to "Direct Stream copy". In "Audio" you set it to "Full Processing Mode". Go on and set your "Compression", "Volume", and other settings to your liking and save this new sound via "File"-&gt;"Save WAV...". The WAV-file is called the same as the video, in this case it'll be <em>transcoded-myvideo_RAWAUDIO.wav.</em></p>
<p>Now set your "Audio" to "Direct Stream copy", and click "Audio from another file..." and select the <em>new transcoded-myvideo_RAWAUDIO.wav</em> and save this new video with its new audio via "File"-&gt;"Save as AVI..." and name it for example <em>myvideo_final.avi</em>.</p>
<p>&nbsp;</p>
<p>You're surely asking why I'm doing this stupid extra work, when I can just lower the threads and be possibly done with it. The answer is transcoding/encoding speed. Lowering the threads in the x264 codec translates into longer transcoding time. Processing video needs much, much more time, than processing sound does.</p>
<p>Say for example, if I were to encode a 15 min. video, and I'd lower the threads just so I can process sound and video in one go, the whole process might take me maybe 1 hour, 30 min. If I encode video first, and leave the sound alone, the process takes me about 1 hour to complete. Then I process the sound alone which takes about 10 seconds. After that I merge both and I'm done in 1 hour and 5 min. That's 25 minutes shaved off.</p>
<p>Another important notice: Sometimes the sound is asynchronous when you play it in your vlc or any other player. However after you upload your video to YouTube the sound magically seems to be synchronous again. I haven't got a clue why that is but it happens sometimes.</p>
<h3>Related posts:</h3><ol>
<li><a href='http://www.donsalva.com/2009/03/01/virtualdub-720p-hd-settings-youtube' rel='bookmark' title='VirtualDub 720p HD settings for YouTube! [Good quality, small file size]'>VirtualDub 720p HD settings for YouTube! [Good quality, small file size]</a></li>
<li><a href='http://www.donsalva.com/2009/09/07/fraps-virtualdub-save-disk-space-good-quality-small-filesize' rel='bookmark' title='Fraps &amp; VirtualDub: How to save disk space and enjoy good quality, small file size HD video clips'>Fraps &#038; VirtualDub: How to save disk space and enjoy good quality, small file size HD video clips</a></li>
<li><a href='http://www.donsalva.com/2010/08/24/virtualdub-how-to-split-and-merge-video-files' rel='bookmark' title='VirtualDub: How to split and merge video files'>VirtualDub: How to split and merge video files</a></li>
</ol>]]>
</content:encoded>
<wfw:commentRss>http://www.donsalva.com/2010/08/24/virtualdub-how-to-prevent-fix-asynchronous-sound/feed</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>How to fix the video lag in Firefox!</title>
<link>http://www.donsalva.com/2009/09/05/how-to-fix-the-video-lag-in-firefox</link>
<comments>http://www.donsalva.com/2009/09/05/how-to-fix-the-video-lag-in-firefox#comments</comments>
<pubDate>Sat, 05 Sep 2009 08:14:51 +0000</pubDate>
<dc:creator>Don Salva</dc:creator>
<category>
<![CDATA[Software]]>
</category>
<category>
<![CDATA[Tips and Tricks]]>
</category>
<category>
<![CDATA[browser]]>
</category>
<category>
<![CDATA[firefox]]>
</category>
<category>
<![CDATA[fix]]>
</category>
<category>
<![CDATA[how-to]]>
</category>
<category>
<![CDATA[tips]]>
</category>
<category>
<![CDATA[tricks]]>
</category>
<category>
<![CDATA[video freeze]]>
</category>
<category>
<![CDATA[video lag]]>
</category>
<category>
<![CDATA[web browser]]>
</category>
<guid isPermaLink="false">http://www.donsalva.com/blog/?p=646</guid>
<description>
<![CDATA[Lately my video (HD) playbacks in YouTube seemed to be lagging a LOT! I wondered why. I thought it would be me and my years old OS or perhaps even somehow my pc. But no it wasn't. The lag was caused by Firefox's session saving feature. A simple and fast change in it and "poof" [...]<h3>Related posts:</h3><ol>
<li><a href='http://www.donsalva.com/2009/11/20/turning-off-geolocation-tracking-in-firefox' rel='bookmark' title='Firefox: &#8220;I see where you are!&#8221;, Me: &#8220;No, ya don&#8217;t!&#8221; [Turning off Geolocation Tracking in Firefox]'>Firefox: &#8220;I see where you are!&#8221;, Me: &#8220;No, ya don&#8217;t!&#8221; [Turning off Geolocation Tracking in Firefox]</a></li>
<li><a href='http://www.donsalva.com/2009/08/30/firefox-3-x-speed-it-up-vacuuming-sqlite-database' rel='bookmark' title='Using Firefox 3.x? Speed it up by vacuuming its SQLite database!'>Using Firefox 3.x? Speed it up by vacuuming its SQLite database!</a></li>
<li><a href='http://www.donsalva.com/2009/11/27/force-firefox-add-ons-to-work-with-firefox-3-6-betas' rel='bookmark' title='Force Firefox Add-ons to work with Firefox 3.6 betas!'>Force Firefox Add-ons to work with Firefox 3.6 betas!</a></li>
</ol>]]>
</description>
<content:encoded>
<![CDATA[<p><img class="alignleft" style="border: 0pt none; margin: 3px;" title="Firefox" src="http://www.donsalva.com/blog/wp-content/uploads/2009/09/firefox_grunge.png" alt="firefox" width="70" height="70" />Lately my video (HD) playbacks in YouTube seemed to be lagging a LOT! I wondered why. I thought it would be me and my years old OS or perhaps even somehow my pc.</p>
<p>But no it wasn't. The lag was caused by Firefox's session saving feature. A simple and fast change in it and "poof" went the lag.</p>
<ul>
<li>Open Firefox and type in "about:config" (without the ") in the Address Bar and hit Enter.</li>
<li>Type in "session" in the "Filter" line at the top of the list.</li>
<li>Find “browser.sessionstore.interval” and double click it. The 10000 milliseconds (equals 10 seconds) is the interval in which Firefox keeps saving your session in case of a crash; same amount of time between video lags.</li>
<li>Change it to something different. 120000 equals 2 minutes, 300000 equals 5 minutes or something else you desire. I went with 600000 (10 minutes), because I don’t particularly care about session saving.</li>
</ul>
<h3>Related posts:</h3><ol>
<li><a href='http://www.donsalva.com/2009/11/20/turning-off-geolocation-tracking-in-firefox' rel='bookmark' title='Firefox: &#8220;I see where you are!&#8221;, Me: &#8220;No, ya don&#8217;t!&#8221; [Turning off Geolocation Tracking in Firefox]'>Firefox: &#8220;I see where you are!&#8221;, Me: &#8220;No, ya don&#8217;t!&#8221; [Turning off Geolocation Tracking in Firefox]</a></li>
<li><a href='http://www.donsalva.com/2009/08/30/firefox-3-x-speed-it-up-vacuuming-sqlite-database' rel='bookmark' title='Using Firefox 3.x? Speed it up by vacuuming its SQLite database!'>Using Firefox 3.x? Speed it up by vacuuming its SQLite database!</a></li>
<li><a href='http://www.donsalva.com/2009/11/27/force-firefox-add-ons-to-work-with-firefox-3-6-betas' rel='bookmark' title='Force Firefox Add-ons to work with Firefox 3.6 betas!'>Force Firefox Add-ons to work with Firefox 3.6 betas!</a></li>
</ol>]]>
</content:encoded>
<wfw:commentRss>http://www.donsalva.com/2009/09/05/how-to-fix-the-video-lag-in-firefox/feed</wfw:commentRss>
<slash:comments>19</slash:comments>
</item>
</channel>
</rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 935/944 objects using disk: basic

Served from: www.donsalva.com @ 2012-05-22 00:09:44 -->
