For the purpose of this guide, we shall assume that the [Debian distribution] of GNU/Hurd is being used, since it's currently the most complete and usable GNU/Hurd system in existence. Commands shown in this guide can contain one of two prefixes; Commands that start with a
~ can be run as a normal user. Commands that start with a
# have to be run with superuser privileges, or in other words: As user root. Files and directories are shown in green. Placeholders to be filled by the user are shown within angle brackets:
<>. In addition to the software that Debian GNU/Hurd ships with, we will also need the following:
~ tar -xjvf <filename.tar.gz>. Please change into the newly created yasm subfolder, and build the code:
~ ./configure && make. For the final installation step, you will need root privileges:
# make install.
~ tar -xzvf <filename.tar.gz>, after which a new libav subfolder will be created. Enter that subfolder, and run the following commands in succession. Note that the options regarding opus/libopus relate to an audio en-/decoder, which currently breaks the linking process of x264, which is why we have to disable it. This may change with newer versions of libav/x264 of course, whereby the options
--disable-decoder=opus,libopus --disable-encoder=opus --disable-parser=opusmay no longer be needed in the future. For the x264 benchmark alone our libav doesn't have to understand opus audio, so we can safely disable it.
~ ./configure --enable-gpl --disable-decoder=opus,libopus --disable-encoder=opus --disable-parser=opus && make
# make install
~ tar -xjvf last_x264.tar.bz2. Enter the newly created x264 subfolder and run the following commands:
~ ./configure(After this step, please check if the output shows "lavf yes". x264 is linked against libav successfully only if this is shown!)
# make install
~ x264 --version. If that works, and the binary shows that it's been linked against libswscale and libavformat, then everything went smoothly. If you indeed have a system where no assembler code paths exist for, e.g. a DEC Alpha or a very old Intel x86 like a Pentium MMX, you may need to specify
--disable-asmas an option for both configure scripts. Installing yasm is entirely unnecessary in such a case. Now you can download the benchmarking script launchbenchmark.sh here:
~ mkdir -p /home/user/x264benchmark. You'll also need to put the benchmark input video elephantsdream_source.264 in that folder.
~ cd /home/user/x264benchmark/
~ chmod +x ./launchbenchmark.sh(Needed only once: Makes the benchmark script executable.)
~ time ./launchbenchmark.sh
~ man screen.