Voodooalert+x264 Logo
US+UK Flagge DE+AT Flagge
Sprache wechseln:
 

x264 benchmark compilation & installation guide for PC-BSD >=9.1

PC-BSD Logo

System requirements

PC-BSD may be based on FreeBSD, but still it is far easier to build the benchmark software on this BSD derivative.

In comparison to other BSD systems you don't need to care much about additional package requirements on PC-BSD, only the yasm assembler needs to be compiled manually.

So, to be able to build optimized x86 assembler, we will build the assembler itself first. Before we can do that though, we'll need to download its source code:


After that, unpack the archive like this: tar  -xzvf ./yasm-1.2.0.tar.gz and proceed with configuration, compilation and installation afterwards, luckily this is quite easy for yasm, the installation step will require root privileges:

Now we can build the benchmark software itself:

The benchmark software

To properly use x264, we'll need the libavcodec (in short "libav") decoding filters and the x264 encoder itself, which will be linked against libav in the process of compilation. Additionally, we will need the benchmark input video, download mirrors for that are available at the bottom of the [benchmark results list]. As for the software itself, here are the download links for the source code:
For simplicitiys sake we'll assume that the files are now present in /home/user/x264src/. Change to that folder on the terminal and start with libav. Unpack the archive like tar -xzvf <filename.tgz>, after which there will be a libav subfolder. Change to that subfolder, and proceed with the configuration, compilation and installation. There are a few specific configuration options that you will definitely need on PC-BSD, so take care to copy those precisely. Also, do not set any CFLAGS/CXXFLAGS environment variables as you maybe would do on Linux or other BSD systems, as those might make the build entirely broken on PC-BSD. The installation step will require root privileges:
Now libav is installed, time to continue with x264.

First unpack the source code in /home/user/x264src like this: tar -xjvf <x264 Archivdatei> and then change to the newly created x264 subdirectory.

Do the proper configuration, compilation and installation (the last step will again require root privileges):

Now x264 is installed and ready for operation, which may be verified by running x264 --version. If that works and if the binary shows as being linked against libswscale and libavformat, then everything should be in perfect order. Now please download the benchmark script:

Copy the file launchbenchmark.sh into a subfolder dedicated to the benchmark, if you do not have one yet, just create it: mkdir -p /home/user/x264benchmark. Also, you should put the input video elephantsdream_source.264 into that folder.

Now you're ready for launch. Just enter the following command while sitting in the folder /home/user/x264benchmark, having verified that the benchmark script is executable (chmod +x ./launchbenchmark.sh):

That might look like the following screenshot (click for enlargement), the result can be read from the terminal window after completion, just pay attention to the "real" value after it's done:

NetBSD Screenshot

Depending on the machine this may take hours, in extreme cases even days, weeks or months. If you have any further questions about building the x264 benchmark on PC-BSD, please do not hesitate to ask in the [corresponding forum thread]. The forum may be german, but if you ask in english, you should still get a response.

[Back to the x264 benchmark results list]

[Comment on this guide]