I recently got a drive enclosure that allows it to be connected via eSATA or USB2. I got a nifty ExpressCard eSATA adapter for my MacBook Pro since eSATA is theoretically faster. Guess what? It is a lot faster!
A simple test of disk performance in Xbench (sure, not the best test, but it gives me something to compare) revealed that the disk got more than double the score, with several of the speeds being more than three times faster.
This is the same disk, all I did was run the "Disk Test" in Xbench then disconnected the eSATA connector from my drive enclosure, connected it up via USB and ran the same test again. Same drive, enclosure, computer; just a different cable and interface.
I expected a little performance increase, but not that much. I suppose it could be the USB chip that is a huge pig, but I saw similar numbers with a different USB to SATA adapter. Regardless what it is, no more drives on USB for me, I'm a believer in eSATA!
Random Thoughts
Tuesday, December 9, 2008
Monday, November 17, 2008
Synchronizing audio and video with DVDImport 5.0
DVD Import 5.0 is much improved as far as keeping the audio in sync with the video on imported media. However, there are some cases that still cause DVD Import to get the audio out of sync. Never fear, there is a new Audio Processing option that lets you override the Sync.
NOTE: this feature will only help if your audio is off consistently throughout the program (which is usually the case), if it is drifting further out of sync as the imported media progresses, this will not help, you could either try guessing the middle amount of offset or find a more robust solution.
To enable this advanced feature, click on "Options..." and enable the "Adjust AV Sync" option.
Once you do that, you'll see a Sync slider under the Audio Processing area.
Unless you already know how far the sync is off (some people are good like that), you're probably thinking, "Great, so I can type in a number of milliseconds! How the heck do I figure that out short of trial and error?"
Well, there is a nifty little app that I ran across that may make your life easier! Download SyncView from Here. Once you have it downloaded, install it.
Now, import your DVD as you normally would.
Once it is done, try previewing it. But at the point you would have previously gotten really disappointed/angry/sad by a bad import, instead, launch SyncView. Double-click the text area to the right of the "Video:" label (1), choose the .mpg file you just imported.
If you purchase the extended version of SyncView, you can directly demultiplex the input file. If you didn't purchase it, there's an extra step. You'll need to get a separate file of audio extracted from that mpeg file. If you already have a lot of knowledge on digital video, you may already have a way to do this, otherwise, I found a free little utility called AoA Audio Extractor which lets you extract a WAV file of the audio. Once you do that, you can set the audio file by double clicking the text to the right of the "Audio:" label (2). Then, make sure you click to turn off the "Monitor audio stream" check box.
Now, the trial and error part, but it will be a lot faster than re-importing the DVD each time... adjust the "Audio Sync (msec)" (3) value by typing one in or using the arrows, when stopped, play the video again, then fine tune it until you get the correct value figured out.
Once you have that value, then simply return to DVD Import and select the closest value to the negative of the one you found you found with the "Sync" slider (i.e. if SyncView told you 224, select -224 with the slider). Import your DVD as you would normally, except for setting that slider, and the result should be a program with the audio and video in sync!
NOTE: this feature will only help if your audio is off consistently throughout the program (which is usually the case), if it is drifting further out of sync as the imported media progresses, this will not help, you could either try guessing the middle amount of offset or find a more robust solution.
To enable this advanced feature, click on "Options..." and enable the "Adjust AV Sync" option.
Once you do that, you'll see a Sync slider under the Audio Processing area.
Unless you already know how far the sync is off (some people are good like that), you're probably thinking, "Great, so I can type in a number of milliseconds! How the heck do I figure that out short of trial and error?"
Well, there is a nifty little app that I ran across that may make your life easier! Download SyncView from Here. Once you have it downloaded, install it.
Now, import your DVD as you normally would.
Once it is done, try previewing it. But at the point you would have previously gotten really disappointed/angry/sad by a bad import, instead, launch SyncView. Double-click the text area to the right of the "Video:" label (1), choose the .mpg file you just imported.
If you purchase the extended version of SyncView, you can directly demultiplex the input file. If you didn't purchase it, there's an extra step. You'll need to get a separate file of audio extracted from that mpeg file. If you already have a lot of knowledge on digital video, you may already have a way to do this, otherwise, I found a free little utility called AoA Audio Extractor which lets you extract a WAV file of the audio. Once you do that, you can set the audio file by double clicking the text to the right of the "Audio:" label (2). Then, make sure you click to turn off the "Monitor audio stream" check box.
Now, the trial and error part, but it will be a lot faster than re-importing the DVD each time... adjust the "Audio Sync (msec)" (3) value by typing one in or using the arrows, when stopped, play the video again, then fine tune it until you get the correct value figured out.
Once you have that value, then simply return to DVD Import and select the closest value to the negative of the one you found you found with the "Sync" slider (i.e. if SyncView told you 224, select -224 with the slider). Import your DVD as you would normally, except for setting that slider, and the result should be a program with the audio and video in sync!
Wednesday, June 18, 2008
Oil :(
With the price of oil spiraling out of control, people are getting upset at the cost of gas which got me thinking, "why is this a big deal?"
First, oil is costing more because of many reasons, such as increased demand for oil throughout the world, the falling value of the US dollar and political turmoil in the mid-east where most of the oil comes from (right?). The value of the dollar is a problem because the price of oil is linked to the value of the dollar by OPEC. The value of oil isn't really as high as the record oil prices indicate to most of the world, foreign oil just costs more to those of us in the US that have US dollars to buy it.
Political turmoil in the oil producing areas understandably affects the price of oil. Since gas is made from oil, obviously it should cost more, right? Well, actually, over 40% of the United States' oil isn't even imported, and you have to look to number three on the list (past Canada and Mexico) to find the leading middle eastern country to provide us with oil at only 9%. It doesn't seem like gas prices should be affected by this so much in the United States, does it? But, since these factors raise the cost of oil, we can't do anything about it (except watch the profits of oil companies go through the roof).
So, gas prices are rising, they're going to keep going up, affecting the cost of air travel, transporting goods which leads to increasing the cost of goods that were transported, like our food or anything else we buy at a store, well, simply, it makes everything cost more. Even more than a stimulus check can offset!
You get the idea, gas costs more and it sucks. I think that it is a bigger deal than that, I posit that cheap oil (read: affordable energy for transportation) is fundamental to American culture. Think about it, no other country celebrates the automobile the way we do. Whether it is car shows, racing (yes, even NASCAR), or simply the personal mobility we enjoy with a vehicle to get to work, visit friends or relatives, drive along the beach... we love our cars. It starts when we first get our license to drive, the world opens up to us. A car, truck or motorcycle equals freedom.
driving == freedom
Since 9/11, flying has become downright terrible, with the rainbow of security levels that conspire to slow you at the airport. Now, our freedom is being eroded further since it is starting to cost more to drive anywhere. People are starting to think twice about making long car trips, which doesn't seem like a big deal at first, but ultimately it means we no longer have the choice to go where we want, we no longer have the freedom we used to enjoy.
One of the solutions I heard on the radio was to reinstate the 55mph speed limit since driving slower will use less gas. This is a stupid idea! Cars are efficient (and safe) at speeds greater than 55mph these days. The roads are safer and much faster to traverse now that we have higher speed limits, we need to put an end to this nonsense.
Instead of crazy solutions, we need to focus on things that will work, such as timing traffic lights so they cause less stopping and starting. Intelligent timing for traffic lights significantly reduce how much you have to stop which leads to a safer environment for everyone, not to mention reducing your overall driving time and using less gas to accelerate after each stop.
People need to be more realistic in this country about the cars they drive. Most people don't need the huge behemoth SUVs they drive. In other countries you see a lot of diesel vehicles on the road which are much more efficient than gasoline powered vehicles. Here, there is a stigma against them from the past which makes diesel cars very unpopular, thus hard to find. More people need to drive 50mpg diesel cars, less need to drive Hummers. And the environmental impact of a car full of lead-acid batteries doesn't make the current generation of hybrid vehicles a good choice either.
Ethanol is not the answer to renewable energy, despite what you've heard. It is hard on the environment, it doesn't contain as much energy as gasoline (the cheaper cost of EA-85 gets negated since you'll get less mileage with it), and it is only cheaper because of subsidies at the cost of ruining the market for corn grown for food. We need to put more emphasis on biodiesel. Some states require a small percentage of diesel fuel to be biodiesel, this needs to increase, or even mandate 100%. Think of what could be accomplished with the misguided dollars behind ethanol.
It would be nice to reduce the number of cars on the road, but in most places public transportation is abysmal. One of the issues is the population is so sparse in the United States compared to elsewhere in the world, it is very difficult to build a system that can serve huge areas and get people where they want to go that is better than the system of roads. We do need better public transportation, but not at the cost of funding other transportation needs for expanding highways and keeping the infrastructure safe (no more collapsing bridges).
It is not too late, and there is still hope. People need to start doing their part. This November, keep some of these ideas in mind when you're casting your vote. We need more intelligent policies in Washington. We also need more education to know what what energy sources are going to help and which are going to make some lobbyist or oil tycoon more money. True oil independence is the only way to keep our freedom from withering away.
First, oil is costing more because of many reasons, such as increased demand for oil throughout the world, the falling value of the US dollar and political turmoil in the mid-east where most of the oil comes from (right?). The value of the dollar is a problem because the price of oil is linked to the value of the dollar by OPEC. The value of oil isn't really as high as the record oil prices indicate to most of the world, foreign oil just costs more to those of us in the US that have US dollars to buy it.
Political turmoil in the oil producing areas understandably affects the price of oil. Since gas is made from oil, obviously it should cost more, right? Well, actually, over 40% of the United States' oil isn't even imported, and you have to look to number three on the list (past Canada and Mexico) to find the leading middle eastern country to provide us with oil at only 9%. It doesn't seem like gas prices should be affected by this so much in the United States, does it? But, since these factors raise the cost of oil, we can't do anything about it (except watch the profits of oil companies go through the roof).
So, gas prices are rising, they're going to keep going up, affecting the cost of air travel, transporting goods which leads to increasing the cost of goods that were transported, like our food or anything else we buy at a store, well, simply, it makes everything cost more. Even more than a stimulus check can offset!
Cost Per Gallon of gas I've bought in the past 10 years (yes, I keep track)
You get the idea, gas costs more and it sucks. I think that it is a bigger deal than that, I posit that cheap oil (read: affordable energy for transportation) is fundamental to American culture. Think about it, no other country celebrates the automobile the way we do. Whether it is car shows, racing (yes, even NASCAR), or simply the personal mobility we enjoy with a vehicle to get to work, visit friends or relatives, drive along the beach... we love our cars. It starts when we first get our license to drive, the world opens up to us. A car, truck or motorcycle equals freedom.
driving == freedom
Since 9/11, flying has become downright terrible, with the rainbow of security levels that conspire to slow you at the airport. Now, our freedom is being eroded further since it is starting to cost more to drive anywhere. People are starting to think twice about making long car trips, which doesn't seem like a big deal at first, but ultimately it means we no longer have the choice to go where we want, we no longer have the freedom we used to enjoy.
One of the solutions I heard on the radio was to reinstate the 55mph speed limit since driving slower will use less gas. This is a stupid idea! Cars are efficient (and safe) at speeds greater than 55mph these days. The roads are safer and much faster to traverse now that we have higher speed limits, we need to put an end to this nonsense.
Instead of crazy solutions, we need to focus on things that will work, such as timing traffic lights so they cause less stopping and starting. Intelligent timing for traffic lights significantly reduce how much you have to stop which leads to a safer environment for everyone, not to mention reducing your overall driving time and using less gas to accelerate after each stop.
People need to be more realistic in this country about the cars they drive. Most people don't need the huge behemoth SUVs they drive. In other countries you see a lot of diesel vehicles on the road which are much more efficient than gasoline powered vehicles. Here, there is a stigma against them from the past which makes diesel cars very unpopular, thus hard to find. More people need to drive 50mpg diesel cars, less need to drive Hummers. And the environmental impact of a car full of lead-acid batteries doesn't make the current generation of hybrid vehicles a good choice either.
Ethanol is not the answer to renewable energy, despite what you've heard. It is hard on the environment, it doesn't contain as much energy as gasoline (the cheaper cost of EA-85 gets negated since you'll get less mileage with it), and it is only cheaper because of subsidies at the cost of ruining the market for corn grown for food. We need to put more emphasis on biodiesel. Some states require a small percentage of diesel fuel to be biodiesel, this needs to increase, or even mandate 100%. Think of what could be accomplished with the misguided dollars behind ethanol.
It would be nice to reduce the number of cars on the road, but in most places public transportation is abysmal. One of the issues is the population is so sparse in the United States compared to elsewhere in the world, it is very difficult to build a system that can serve huge areas and get people where they want to go that is better than the system of roads. We do need better public transportation, but not at the cost of funding other transportation needs for expanding highways and keeping the infrastructure safe (no more collapsing bridges).
It is not too late, and there is still hope. People need to start doing their part. This November, keep some of these ideas in mind when you're casting your vote. We need more intelligent policies in Washington. We also need more education to know what what energy sources are going to help and which are going to make some lobbyist or oil tycoon more money. True oil independence is the only way to keep our freedom from withering away.
Thursday, April 10, 2008
More Help for Unsupported Formats on the SX
I've been working a little more on my little utility for fixing files to play on the SX servers from Tightrope Media Systems. I've added the ability to process files other than MPEG files (such as WMV or most AVI files). It will convert audio in these files as well as fix problems with the video by scaling to 720x480 and converting frame rate to 29.97. When fixing the video, it will transcode the files to the ubiquitous MPEG2 format to play on the server (so don't process files you don't want to have re-encoded).
The new version also adds the ability to read in media from a DVD. When you drag a VIDEO_TS directory (from hard disk or DVD disc) onto the utility it will parse the menu structure and give you a dialog to select any set of programs on the disc to extract. The DVD is extracted to the temporary directory and then saved to the output directory. The dialog allows you to specify a name (you can put a Cablecast Show ID in the beginning of the name) which it uses to generate a final output name.
Read More...
The new version also adds the ability to read in media from a DVD. When you drag a VIDEO_TS directory (from hard disk or DVD disc) onto the utility it will parse the menu structure and give you a dialog to select any set of programs on the disc to extract. The DVD is extracted to the temporary directory and then saved to the output directory. The dialog allows you to specify a name (you can put a Cablecast Show ID in the beginning of the name) which it uses to generate a final output name.
Read More...
Tuesday, April 1, 2008
Automotive Advancements
The worst "innovation" with automobiles in the past few years is the automatic sliding side door on mini-vans. Doors have existed for a long time and people have pretty much figured out how to use them. Then Honda (I'll blame them, since their mini-van is the first place I saw it, but I'm not sure who actually did it) came along and made the door operate by a button for "convenience". The thing is, if you use it like a normal door, you break it! If you continue pulling on the handle to open it, you start pulling against the motor and wreck it. Was it really that hard to slide a piece of metal along a track rather than introduce a whole new level of complexity that confuses normal door operators and adds a whole new level of danger for people with hands or other things that can be crushed in the magic new kind of door? The door had a standard user interface that everyone understood, don't change it!
Then, another feature which I also blame Honda for, since they all do it: the side seat belt in the rear will not work in the center seat belt receptacle! If you try to plug it in, it simply slides back out, then you have to dig into the seat to find the other receptacle that fell under the seat to try that one, assuming you didn't just give up after it first popped out. How does this feature make any sense? Someone thought "Here's a device we have that is meant to save lives if used properly, lets make it so two thirds of the rear passengers have only a 50 percent chance of being able to successfully use the device."
Then, another feature which I also blame Honda for, since they all do it: the side seat belt in the rear will not work in the center seat belt receptacle! If you try to plug it in, it simply slides back out, then you have to dig into the seat to find the other receptacle that fell under the seat to try that one, assuming you didn't just give up after it first popped out. How does this feature make any sense? Someone thought "Here's a device we have that is meant to save lives if used properly, lets make it so two thirds of the rear passengers have only a 50 percent chance of being able to successfully use the device."
Friday, March 21, 2008
Computer Bliss
In response to my co-worker Brandon's recent post about his computer upgrades... and possibly a little follow-up to my previous post about the MacBook Air...
I used to have two machines in my office with a total of 6 hard disks and about 300 loud fans spinning in them. One was a desktop, running a development virtual machine and a generic office/web applications. The other was a bare-metal development box for doing hardware development.
They've been replaced with a 17" MacBook Pro. It runs my development environment in a virtual machine (which I simply copied over from the previous machine, how nice!). It also allows me to do some crazy things like plug it into our gigabit network and use optical discs. Then, I moved my hardware box into our engineering lab and connect to it via RDP when I need to access it.
The result? My office is completely silent. I can bring the MacBook home (or anywhere) and have the actual development environment from work right there, no VPN, no VNC. It's also a fully-functional computer, no sacrifices. Not to mention, I get to use MacOS!
If I don't want to bring a whole full-size MacBook Pro somewhere (like the places a MacBook Air would go), I still have the iPod Touch which does a great job of running a web browser and reading email.
I used to have two machines in my office with a total of 6 hard disks and about 300 loud fans spinning in them. One was a desktop, running a development virtual machine and a generic office/web applications. The other was a bare-metal development box for doing hardware development.
They've been replaced with a 17" MacBook Pro. It runs my development environment in a virtual machine (which I simply copied over from the previous machine, how nice!). It also allows me to do some crazy things like plug it into our gigabit network and use optical discs. Then, I moved my hardware box into our engineering lab and connect to it via RDP when I need to access it.
The result? My office is completely silent. I can bring the MacBook home (or anywhere) and have the actual development environment from work right there, no VPN, no VNC. It's also a fully-functional computer, no sacrifices. Not to mention, I get to use MacOS!
If I don't want to bring a whole full-size MacBook Pro somewhere (like the places a MacBook Air would go), I still have the iPod Touch which does a great job of running a web browser and reading email.
Thursday, March 6, 2008
Trouble with audio sample rates and SX Servers
One of the things I've been hearing from our support guys at Tightrope Media Systems is a lot of people have legacy content that is 44.1kHz audio that they would like to play back on their SX Server. The server, however, requires the standard DVD sample rate of 48kHz. This leaves everyone sad.
To help, I built a simple little utility that uses ffmpeg to fix the audio inside an mpeg2 file to be compatible with an SX Server. It's a little Windows app that you can run, drag a batch of files and folders onto and it will do its best to process the files to make them work on the SX.
Download FixMpeg
Read More about FixMpeg at my software site
To help, I built a simple little utility that uses ffmpeg to fix the audio inside an mpeg2 file to be compatible with an SX Server. It's a little Windows app that you can run, drag a batch of files and folders onto and it will do its best to process the files to make them work on the SX.
Download FixMpeg
Read More about FixMpeg at my software site
Subscribe to:
Posts (Atom)