Wednesday 1 August 2012

Day 8 - Oh come on, someone win a gold...and they finally did!

We're into the second week of events and although less gold medals are obviously awarded in the first week since most events are in heat rounds rather than finals, it's still quite disappointing that the Olympics host has failed to win a gold medal. There's chances of a few today though, but so far the British Olympians have disappointed - many not getting into finals when they were expected to.

Today's recording stats are all 24 channels, 23 sports and 54 slots totalling 211 hours and 2 minutes recording time - this includes 3 minutes pre-padding and 5 minutes post-padding for every time slot. pc2 has generally been recording more than pc1 (up to 16 HD channels simultaneously in fact) and its first 3TB disk is now 92% full. My transmedia program should therefore start using the second 3TB disk in pc2 by lunchtime.

Just been checking digiguide.tv's listings for the 24 channels through to the 10th August (yes, 2 days short of the end) and the 8th August is apparently only using 12 of the 24 channels! A "half-day" of sport next Wednesday then? Or a listings error? Who knows.

I'm going to experiment with a tuner allocation program I wrote the other day. It basically suggests which PC/tuner should be allocated for the next event to avoid over-allocating tuners like I mentioned in yesterday's post. If either PC is already recording the same transponder it is used again for the new event, otherwise it's the PC with most free tuners available. If that ties, then it's the PC with the most tuners overall, which is currently pc2's 4 compared to pc1's 3.

I have no doubling-up code in it yet, but that gets trickier because there will times where you'll have to cancel one or more of the double-ups to free up a tuner for a new slot that needs a fresh transponder.

Hey, did we just have five events start simultaneously at 08:55 this morning? Two badminton and one each of beach volleyball, archery and fencing. That may be the first time it's happened because I can only remember four simultaneous starts prior to today. That fencing slot has also joined the bad boys hall of fame of overly long slots at a painful 7 hours and 15 mins and will be split today. The only other scheduling note of interest is that basketball sets a new latest-ending record by finishing at 00:30 tomorrow morning (update: strike that, it  looks like basketball finished well before midnight and left timetable video up when it was done in the slot).

Just been watching the swimming heats this morning on BBC Olympics 1 HD and I've aways liked the two commentators, but they're making a classic error - probably the production team not prompting them - of stopping commentary on the sat channel whilst Sharron Davies interviews whoever just finished the previous heat (presumably for one of the terrestrial channels, I dunno). Problem is that the sat channel continued with the live action and never showed the interview at all. We even had the silly point where Michael Phelps starts his heat to total commentary silence on the sat channel for a length and a half of the pool!

Needless to say, I missed the first GB gold in this Olympics whilst watching the swimming - Glover and Stanning, who amazingly (considering our good gold medal record in men's rowing) are our first ever women gold medallists in rowing, albeit the sport was only introduced to the Olympics in 1976.

A tennis session seems to have appeared out of nowhere on channel 24 - it was supposed to be badminton until 15:40, but the Now/Next has kicked in tennis between 14:45 and 20:00 today on the same channel. I've left both recording for the moment and I'm sure this has happened once or twice before as well.

No golds for 7 days and then we get 2 in one day. Watching Bradley Wiggins win the cycling road time trial was great, only soured as usual by Hugh Porter's utterly useless commentary. Why that guy still has a BBC job is anyone's guess - misidentifying the riders regularly, stating who was leading time checks without actually looking at a computer screen first (and therefore getting it wrong and having to correct himself when actually looking at the screen afterwards) and even calling the event the team time trial at one point! I believe he was equally bad in the men's road race (which I didn't watch because I wasn't convinced we'd get a medal despite the pre-race hype). Liggett and Sherwen on ITV4's TDF coverage were just so much better.

I decided to take the one and only fsync() call out of my transmedia program today. It's a C library call used usually just before you close an open file you're writing  - to HDD in this case - to physically commit the data to HDD. It does take many seconds - proportional to the file size - to execute fsync() because the writes are buffered in RAM and I have 12GB/16GB in the PCs. However, Linux is very good at disk buffering and flushing smoothly at regular intervals, so I've taken the fsync() out.

