Trancefussion Tell me this is real. Are you …?

November 26, 2009

How to play MKV Files in Windows 7 x64?

Filed under: Technology — liam @ 7:55 pm

Well, apparently it’s not a simple task … or is it. It can be complicated until you get ahold of the right tools, cause the normal “method” (as in grabbing a single piece of software) that you can just install and make it all work doesn’t seem to exist for Windows 7 yet. If any of you can prove me wrong, please do so.

So, I’ve spent a few hours looking … ok, just one. But I figured this could help others in case you had the same problematic I’m on, as I do not like to download those “codec packs” that add more to your system than you need to. Think about it as eating a Windows 7 burger altogether when all you need is a just a small meal. Ok, that’s bad joke.

Anyway, these instructions are for the 64bit version of Windows 7. I’m not positive this can work on the x86 versions, but I have a good feel it can work on them too. Just be advised I haven’t tested it on a x86 installation, so your results may vary.

So with that said, let’s start!!!!

Things you will need:

– AC3Filter 1.63b FULL for Windows x64 from: http://ac3filter.net/
– Divx Tech Preview for Windows 7 from: http://labs.divx.com/mkvwin7preview

At the moment I wrote this, the latest version for AC3filter was 1.63b, and the tech preview of DivX for Windows 7 was still in beta. I’m sure these will remain at those versions for a while, but, shall that tech preview come out of its testing I hope you won’t need this guide anymore. Make sure you get the FULL version of AC3Filter, as this is the one that contains the files you’ll need for the x64 bit version of Windows 7.

So, anyway. You gotta install the DivX Tech Preview. I preferred to do a custom installation and just installed the MKV Splitter and nothing more, no DivX codecs, no players, etc. Just so nothing unnecessary got installed, as Windows 7 itself has its own codecs for DivX already installed. Just be advised that this little piece of software will want you to install the Google Bar crappy ass shit thing, so if you’re a bit desperate when installing things, do yourself a favour and do not click continue so fast. If you wish to install everything else that’s perfectly fine, but all you’re gonna really need from this is the MKV Splitter which is under DivX Plus DirectShow Filters.

After this, you could even uninstall the DivX Tech Preview, it won’t touch the MKV Splitter. But as it is right now, all you gonna get is Video, no Audio. The reason for this is that you also require the AC3 Filters, and that’s what the other app is for.

So, you install AC3Filter, and make *sure* that you pick the 32bit filters, you may ask why? That’s because the videos are coded in 32bit, hence why they require the 32bit version of the codec. A bit confusing, isn’t it?

After that, you’re done. With AC3Filter you should be able to play and hear your MKV files fine. Hooray! The only caveat to this is the tech preview splitters do not support subtitles … personally I do not know what that means, I have never seen MKV files with subtitles in them (I do not own that many MKV files to know for sure, so whatever).

That should be it. You should now be able to play MKV files on Windows 7, with the advantage of having hardware accelerated decoding that the DivX tech preview drivers provide.

As usual, if you got any questions, comments or noticed anything wrong in my guide, feel free to leave a message.

November 18, 2009

liam K – So Clear

Filed under: Mixed Sets — liam @ 8:25 am

New set after a couple of months. The delay is cause I was preparing this one to be out along with another set, called “So Simple”, but even though I finished that one first, I wasn’t happy enough to put it out on the public.

Still though, I’m releasing So Clear, which came out way better than expected. Here you go:

Click MEEEE!

[podcast]http://www.trancefussion.com/downloads/sets/liam%20K%20-%20So%20Clear.mp3[/podcast]

Tracklist:

01.- Estiva – Lifting Leaves (Original Mix)
02.- Lange & Andy Moor – Stadium Four (Original Mix)
03.- Re-Order – Deese Sofia (Original Mix)
04.- Aly & Fila – Khepera (Original Mix)
05.- Akesson – Without You (Original Mix)
06.- Sean Tyas – I Remember Now (Original Mix)
07.- Matt Everson – Tokyo Nights (Neal Scarborough Remix)
08.- Ian Betts – False Gods
09.- Paul Webster feat. Amanda – Time (Sean Tyas Remix)
10.- FKN feat. Jahala – This is the only time (Vascotia Dub Remix)
11.- Sean Tyas – Tingle (Original Mix)
12.- Deep Care – Blacks (Daniel Kandi Lifted Remix)
13.- Foyle & Sparks – Chords of Life (Original Mix)
14.- Dash Berlin feat. Emma Hewitt – Waiting (Sean Tyas Remix – liam K Dub Re-Edit)

Disclamer: Sean Tyas rocks. Let me be!

November 4, 2009

Pdftk not working on Ubuntu 9.10 – Fix

Filed under: Technology — Tags: — liam @ 7:07 pm

