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


MediaGoblin is a free software media publishing platform that anyone can run. You can think of it as a decentralized alternative to Flickr, YouTube, SoundCloud, etc. It’s also:

  • The perfect tool to show and share your media!
  • Building tools to empower the world through decentralization!
  • Built for extensibility. Multiple media types, including video support!

via MediaGoblin.

Linux Friendly Video Streaming?

For quite some time I just resigned myself to the fact that I’d have to boot into windows or use some other poor method to get my netflix on… then Erich Hoover arrived with a heroic flast to his eye, chin thrust forward and proclaimed, “Do not go gentle into that sudo shutdown -r now! Rage, rage against the needlessness of these cursed reboots!

Here is how to install the Netflix Desktop App on Ubuntu. Open a terminal and run these commands:
sudo apt-add-repository ppa:ehoover/compholio
sudo apt-get update
sudo apt-get install netflix-desktop

More info here: []

via Ask Slashdot: Linux Friendly Video Streaming? – Slashdot.

ZoneMinder: Linux Home CCTV and Video Camera Security with Motion Detection

ZoneMinder is an integrated set of applications which provide a complete surveillance solution allowing capture, analysis, recording and monitoring of any CCTV or security cameras attached to a Linux based machine. It is designed to run on distributions which support the Video For Linux (V4L) interface and has been tested with video cameras attached to BTTV cards, various USB cameras and also supports most IP network cameras. A partial list is given in the Wiki and Support sections, please give feedback in the Forums if it works with yours. ZoneMinder also requires MySQL and PHP, and is enhanced by a webserver such as Apache.

via ZoneMinder – ZoneMinder: Linux Home CCTV and Video Camera Security with Motion Detection.

DVR Insecurity

tl;dr; A whole slew of security dvr devices are vulnerable to an unauthenticated login disclosure and unauthenticated command injection.

via consolecowboys: Swann Song – DVR Insecurity.

Interesting read.  Obviously, a device like a DVR should be placed inside a NAT and possibly have its traffic monitored at the firewall.  Then if port 9000 is open for telnet you just have to worry about an attack from with access to the LAN — not the entire Internet.

To stream everywhere, Netflix encodes each movie 120 times

Xboxes, iPads, connected TVs: Netflix streams to a lot of different devices. More than 900, to be precise. And many of them have different screen sizes, bitrate requirements and codec support. That’s why Netflix is doing a whole lot of encoding: Each and every movie is encoded in 120 different versions, according to a behind-the-scenes video recently published by the company.

via To stream everywhere, Netflix encodes each movie 120 times — Online Video News.

Who’s Behind Comcast’s Video Downloader?

The download feature, which lets Comcast adopt an iTunes-ish model without the incremental pay-per-view component (for now), is a nice add-on because it lets users watch shows and movies on planes and in other venues that usually don’t have a solid enough broadband connection for streaming.

via Light Reading Cable – The Bauminator – Who’s Behind Comcast’s Video Downloader?.

Patience is a network effect

Now, a new study of online video viewing (via GigaOm) provides more evidence of how advances in media and networking technology reduce the patience of human beings. The researchers, Shunmuga Krishnan and Ramesh Sitaraman, studied a huge database from Akamai Technologies that documented 23 million video views by nearly seven million people. They found that people start abandoning a video in droves after a two second delay and that the abandonment rate increases 5.8 percent for every second of further delay:

via Patience is a network effect | Rough Type.