H.264 licensing revisited and explored

I’ve got a backlog of stuff here, so some of these might be a bit short.

First up, revisiting video codec patents, which I originally wrote about in February.

A recent post on librevideo.org was also written after Ben Schwartz’s post “No, you can’t do that with H.264” as mine was. From the article:

In the interest of clarifying the ambiguous claims regarding the licensing terms of using the AVC/H.264 video technology, Libre Video has taken the time over the past few weeks to contact the MPEG-LA directly, the licensing authority responsible for administering the patent pool for the H.264 specification. We have asked them various questions related to what we feel are important issues surrounding the terms under which normal people are permitted to use hardware products that they have purchased and the resulting multimedia content created with them.

Obviously, there is way too much to quote here, but the important conclusions to draw from Libre Video’s correspondence with MPEG-LA are:

  1. The simplicity of the analog media era where one buys, say, a VHS tape deck and can pretty much do what one wishes with it are over. Software patents turn what should be simple tasks into a legal minefield ready to explode under those that least expect legal obstacles.
  2. Even professional products do not include a professional H.264 license. This includes, say, Final Cut Pro.
  3. The AVC licensing only applies to an end product, and can be avoided by transcoding the video to, say, Ogg Theora or the upcoming VP8/WebM.
  4. The patent licenses required to legally decode H.264 make it impossible to write a free software (GPL) H.264 decoder. This is most unfortunate on the part of MPEG-LA and the companies that have chosen to embrace this standard.

I’m disappointed in MPEG-LA and the companies which formed it. This is perhaps the biggest step backward for user freedoms since the DMCA; many otherwise law-abiding free software users will wind up breaking the law just to convert their H.264 video to formats like Ogg Theora.

I propose the following solution:

  1. For personal use/non-profit videos, MPEG-LA waives the royalties on software-based decoding of H.264 for the purposes of conversion to another video format.
  2. Apple, Microsoft, and other developers voluntarily rename video editing products with the word “Pro” or “Professional” in the name (such as Final Cut Pro) to a new name not including the words “professional” or “pro” and putting a prominent disclaimer on the box: “The H.264 decoder and encoder are licensed for personal use only. Use of the H.264 video format allowed by this software product may require additional licenses from the MPEG Licensing Authority (MPEG-LA).”

These are the fair things to do. The first would make the H.264 decoder in ffmpeg legal for most of its uses. Maybe MPEG-LA would need to raise their royalties to compensate for “lost” revenue. I have news for MPEG-LA: many of the users of ffmpeg would never pay you one red cent anyway. A few are effective scofflaws, but most are easily convinced that having to break the law to convert their home movies to another digital video format without paying even more money is at best ludicrous and at worst insane.

The second just makes sense. This, of course, is exactly why the companies in question will never do it. But that’s another rant for another day.

Microsoft Windows, updates, reboots, and the principle of least surprise

It’s been a while since I’ve ripped on Microsoft, which I was reminded of after seeing Matt Mullenweg’s recent blog entry about Windows and it’s horrid habit of rebooting to install updates, without specifically being told to do so. This wouldn’t be nearly as bad, if Matt didn’t link to a blog entry he wrote six years ago describing the same exact thing which at the time cost Matt quite a bit of unsaved work. (At the time of this earlier entry, Robert Scoble was working for Microsoft and apologized to Matt in his blog. By the way, this is something I suspect would never be allowed from a Microsoft employee now, and looking back at it, I’m a bit surprised Robert got away with it.)

Now, most people would think Microsoft would listen to their customers(*) and fix what is widely perceived as a bug, even if it was originally an intentional design decision. Especially after someone as high-profile as Matt has blogged about it, now twice. For the uninitiated, here’s what Matt is talking about in those entries:

  • The Windows Update tool downloads its updates and installs them. There are three options: manually download and install, automatically download and manually install, or automatically download and install.
  • At the conclusion of the install, if one of the updates requires a reboot (which, given this is Windows we’re talking about, is almost always the case), a dialog box pops up with the option to “restart now” or “restart later” with a timer. Originally, this timer was 5 minutes; I think it’s been changed to be longer (15 minutes?).
  • “Restart later” just means the dialog box pops up again some time later. I’ve never measured how long it is, I just know it keeps nagging until you reboot, and there is no way to select “go the #%&$@ away, I’ll reboot when I damn well please.”
  • “Restart now” does what it says.
  • If no action is taken when the timer expires the system reboots. This is almost never what the user (who is in effect Microsoft’s customer) actually wants.

This last bit is why people like Matt write blog entries like that one. This is also why people like me quit running Windows at all. My first choice for a new PC is “one without Windows on it.” My second choice is “one I can wipe the Windows install from as soon as I get it.” (I’ve been stuck using a Windows XP system enough to know this is how it worked as of that version. I quit using Windows at the first opportunity, for reasons that should be obvious. No PC that I actually own has run any version of Windows since 2002 April, which is now over eight years ago.)

The reason the timed reboot is such a disaster is that it violates the principle of least surprise (also called the principle of least astonishment). A computer user expects the computer to stay running absent a specific command to reboot. (I’m being generous here, given this is Microsoft Windows in question, an operating system not exactly known for its stability.)

In addition, Microsoft puts scary warnings in the Windows Update component which encourage users to select “automatically update.” From Matt’s post:

I can’t reconcile that it was due to a feature of an operating system, a feature I was told to turn on to stay safe, and a feature that bugs you when it isn’t activated. I trusted the computer because of the improvements to stability Microsoft had made in XP and SP2. Trust like that is slow to build and easy to break.

Now, Ubuntu gets it right (or at least did as of 9.10; I lack the experience with 10.04 to confirm). Most updates do not require a reboot. Those that do (new kernel versions), pop up the dialog box once. Yes, that’s right, once. If you say you would prefer to reboot later, the dialog box is gone for the rest of the session. The only bad part of this is that hibernating is broken from that point forward until you reboot and you just have to know this from experience. Since Ubuntu’s Update Manager is relatively unobtrusive (it pops up once per day if dismissed) this effectively becomes a non-issue. If you don’t use hibernating mode it’s not an issue.

Anyway, my point is that it’s inexcusable for Microsoft to allow what most users consider a horrid bug in place all this time, especially given a competing operating system shows how it should be done. I don’t know the right way to fix this in Microsoft’s world. I do know defaulting to a reboot after a time delay is not an acceptable answer to the majority of computer users (note, that’s computer users in general, not just PC users or Windows users). Then again, maybe the answer lies in not requiring a reboot after just about any system update. I’m not holding my breath waiting for Microsoft’s fix for that one, though.

(Note: When I refer to Microsoft’s customers here, I refer to the end users of Windows. I know technically Windows is usually sold to OEMs like HP, Dell, Compaq, Gateway, etc. but they aren’t really the customer here. It is the end user that Microsoft ultimately aims to please.)

Cops vs. citizens with recorders: who wins?

A recent Gizmodo post discusses videos depicting police abuse and what is a dubious at best reaction from law enforcement. Specifically, some states are now making it illegal to record or photograph an on-duty law enforcement officer. From the article:

In response to a flood of Facebook and YouTube videos that depict police abuse, a new trend in law enforcement is gaining popularity. In at least three states, it is now illegal to record any on-duty police officer.

Even if the encounter involves you and may be necessary to your defense, and even if the recording is on a public street where no expectation of privacy exists.

The most alarming example comes from Christopher Drew, who recorded his own
arrest for selling $1 artwork on the streets of Chicago. The charges of
peddling in a prohibited area and not having a peddler’s license were dropped;
instead, Christopher is being prosecuted for eavesdropping, a class I felony.

Christopher documents his experience with some very pointed commmentary in this blog entry which includes a quote from Robert Lederman’s instructions to artists in New York City about documenting everything. Christopher also delivers this white-hot flame against the sad state of affairs in Illinois with regard to the eavesdropping law, which I quote in part (and agree with completely):

If you are a corrupt public official or a person involved in corruption its in your favor to have an eavesdropping law that prevents anyone from recording anything in public without the fear of a felony. A corrupt person feels more comfortable in a state like that. Unfortunately, its possible for a lot of honest people to end up felons while the real felons walk free. That’s why I ask – what is the state of our police in this state we are in?

Christoper’s experience is a huge blemish against the reputation of the city of Chicago as friendly to artists and those who express themselves. A blemish that a city of that size cannot afford.

Radley Balko wrote an editorial about Christopher’s rejected motion to dismiss the case, which asks many pointed questions, and also points out the history of the Illinois eavesdropping law, which originally had an expectation of privacy exception, but has not since 1994. Quoting Radley’s article:

