New Projects - Fresh from the Labs
I mentioned LongoMatch in last month's Projects at a Glance sidebar, hoping I could get it to work this month. I assumed it would be tricky to install, being a video-related project, but much to my surprise and delight, it installed with very little fuss, and I'm proud to feature it here this month. According to LongoMatch's Web site:
LongoMatch is a sports video analysis tool for coaches to assist them in making game video analysis. You can tag the most important plays of a game and group them by categories to study each detail of game strategy. A list with all the tagged plays lets you review them with a simple click, even in slow motion. The timeline gives a quick overview of the game and lets you adjust the lead and lag time of each play frame by frame. LongoMatch has support for playlists, an easy way to create presentations with plays from different games. Besides, you can create new videos with your favorite plays using the video editing feature.
My hat is off to Andoni Morales who made the entire installation process pain-free. Head to the download page, and your choices are repositories to add for Ubuntu (I know this isn't Ubuntu Journal, sorry) or a source tarball. If you are an Ubuntu user, add the repositories mentioned, update apt-get, and select the package longomatch.
If you're not an Ubuntu user and have to use the source, don't panic, Andoni has marked out the packages you need: autotools-dev, pkg-config, mono-gmcs, libdb4o6.0-cil, libgtk2.0-cil, libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev, libgtk2.0-dev, libmono2.0-cil and libmono-cairo2.0-cil.
If you use a Debian-based distro, you can use this command (to be run as root or sudo):
apt-get install autotools-dev pkg-config mono-gmcs ↪libdb4o6.0-cil libgtk2.0-cil libgstreamer0.10-dev ↪libgstreamer-plugins-base0.10-dev libgtk2.0-dev ↪libmono2.0-cil libmono-cairo2.0-cil
Once the dependencies are out of the way, grab the source tarball, extract it, and open a terminal in the new folder. Enter the commands:
$ ./configure $ make
And, as root or sudo:
# make install # ldconfig
Once the source has finished compiling, you can run the program by entering:
Before starting, you need a video to analyze. Let's assume it's a sporting video with two teams, but it doesn't have to be (more on that later). Once inside, you need to start a New Project under the File menu. The New Project window prompts you to enter the name of a Local Team and a Visitor Team, the number of each team's goals, as well as the date of the match. These tools simply make things easier for a sport that fits this profile—soccer being the main example—but they're not requirements, especially if your sport doesn't fit these constraints (my sport is rock climbing for instance, for which video analysis is also very helpful).
Once you've selected your video and are ready to go, LongoMatch automatically goes to its main screen, Capture Mode, and starts playing your chosen video. When you want to highlight something, such as a scored goal, a penalty and so on, click the Pause button. Then, click the Data 1 button below to note your first bit of information. If you notice the field on the far left of the screen (where it also says Data 1, Data 2, Data 3 and so on), you'll see a marking arrow has been placed next to the name of Data 1. If you double-click on it, you now can rename it to whatever you want, such as “free kick”.
Click the Play button again, and the video plays until the next event you want to mark. Repeat the steps for Data 1 on the Data 2 button. From here, you will start to build a timeline of events, and obviously, you take the same steps for each data point. If you want to fast-forward or rewind, you can use the slider bar, which is very handy on tedious junior soccer matches! The vertical slider bar on the right controls the playback speed, allowing you to slow down to catch an important Chelsea goal or speed up when you're watching nine-year-olds play out their enthralling 90 minutes of football.
Once you're finished with the Capture Mode and are ready to look at what you've marked for analysis, click on the View menu and choose the Analyze Mode. From here, you can see all the moments marked out on a timeline. Double-click on any of these marked-out sections, and LongoMatch takes you straight to that point in the video.
However, each marked-out point is given a default length that may be too long or too short for what you want to highlight. Click on the start or end of a data point's red bar and drag it left or right, which makes the bar longer or shorter in each section, letting you tighten up the contents of your highlights. The cool thing is that the video updates as you slowly drag the bar around, which really helps with accuracy and pinpointing crucial playback moments.
What I quickly realized with LongoMatch is that it doesn't need to be used only for sporting analysis. It can be used to analyze any video. If you simply ignore the prompts at the start in the New Project section, you can load any video you like and then mark out interesting points. For instance, I used it to mark out interesting sections of a music video, which I then can fast-forward to in the Analyze Mode's timeline section. Getting back to the subject of sports, I can use it on climbing footage to mark out crucial sections of a route to learn the moves and study each one individually.
Andoni has made something very useful here that will find an audience with many coaches and referees, plus it will ease a great deal of stress for poor dads who've been stuck with the job of highlighting their kids' sporting matches! As LongoMatch is developed in Mono, it also runs on Windows, meaning that the audience for this project is potentially quite broad. It's already getting a following amongst hockey and rugby teams. And, let's not forget the added bonus that this can be used as a general video analysis tool as well, which could make it popular with those who want to use it for multimedia purposes, provided they ignore the sporting features (perhaps a fork is in order, or an alternative GUI?). I'm interested to see where this goes, in the likes of The GIMP or Blender it could become a distro mainstay in one form or another.
John Knight is the New Projects columnist for Linux Journal.
Practical Task Scheduling Deployment
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.View Now!
|The Firebird Project's Firebird Relational Database||Jul 29, 2016|
|Stunnel Security for Oracle||Jul 28, 2016|
|SUSE LLC's SUSE Manager||Jul 21, 2016|
|My +1 Sword of Productivity||Jul 20, 2016|
|Non-Linux FOSS: Caffeine!||Jul 19, 2016|
|Murat Yener and Onur Dundar's Expert Android Studio (Wrox)||Jul 18, 2016|
- The Firebird Project's Firebird Relational Database
- Stunnel Security for Oracle
- My +1 Sword of Productivity
- Non-Linux FOSS: Caffeine!
- Managing Linux Using Puppet
- SUSE LLC's SUSE Manager
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- Doing for User Space What We Did for Kernel Space
- Google's SwiftShader Released
- SuperTuxKart 0.9.2 Released
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide