Showing posts with label tools. Show all posts
Showing posts with label tools. Show all posts

Wednesday, September 15, 2010

Installing Latest Ant on CentOS

To install the latest version of ant (ant-1.7.1-7.jpp5.noarch) from JPackage instead of the version provided by yum (ant-1.6.5-2jpp.2.x86_64). Here are the steps on CentOS 5.3 64-bit system.

1. Download and install JPackage rpm (jpackage-release-5-4.jpp5.noarch.rpm) from JPackage site. This will add jpackage.repo to your /etc/yum.repos.d directory.

2. Use yum to search "ant.", you will see ant.noarch provided by JPackage repo in the list. But right now if you try to install it, the following error would occur.

 
Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed 
by package java-1.4.2-gcj-compat

Check which package is providing rebuild-security-providers.

rpm -q --whatprovides /usr/bin/rebuild-security-providers
jpackage-utils-1.7.3-1jpp.2.el5

jpackage-utils has been installed in the system.

Looks like this RedHat version of jpackage-utils doesn't work with this latest version of ant from JPackage.

Solution:
a. Uninstall jpackage-utils without uninstalling all the dependencies.
[user@localhost] sudo rpm -e --nodeps jpackage-utils-1.7.3-1jpp.2.el5

b. Install jpackage-utils (jpackage-utils-5.0.0-2.jpp5.noarch.rpm) from JPackage.
[user@localhost] sudo rpm -Uvh jpackage-utils-5.0.0-2.jpp5.noarch.rpm

c. Install ant.noarch
[user@localhost] sudo yum install ant.noarch

Tuesday, May 11, 2010

Handbrake hangs at 100%

I wanted to convert one of my exercise DVD discs (VIDEO_TS folder) to mp4 but for some reason, Handbrakes always hung at 100% and the file kept growing. The activity window showed the following:

[14:12:47] sync: adding 252 ms of silence to audio 0 start 15879500, next 15856782
[14:12:47] sync: adding 307 ms of silence to audio 0 start 16039772, next 16012100
[14:12:47] sync: audio 0 time went backwards 0 ms, dropped 25 frames (next 16040900, current 16040900)
[14:12:53] sync: adding 70 ms of silence to audio 0 start 19398884, next 19392572
[14:12:58] sync: adding 70 ms of silence to audio 0 start 22515044, next 22508732
[14:13:03] sync: adding 70 ms of silence to audio 0 start 25631204, next 25624892

After using Ctrl+C to kill the process, the resulting file only has the first two chapters, the rest of it consisted the repeats of a couple of frames.

I used Magic DVD copier to cut down the DVD content to only the title with the chapters I want. But Handbrake still hung at 100%.

Finally I concatenated the VOBs (there are three, copy /b file1+file2+file3 big_file) in the folder and converted it. Finally, it was a success.

Looks like the problem is something to do with the wrong Chaptering and sync. Handbrake just couldn't handle it. And it can do it if it's pure vob files. Still a mystery to me...