NOTE: This patch is no longer required for Ubuntu 10.04, as this problem seems to have been fixed. If you notice any errors, and you’d like to contribute, please leave a comment.

I maintain several websites where this utility is used to produce PDFs. I took the bold decision to upgrade one of my production servers to 9.10, regardless of the risks. Reason being that I rather learn to operate a new operative system, for whenever it happens that a client decides to commit the same mistake bold decisions like me.

So anyway, after the update to 9.10, Pdftk stopped working. I wasn’t really sure what the problem was after looking at the logs, so I googled around for an answer. The error I was getting was this message, whenever I tried to make a PDF with Pdftk:

glyphlist.txt loading error: glyphlist.txt not found as resource. (It must exist as resource in the package com.lowagie.text.pdf.fonts)
Helvetica not found as resource. (The *.afm files must exist as resources in the package com.lowagie.text.pdf.fonts)
Unhandled Java Exception:
ExceptionConverter: com.lowagie.text.DocumentException: Helvetica not found as resource. (The *.afm files must exist as resources in the package com.lowagie.text.pdf.fonts)
at com.lowagie.text.pdf.Type1Font.(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.BaseFont.createFont(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.BaseFont.createFont(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.BaseFont.createFont(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.DocumentFont.doType1TT(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.DocumentFont.(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.AcroFields.decodeGenericDictionary(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.AcroFields.getAppearance(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.AcroFields.setField(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.AcroFields.setField(itext-2.1.5.jar.so)
at com.lowagie.text.pdf.AcroFields.setFields(itext-2.1.5.jar.so)

Basically, what this error is saying is that the itext-2.1.5 library cannot be found, even though it’s already installed. It took me quite a while to understand this exactly, apparently this error is due to a hardcoded line that wasn’t changed in the newer builds, or something to that effect. So the solution is to tell Pdftk where to find it.

I spotted the solution in this URL but the explanation was a bit obscure. The person answering there says we should edit certain files in the patches, the problem is that for common or not so-savvy people (like me) that line wasn’t quite clear enough.

So I went and investigated a bit, until I finally figured it out. Here’s the solution:

IMPORTANT NOTE

Per suggestion of people that have read my post, I’m including the next commands. These steps weren’t necessary for my installation, but some of you might need it.

apt-get install dpkg-dev
This installs the dpkg-source for source-manhandling done in the downloading step

apt-get build-dep pdftk
This ensures all the necessary pre-reqs are installed for the compilation step

Obtain the source from the Ubuntu 9.10 repositories

For this, goto a safe directory where you can work the files, it can be anywhere as long as you remember where it is. Once there, you get the source with this command:

apt-get source pdftk

This will download the source to your current directory and make it available for you to manipulate.

Applying the “fix”

Now you gotta apply the solution mentioned in the other page I mentioned earlier, which is to edit a file called set_classpath and it’s included inside yourworkingdir/pdftk-1.41+dfsg/debian/patches. To do this, use:

nano pdftk-1.41+dfsg/debian/patches/set_classpath

This is if you’re in a terminal. Either use nano or your favourite text editor.

Next, you gotta add the itext library to this file, which would usually look like this:

Description: introduce path to bcprov.jar and bcmail.jar
Author: Johann Felix Soden

--- a/pdftk/pdftk.cc
+++ b/pdftk/pdftk.cc
@@ -2655,6 +2655,10 @@
bool synopsis_b= ( argc== 1 );
int ret_val= 0; // default: no error

+ // set classpath:
+ static char my_classpath[]="CLASSPATH=/usr/share/java/bcprov.jar:/usr/share/java/bcmail.jar";
+ putenv(my_classpath);
+
for( int ii= 1; ii< argc; ++ii ) {
version_b=
(version_b ||

Notice the part where it says CLASSPATH? That’s where we have to add the itext library, by switching the line to look like this:

+ static char my_classpath[]="CLASSPATH=/usr/share/java/bcprov.jar:/usr/share/java/bcmail.jar:/usr/share/java/itext.jar";

Notice the packages are separated by colons “:”. After doing this, you gotta compile it with the next line:

apt-get -b source pdftk

NOTE: Make sure you’re NOT in another directory when using this command, you must be in the same root directory you used to download the source, otherwise you gonna end up with exactly the same faulty pdftk installation.

After the compilation process is complete, you gonna have a file named pdftk_1.41+dfsg-1_i386.deb (depending on your architecture you might have an slightly different one) which we gonna use to install the fixed pdftk package. To do this, use the next command:

dpkg -i pdftk_1.41+dfsg-1_i386.deb

After doing this, pdftk will get installed in its adequate place, and voila! Problem Solved.

If you got any questions feel free to drop a message, I’ll respond as soon as I can. Also, read the comments, a few have contributed with extra steps for other applications, as its the case with Vanguard.

Powered by WordPress