If you use a large LCD HDTV for watching movies you might come across a situation where you might see black bars around your playing video. Vertical bars (pillarboxing) or horizontal bars (letterboxing) are caused by wrong encoding of videos for the aspect ratio of your widescreen television. I was having this issue with a number of older DVDs that I ripped to watch on my HDTV. There are a few different ways to correct these.
Usually the playing device (DVD player, Media Tank, etc.) should take care of this if the encoding has least anamorphic encoding on. If this is not there, you will not see the aspect ration getting corrected automatically.
You can try and re-encode the video using Super or AutoMKV to the correct aspect ratio. This will require a while in case you have a number of videos to correct but will give the best possible conversion.
The third way is probably the easiest – at least when it comes to converting Divx videos. There is a small utility called MPEG4 Modifier that you can download. This utility changes the AVI header to match the widescreen format that you wish. Take a look at the screen below:
Simply select the Display AR to 16:9 and save
The important thing to remember is to change the DISPLAY ASPECT RATIO and not the PIXEL ASPECT RATIO for the conversion. The PAR changes the aspect ratio of the pixels comprising the video whereas the DAR only changes the header so that the video can be auto-sized in the player.
If you wish to convert a bunch of files, there is a command line version of the application as well available from the same link as above. However, there is one difference between the GUI and console version. The latter doesn’t have an option to modify the DAR, only the PAR.
Since source code is available for both, I downloaded the one for the console app and added the calculations required to use DAR from the GUI version of the app. I take NO credit for any of these calculations – all of it goes to the original author of the program. The program is now compiled in .NET 3.5SP1 for x64. You can now convert an AVI file from the command line like this:
mmcl.exe –-dar 16:9 in.avi out.avi
Simply run the console app to see the different options. You can download the binaries and source code below:
MPEG4 Modifier Console: Source x64 x32 (coming soon)
Tags:
download,
mpeg4,
source,
videos
Categories:
Development |
Movies |
Tips