Concatenate MP4 files using FFMPEG

There are two methods within ffmpeg that can be used to concatenate files of the same type: the concat ”demuxer” and the concat ”protocol”. The demuxer is more flexible – it requires the same codecs, but different container formats can be used; and it can be used with any container formats, while the protocol only works with a select few containers. However, the concat protocol is available in older versions of ffmpeg, where the demuxer isn’t.

via Concatenate – FFmpeg.

I needed a way to concatenate mp4 files generated from all the IP cameras connected to the open wifi.  I tried compiling MP4Joiner but there were way too many dodgy dependencies throwing code errors in the compile.  Then I read that simple ffmpeg, a package easily loaded onto a Linux box, can merge mp4 files and it works.  Unfortunately concat only works on later Fedora releases like Fedora 19 and above but it’s easier than manually merging them in Avidemux.  My main server still runs Fedora 14 for many reasons so merging them simply requires running a command manually in a Fedora 19 or above Virtual Machine.  In the future when I migrate to a later release this can all be scripted seamlessly.

Here’s more as to how it’s done in ffmpeg…

Create a file mylist.txt with all the files you want to have concatenated in the following form (lines starting with a # are ignored):

# this is a comment
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

Note that these can be either relative or absolute paths. Then you can stream copy or re-encode your files:

ffmpeg -f concat -i mylist.txt -c copy output

The US’s First Offshore Wind Farm Will Slash Local Power Prices by 40 Percent

Five floating turbines will be built off the coast of the island, which currently relies on diesel generators for its power—and pays a dollar more per gallon than the mainland does to get it. Those turbines will be connected to an undersea power cable that links not just the island, but to the US mainland.

The result will be a huge price drop in the islanders’ electricity bills, and an influx of clean energy piped into the grid from across the sound. The 30 megawatt plant is expected be generating power for thousands of New England homes by fall next year.

via The US’s First Offshore Wind Farm Will Slash Local Power Prices by 40 Percent | Motherboard.

Linux Containers

linuxcontainers.org is the umbrella project behind LXC, LXD, LXCFS and CGManager.

The goal is to offer a distro and vendor neutral environment for the development of Linux container technologies.

Our main focus is system containers. That is, containers which offer an environment as close to possible as the one you’d get from a VM but without the overhead that comes with running a separate kernel and simulating all the hardware.

via Linux Containers.

Fault Tolerant Router

Fault Tolerant Router is a daemon, running in background on a Linux router or firewall, monitoring the state of multiple internet uplinks/providers and changing the routing accordingly. LAN/DMZ internet traffic (outgoing connections) is load balanced between the uplinks using Linux multipath routing. The daemon monitors the state of the uplinks by routinely pinging well known IP addresses (Google public DNS servers, etc.) through each outgoing interface: once an uplink goes down, it is excluded from the multipath routing, when it comes back up, it is included again. All of the routing changes are notified to the administrator by email.

via  Fault Tolerant Router

Blackphone 2 caters to the enterprise, the security-minded and the paranoid

Silent Circle is all about security, but security is about more than just a phone that features encryption. There is an entire ecosystem in place starting with the secure PrivatOS 1.1. The latest upgrade to the operating system introduces a feature called Spaces which allows for OS-level virtualization and the ability to keep work and personal apps and data completely separate from each other. These features are also due to rollout to first generation Blackphones through an upcoming update.

via Blackphone 2 caters to the enterprise, the security-minded and the paranoid.

Rock Band and Guitar Hero May Be Returning in 2015

Still, the era of plastic instruments has passed. You can’t find the controllers in stores anymore, but your local Salvation Army or Goodwill probably has a giant pile of them. Even those who love Rock Band have trouble justifying all of the primo living room real estate the full suite of controllers consumes.

via Rock Band and Guitar Hero May Be Returning in 2015 | WIRED.

Stand aside for the smartphone generation

So that much we know. What I have noticed over the past few years is something different, but possibly related: the reluctance of pedestrians to engage in negotiation for right of way. Time was, in this most self-deprecating and pointlessly apologetic of Europe’s cities that collision detection was default behaviour for pavement-dwellers. Older readers may remember a sketch in the BBC’s The Fast Show where ‘Indecisive Dave’ spent so long in trying to negotiate passage through a doorway with another person that he eventually just waved to his friends, said ‘See you later’ and went home.

via Stand aside for the smartphone generation.

The big money behind Iran’s Internet censorship

Independent Iranian media have reported that “elements within the government and the Revolutionary Guard provide support to a number of VPN sellers,” according to a 2014 report from Small Media. “Reports hypothesize that this is a mutually profitable arrangement; lining the pockets of officials at the same time as it allows VPN sellers to continue in their work without the threat of state interference.”

BBC Persian journalist Hadi Nili says that not only do Iranian authorities sell VPN accounts, the Iranian government even uses VPNs in order to protect their own connections.

via The big money behind Iran’s Internet censorship.

The Dream of Delivery Drones Is Alive (And On A Truck)

But there’s hope yet for drone delivery. Cincinnati-based Amp Holdings is currently developing a drone, called Horsefly, that deploys from a compartment in the roof of an electric delivery truck. After each delivery, the aircraft would return to the truck for its next package. It’s strong enough to carry parcels as heavy as 10 pounds (double what Amazon is shooting for), and durable enough to fly through, wind, rain and snow on its appointed rounds.

via The Dream of Delivery Drones Is Alive (And On A Truck) | Popular Science.

I had this idea a couple years ago when Amazon announced this.  Launching from the truck is the most feasible both logistically and technically.  The truck does not need to be connected to the Internet.  All drone coms can be done via a local wifi and perhaps a server in the truck.  This can make the truck driver more efficient and less dangerous as he/she doesn’t have to get out of the truck in traffic.

The Face Detection Algorithm Set to Revolutionize Image Search

The great promise of this kind of algorithm is in image search. At the moment, it is straightforward to hunt for images taken at a specific place or at a certain time. But it is hard to find images taken of specific people. This is step in that direction. It is inevitable that this capability will be with us in the not too distant future.

via The Face Detection Algorithm Set to Revolutionize Image Search | MIT Technology Review.