Merging Two MP4 Files From The Command Line


One of the problems I find with video editing, is sometimes it becomes very complicated to do something very simple. Take my current need. I needed to simply tie two mp4 files together, unedited, just hook one to the next. There are lots of gui types, but that requires opening them up, adjusting settings, loading or importing the files, and just a little more time and work than I want for such a simple task.

Fortunately, I found a really easy to use method to do that from the command line: MP4Box!

You can install it like so:

$ sudo apt-get install gpac

$ sudo ln -s /usr/local/lib64/ /usr/lib/

Once installed, it is very, very simple to use:


$ MP4Box -cat myFirstVideo.mp4 -cat mySecondVideo.mp4 -new myNewVideoFile.mp4

That’s it! Now, whenever I need to add two videos together, all I have to do is run one simple command, and in seconds, it is done! That’s what I like to call simple!

Linux – keep it simple.

Wondershaper: The wonder of shaping your internet traffic!


I always end my posts with “Linux – keep it simple.” And today is one of those great days when I am using a really well made, simple, Linux tool: Wondershaper.

Wondershaper allows you to “throttle” network traffic on any interface to a desired capped speed. So, for instance, if you need to have one computer upload videos, like I am today, you will probably max out your upload speeds. The problem with this is that your wife/family/friends/office workers, etc., whomever you share internet with, will suddenly be unable to surf the web.

Or perhaps you are syncing the Android source code, and it is taking up all of your download bandwidth, making it impossible for you to watch a movie on your Vudu/Roku/name your device player.

So, if you want to have a simple to use command line tool to restrict or limit traffic on one of your Linux computers, here it is:

# wondershaper eno1 1000 500

That’s it. The name of the program is wodershaper and the arguments are: interface, download speed, and upload speed. In this case, I want wondershaper to try to throttle traffic for that machine on interface “eno1” to be 1000 kb/s down, and 500 kb/s up. Here is the expanation from the man pages for it:

wondershaper [ interface ] [ downlink ] [ uplink ]
Configures the wondershaper on the specified interface, given
the specified downlink speed in kilobits per second, and the
specified uplink speed in kilobits per second.

You do need to run this as root to have access to control the device interfaces, but this program works beautifully. It is especially handy when working with virtual machines that you wish to limit!

Linux – keep it simple.

Bluetooth Breakdown: Sending gatttool commands from my Ubuntu Touch Phone!

Here I am, typing commands from my phone and controlling a Bluetooth Feather!

Of course, the moment of truth! The goal of this whole Bluetooth breakdown project was to figure out how to make my home made auto start work on my Ubuntu Touch phone. Well, here it is, working!

Although the interface could use a face lift.

Last we looked at this, we saw that we could write custom scripts to send the commands from the desktop computer to the BLE auto start, or use interactive mode of gatttool and do the work there. Now we can actually do the same from the terminal of the cell phone.

While this technically counts. We now need a snazzy program that just works with clicky buttons and that sort of thing. So, I suppose that will be the next phase of this project! Stay tuned for adventure!

Linux – keep it simple.

Checking the internet connection speed from the command line

Typically, if we want to check the internet connection speed, we can just use a web browser with any of the usual internet speed test sites. However, the other day I actually needed to test the internet connection speed on a machine without using a browser.

In this case the machine was old and the browser did not support flash, nor HTML5, which really cut down on available websites. A quick Google search led me to some options. If you are like me, you know how to use Google too, however, like myself, you may run into several options that lead to depreciated links, or missing files. So I thought I’d save you the trouble and post the working answer here.

I wrote a bash script to make it simple, you can see the contents of it here:

user@crunchbang:~$ cat


wget -O – –no-check-certificate | python

exit 0

And after giving it the proper execution attributes, I simply run the script:

user@crunchbang:~$ ./

–2017-10-07 08:17:04–
Connecting to||:443… connected.
WARNING: certificate common name “” doesn’t match requested host name “”.
HTTP request sent, awaiting response… 200 OK
Length: 47228 (46K) [text/plain]
Saving to: “STDOUT”

100%[========================================================================>] 47,228       116K/s   in 0.4s

2017-10-07 08:17:05 (116 KB/s) – written to stdout [47228/47228]

Retrieving configuration…
Testing from GCI (…
Retrieving server list…
Selecting best server based on ping…
Hosted by GCI (Anchorage, AK) [424.45 km]: 32.192 ms
Testing download speed……………………………………………………………………..
Download: 2.62 Mbit/s
Testing upload speed……………………………………………………………………………………
Upload: 3.58 Mbit/s

Wow! 2.6 Mbit download speed! I was really cruising today! That’s a really simple way to check your internet connection speed from the command line, if you ever need it.

Linux – keep it simple.