Playing with HandBrakeCLI & parallel

I was looking for some nice optimization of the video encoding process and I found a nice GNU tool: GNU parallel.

To encode several videos at the same time:

parallel --eta --verbose -j2 HandBrakeCLI -i {} -o {.}.mp4 'Universal' --subtitle-lang-list fre --all-subtitles ::: *.mkv


find *.mkv | parallel --eta --verbose --jobs 2 HandBrakeCLI -i {} -o {.}.mp4 'Universal' --subtitle-lang-list fre --all-subtitles

will have the same function: take all mkv files and encode them with HandBrakeCLI command using 2 CPU.

Take a look at the GNU Parallel tutorial website to find more information about this tool.


Firewalld stops F29 shutdown process

If your Fedora F29 is hanging during the shutdown process press <ESC> and you will see the shutdown messages.

If your computer has a broadcom wireless adapter you may see this for several minutes:

A stop job is running for firewalld

The solution is to disable firewalld and enable ufw as a replacement:

sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo dnf install ufw
sudo systemctl enable ufw
sudo systemctl start ufw

After this you will be able to normally shutdown your computer.


HTML5 in firefox – fedora 29

Trying the version 29 of Fedora linux distribution I had issues to run HTML5 content in Firefox.

Some librairies are not installed by default because of license issues.

The solution is to install RPMFusion repositories:

sudo dnf install$(rpm -E %fedora).noarch.rpm$(rpm -E %fedora).noarch.rpm

and then to install the required librairies:

sudo dnf install -y ffmpeg-libs

After restarting Firefox you should be able to watch HTML5 content.