Although the file written to is only on HDD, I'm not convinced that the Linux kernel doesn't cause it to affect other filing systems. For example, it's very strange that the equivalent command line program, "sync", doesn't let you specify a file, directory, mount point or device at all! It does mean that a power failure may lose video, but I have a UPS on both PCs, so that's quite unlikely to happen. It also makes transmedia "finish" its SSD->HDD copy significantly more quickly, though of course it's not truly finished until the buffered disk writes are written to HDD a little later (I suspect that'll generally be completed within 30 seconds).

I was reviewing the transmedia source code further today and spotted two minor stupidities. When the verify pass is turned off, I still calculated the checksums for each 1MB of data read in, despite never actually comparing those checksums with the data written and then re-read from the HDD (because I don't do that re-read if verify is turned off). That was an easy fix, but the second dumb bit of code was that if the source file couldn't be deleted after the copy to HDD was successful, I'd madly delete the HDD copy too!

The reason that deletion was stupid is that if the source file is deleted or renamed after transmedia opens the file, Linux is neat enough to allow the reads to continue on the open file handle until the file is closed again. Yes, the source file has gone from a user-visible point of view (e.g. "ls" doesn't list it), but Linux will not finally delete files until all processes that have it open actually close the file. Now I just log a warning about not being able to delete the source file, leave the probably fine HDD copy intact and then continue on with the code, which is much more robust IMHO.

  Day 8 recording size: 1132GB - grand total so far: 6220GB (6.1TB)

4 comments:

  1. You know something which annoyed me a bit today was that during the Gymnastics Men's All-Around Final Stream on Olympics HD 5 they did not carry it uninterrupted. They seemed to be carrying BBC One HD stream and then when it switched to BBC Two they took that stream. This resulted in Sue Barker poping up to show an interview with Bradley Wiggins then an update on what else we could watch and worst of all when coverage moved to BBC Two there was a total loss of coverage for 5 minutes which included losing the start of the British guys routine. I thought the whole point of the streams was that they would be seperate to the normal BBC channels allowing you to concentrate on one sport without breaks.

    ReplyDelete
  2. Really, the 24 channels should be totally at the venue and never in any studio or, indeed, have any studio audio either. That's what a bunch of terrestrial channels (which are duplicated on sat/cable as well) are for! However, we do also get the issue of the venue commentators not actually doing any comms when the terrestrial channel switches to the studio or does any interviews at the same time as live action is going on at the venue.

    As I've mentioned in my posts, the swimming has suffered from this a lot with even the audio of a Sharron Davies terrestrial interview with a previous swimmer being overlaid over the next heat actually starting on the sat channel and the swimmers in the pool for half a length or more before the great comms of Andy and Adrian finally kick in.

    I think all the sat hard disk recorders I've seen (Humax etc.) have twin tuners, so anyone who wants both the studio (BBC One or whatever) and venue versions (one of the 24 sat channels) can record both - problem solved. One advantage of the sat channels, at least, is that those annoying reminder captions about what's going on the rest of the terrestrial channels aren't present.

    There is arguably too much blabbing going on in the terrestrial channels, particularly for the swimming. On a few occasions, we've had Clare Balding and Mark Foster talking for a couple of minutes about nothing particularly riveting (stuffed animals or whatever) whilst on the audio we can hear "beep!" as a swimming heat starts - arrgh! Thank goodness for the sat channels...

    As for that gymnastics coverage, that does seem particularly bad. It appears the BBC direction isn't following a rigid set of rules when it comes to the 24 channels. There is absolutely no point whatsoever in *any* of the channels (Freeview or Freesat) duplicating video content (apart from HD vs. SD of course) across the two "platforms" (sat-only channels vs. terrestrial channels) except when actual live sport (not interviews or studio analysis) is in progress.

    BTW, am I the only one puzzled why BBC Three keeps being mentioned all the time and yet it has a horrid purple logo, is in SD and is being simultaneously broadcast in a far superior manner on BBC HD (with a much less obtrusive logo and in HD as well)? Not once have I heard a presenter mention that BBC Three is better watched on BBC HD!

    ReplyDelete
  3. I agree with everything you've mentioned there. I noticed what you mention about the swimming having the commetary go off not just for Sharon Davies interviews but also sometimes just for Clare and Mark's chats even though the Sat channels should be seperate. But at least for the Swimming they don't cut away from the heats on Satellite to show the chats so even though there is not commentary you can still see the action. In fact the Gymnastics is the only event I've watched on Sat where the on screen graphic directing you to what else you can watch appears at the bottom just like on terrestrial.

    I also agree about the amount of blabbing that can go on on the terrestrial which is why I got a dish set up for the Olympics. I've had this issue with BBC coverage for years. I suppose I should be glad for no adverts though.

    Despite my issue with the Gymnastics coverage I am really appreciating having the option to watch any sport I want in HD, especially as I find the coverage on the terrestrial channels a challenge. I will really miss these streams at the next Olympics.

    ReplyDelete
    Replies
    1. Got to say that I'm deeply unimpressed with the Olympics Tonight "highlights" show on BBC One as well. You'd have thought that any event where we won gold and lasted less than 10 minutes would have been shown in full with the original commentary, so that anyone who didn't see it (being at work or whatever) could sit down and watch the same thing that the people who watched it live did.

      I was watching it on the evening of 3rd Aug (tonight as I type this) and was utterly appalled at how they showed the men's team pursuit on the Olympics Tonight show. They put some sort of loud dance music in the background, only played brief snatches of the original commentary, only showed brief slow-mo clips of the cyclists at certain points in the race and then went to normal speed/comms only on the final lap! Remember, this was a 5 minute performance that resulted in a gold medal and world record and yet the BBC couldn't give it enough respect for a normal full repeat of the event.

      It is nice to be able to see all the sports in HD, but I do have a gripe about the slot scheduling (apart from the overly long slots and the empty channels all day!). The Now/Next (EIT) system is designed to allow for schedule adjustments and an obvious example is slot overruns - e.g. weather, extra time, protests, long tennis matches may result in delays.

      However, I'm pretty certain I've seen overruns not producing a new or adjusted time slot with the system, which is very disappolinting because unless someone is monitoring all 24 video channels continuously (and even I can't do that!), overruns won't be caught and I'm certain I've probably missed dozens of them so far.

      Delete