Here’s where it gets even worse: Originally, the Illinois eavesdropping law did also include a similar expectation of privacy provision. But the legislature stripped that provision out in 1994, and they did so in response to an incident in which a citizen recorded his interaction with two on-duty police officers. In other words, the Illinois legislature specifically intended to make it a Class I felony, punishable by up to 15 years in prison, to make an audio recording of an on-duty police officer without his permission.

The fact that this came about in response to an incident involving a conversation with two on-duty cops should say everything about the intent of the state legislature. This already-bad law, of course, has not gotten better with age; in fact technology and the ubiquity of small devices capable of recording audio and video has made this bad law even worse.

So is it always risking arrest to record an on-duty cop in those states? Well, not really, as quoting from the Gizmodo article:

In short, recordings that are flattering to the police – an officer kissing a baby or rescuing a dog – will almost certainly not result in prosecution even if they are done without all-party consent. The only people who seem prone to prosecution are those who embarrass or confront the police, or who somehow challenge the law. If true, then the prosecutions are a form of social control to discourage criticism of the police or simple dissent.

This kind of law, combined with blatant selective enforcement, is entirely out of place in free society, and a mockery of the standards by which decent people live. Indeed, I believe the criticism and challenge of unjust laws to be an essential part of a free society. I’ve used this quote from the FSF before, but it applies yet again:

The idea that laws decide what is right or wrong is mistaken in general. Laws are, at their best, an attempt to achieve justice; to say that laws define justice or ethical conduct is turning things upside down.

Indeed, the abuse of eavesdropping and wiretapping laws is another example of how those charged with enforcing the law often view themselves as above the law. It’s in the same general category as cops conveniently disregarding stop signs, traffic lights, speed limits, prohibited turn signs, etc at their convenience (when not responding to a bona fide emergency, and I specifically exclude the donut shop closing for the night in five minutes from the definition of such an emergency). Indeed, it’s incredibly convenient that getting video of these types of reckless acts by those sworn to serve and protect is risky business in some places, yet one could easily take all the video one wants of, say, a cop hugging his daughters.

I’d expect the kind of insanity in certain other countries: UK, Germany, France, maybe even Mexico or Canada. But the United States of America was founded on freedom from tyranny, and it is in the direction of tyranny that these laws take us. This egregious trampling of the First Amendment cannot continue unchallenged, lest those who fought to acquire and maintain that freedom and others are to have ultimately done so in vain.

Finally, I encourage everyone to support Christoper Drew’s legal defense, either financially or just by raising awareness of this serious issue. This is wrong and the real criminals here are the ethically bankrupt Chicago police and prosecuting attorneys. I’ll post more details on exactly what Christopher needs as I get them.

At your own risk, indeed

Mashable recently reported on a Google Maps user that was injured while following walking directions from the site, and later sued Google and both the driver of the vehicle that hit her.

Lauren Rosenberg used her Blackberry to get this set of directions in Park City, UT which include an 0.6 mile stretch on Deer Valley Drive, also known as highway 224. The Blackberry’s Google Maps application apparently does not give the standard warning about walking directions being in beta, which is the focus of Lauren’s lawsuit against Google.

I would imagine the Blackberry application also does not show the choice of two to four different routes, as the third choice as of the time I ran the directions uses Park Avenue for most of the distance and only requires one to walk 279 feet (or just over 1/20 of a mile) down the apparently pedestrian-hostile Deer Valley Drive. There is no route that completely avoids Deer Valley Drive (every street in the area which intersects Deer Valley Drive does not go through to the other side, probably due to geography). The Google Street View pictures show a speed limit of 35 mph for this stretch of the road, probably about the only pedestrian-friendly thing about it.

I’m not sure the lawsuit against Google is entirely deserved; the directions are about the best that can be managed, though Google was sloppy to not include the warning in the Blackberry app. There is no question that the driver who hit Lauren deserves to be sued, of course. However, I am wondering why the government responsible for maintaining the roads isn’t being sued as well, as the roads could be made somewhat more pedestrian friendly than they are. I understand the limits of geography and our motor-vehicle-centric society (and thus the assumption that “everyone has a car” in a small town like this). However, cars do break down, and sometimes the only way to get to the auto parts store is on foot. Sometimes civil engineers forget this simple fact of life.

The failure of drug prohibition: a “pot” bust in Corpus Christi

Flash back a few years to the old Miller Lite commercials where they’d show two people asking to watch two different sports on TV, then a third guy says, “Let’s watch both” and then taps a bottle of beer on the TV which automagically tunes to a channel where the announcer says “Miller Lite presents…” followed by an improbable combination of two sports such as “Full Contact Golf.”

Well, that commercial played through my mind yesterday as I pondered whether I needed to write a long-overdue article about the failure of drug prohibition, or yet another article about an incredibly dumb police blunder. And then, I see a mention of  this crazy story on my Twitter stream. Why not write about both, in one post?

As reported by Corpus Christi station KRIS-TV as well as rawstory.com, some members of the Corpus Christi Police Department thought they were making a rather large marijuana seizure.

The cops haul their prize load of over 300 plants into the station, and start testing them, only to get the biggest surprise of all: these were just ordinary weeds, not pot. (Specifically, horse mint.) Corpus Christi’s finest, indeed. It’s amazing how much yard work cops will do when they think they have pot plants.

Of course, were we to handle drugs as a social problem, not a legal problem, there would be nothing for the cops to do about these weeds, whether they were the weed (pot) or just garden variety. Indeed, there are many organizations specifically formed for the legalization of marijuana, and others not actually part of the organization that at least support the legalization of marijuana even if most other currently illicit drugs remain prohibited. Before I had to start paring down the accounts I was following on Twitter, I had been following the Twitter accounts of several such organizations (I don’t even have their sites bookmarked here, but I could probably find many of them again). Groups like Drug Policy Alliance are in a small minority, but it doesn’t make their arguments any less valid.

So you wonder why I’m in favor of ending drug prohibition. No, it’s not because I want to go down to my corner store and pick up a bag of cocaine or heroin the same way I get a 12-pack of beer. It’s because of the answers I get when I pose the simple question: what has drug prohibition actually done for us?

For one, it’s given many jurisdictions a convenient excuse to hire many, if not an excess of, police officers. These cops wind up doing things like writing traffic tickets during the inevitable lull in “real crime.” More often than not, the traffic stops are rarely about safety, but often an excuse to conduct warrantless searches of vehicles. Any contraband found during a consent search usually results in a conviction. For details, see the videos at flexyourrights.org; I’ll summarize here by saying usually it is a bad idea to consent to a search (this includes allowing police to enter your premises without a warrant).

Next, when the cops and prosecutors successfully do their new jobs, we, the taxpayers, wind up footing the bill for the prison stays of most of these drug users, space that could be better used housing real career criminals that actually do pose a real danger to society. (Some do get probation but even then the probation departments still wind up having to spend money on drug testing and programs like the SAFP (Substance Abuse Felony Penalty) program in Harris County, which could arguably be better utilized on reducing the caseloads of rank-and-file probation officers by hiring more of them.)

Another aspect of drug prohibition is that it artificially drives up the cost of the now-prohibited drugs. This means that for the junkies to keep getting their fix, they wind up committing other crimes such as theft and fraud. So yes, you’re reading this right: the drug prohibition laws actually cause more crime, not only from the prohibition of possession and manufacture, but also as a side effect from the inflated prices.

Finally, there’s one more effect that needs to be said, even though it’s probably the aspect I honestly feel least comfortable talking about. The measure of career success of most prosecuting attorneys is how many cases they have won, and such things as having lost few cases. This is usually accomplished by aggressively “trumping up” charges and getting clients to plea bargain down to a lesser offense, often more serious than one the evidence actually supports. The fewer cases that go to trial, the better the “batting average” for the prosecutor, as once charged, the only path to “not guilty” is through trial. The more cases get handled by plea bargain, the more cases the courts can handle; a prosecutor that lets too many cases go to trial is likely not to build favor with judges and have a short career as a prosecuting attorney.

I don’t disagree with plea bargains in principle. However, they make the enforcement of unjust laws even more unjust than they already are, and serve to skew the perception of the fairness of the court system to the average citizen when used to enforce unjust laws.

While I agree in principle with the idea of limiting recreational drug use to an acceptable level, I believe drug prohibition has failed to accomplish this and in many cases has made the problem worse. The Corpus Christi incident only serves to underscore this colossal failure. I’m sure there are others like it, that this is neither the first such case, nor will it likely be the last.

Drug prohibition: just say no.