| posting videos online |
[Jul. 11th, 2009|01:57 am] |
|
YouTube has a 10-minute limit on videos posted. Are there any good alternatives? |
|
|
| vidfs |
[Jul. 11th, 2009|01:15 am] |
A nice nerdy post for you now.
MATLAB is slow at reading frames from movies on my Mac, for no reason I can readily discern. Like, really, really slow---about 10 FPS for a 640x480 H.264 movie.
Today I got fed up and wrote my own facility for reading movie frames. It works... differently.
stepletron:vidfs tom$ ./vidfs ~/Desktop/rawmatte/Movie\ 3\ matte.mov -f mnt &
[1] 70872
stepletron:vidfs tom$ ls -l mnt/
total 80
-rw-r--r-- 1 root wheel 3 Jul 9 13:00 INFO_depth
-rw-r--r-- 1 root wheel 4 Jul 9 13:00 INFO_height
-rw-r--r-- 1 root wheel 46 Jul 9 13:00 INFO_movie_file
-rw-r--r-- 1 root wheel 2 Jul 9 13:00 INFO_num_channels
-rw-r--r-- 1 root wheel 7 Jul 9 13:00 INFO_num_frames
-rw-r--r-- 1 root wheel 5 Jul 9 13:00 INFO_row_step
-rw-r--r-- 1 root wheel 4 Jul 9 13:00 INFO_width
dr-xr-xr-x 3 root wheel 4096 Jul 9 13:00 MATLAB
dr-xr-xr-x 3 root wheel 4096 Jul 9 13:00 PPMPPM
dr-xr-xr-x 3 root wheel 4096 Jul 9 13:00 RAWRAW
stepletron:vidfs tom$ cat mnt/INFO_width mnt/INFO_height
640
480
stepletron:vidfs tom$ file mnt/PPMPPM/15
mnt/PPMPPM/15: Netpbm PPM "rawbits" image data
stepletron:vidfs tom$ ls mnt/PPMPPM | wc -l
188020
stepletron:vidfs tom$ umount mnt
stepletron:vidfs tom$ ls -l mnt/
[1]+ Done ./vidfs ~/Desktop/rawmatte/Movie\ 3\ matte.mov -f mnt
stepletron:vidfs tom$
So basically the vidfs program turns the movie file into mounted filesystem. Each frame is its own file---actually, it's three files, in three formats, in three separate folders (PPM, a raw format, and a format convenient for reading into MATLAB). You can open the frame in an image editor if you like---of course, you can't save a modified frame back into the movie, but I don't need that.
Two things make this really easy to do. The first is OpenCV---for all its ugliness, it's good at reading single frames from movies without having you deal with the QuickTime/GStreamer/whatever API. The second is FUSE, which does a wonderful job of making userspace filesystems fall-off-a-log simple to implement. You implement four callbacks and your read-only filesystem is ready to go. GNU Hurd translators on an OS that people actually use... not too shabby. VMWare Fusion installs FUSE so that you can read disk images; if you have a Mac, you may already have FUSE. Otherwise, you can get it from MacPorts or just build it yourself. Linux folks can turn to their package manager, I assume.
Right now MATLAB pulls frames from vidfs at about 50 FPS. A custom MEX routine for reading files from vidfs will likely yield improvements.
vidfs.cc, quick 'n dirty, but works on a Mac at least. Needs OpenCV and FUSE, as noted. |
|
|
| (no subject) |
[Jul. 11th, 2009|12:25 am] |
|
Released from work caught a bus home went to the store only to realize I left my wallet at home. ate a bite of what might be lunch. checked to see if I had enough ingredients for cheese straws (check). Made cheese straws in like 6 or 8 batches (with the oven at 450- is this why you don't bake in the summer?) Got dressed, wrapped present, slapped some glow in the dark on. Put cheese straws in containers- get call from ride- get stuff together and out doors. Ugh busy afternoon- amusing party- good wallflowers. Now extra cheese straws (cheesy pie crusts) mmm. |
|
|
| Vos Otros |
[Jul. 10th, 2009|10:12 pm] |
|
I just spent the last hour reading about vos, usted, vosotros, and other things relating to second person in Spanish. This filled in the gap for me on why other languages like French use "vous". Apparently there's a lot of variance throughout Central/S. America on where vos replaces tú, and how vos is conjugated. For simplicity's sake, I like the forms that conjugate it the same as vosotros. Usted is apparently a merged form of "vuestra merced", while vosotros is (obviously) a merged form of "vos otros". I've spent a fair bit of time over the last 2 weeks in Gates, and I am not at all impressed( Read more... ) I've been using Amarok, a KDE-based graphical audio player, in order to allow me to easily rate my music collection (my normal way of playing music, a lightly sophisticated commandline program I wrote, is never going to be usable for that). Unfortunately, it's proven to be like pulling teeth to try to get those ratings back out ( Read more... ) I finished reading Tim Scott's 「Love in the Time of Fridges」 - it feels like the author watched Terry Gilliam's 「Brazil」 and replaced the dark humour with absurdist and light humour and added a lightly cyberpunk tone. It was still enjoyable, although I doubt I'll ever reread it. |
|
|
| (no subject) |
[Jul. 10th, 2009|10:26 pm] |
Activities for today: I joined Hostelling International with a one-year membership for $28. It seems like it should actually pay off — HI hostels in France and Switzerland require you to be a member in order to stay there, and Canadian HI hostels give you a discount. This is obviously relevant to my interests for spending the fall in France (and traveling as much as a small budget will allow on the weekends), plus the MT Summit conference in Ottawa next month is taking place about two blocks from an HI hostel, and this gives me more ammunition to argue that I should go (if I need to argue) since I have a new way to keep costs down. I think I leave for France in about seven or eight weeks: I booked my tickets a few days ago, and the Jour J is Thursday, Sept. 3.
Outside of my computer, I have understood about 25 percent of what's happened in my world for the last 50 hours. I've nominally learned 12 new Thai words, not from picking them out in conversation but by studying them in a little book when I have nothing else to do, but compared to the number of words I've heard go by it's an astronomically small percentage. I should be seizing this opportunity to test out what I can say, but I always feel too nervous and have thus just spend two days feeling very isolated instead. I am beginning to revolt by switching to French when talking to Alan, which at least makes me feel a little more competent in some linguistic arena. |
|
|
| (no subject) |
[Jul. 10th, 2009|09:34 pm] |
What do you get if you combine super lo-fi 32kbps mp3 encoding, SWFTOOLS, and crumbly sleep-deprived left-over bits of sanity?
Flash dancing blob!
Perhaps my greatest accomplishment in the field of pointless animated musical proof-of-concept demos since my 6502 threading library MUSTARD.NES.
The concept this is proving is not very special in this case, just that command-line swf tools (called "SWFTOOLS") actually work as advertised. In some cases, even better than advertised since the docs imply that png and mp3 support has not yet been implemented, but the implementation says otherwise. |
|
|
| (no subject) |
[Jul. 10th, 2009|07:47 pm] |
If you think my thesis has too many maths and not enough pretty pictures, you should read Raph Levien's PhD thesis. It is about the Spiro font tool/library he made, which I'm kind of suprised I haven't heard about before. This YouTube video explains better than words can. It was about 1:40 in where I started going "ooohhhhh I see why this is useful". |
|
|
| Stupid painful clamshell packaging |
[Jul. 10th, 2009|03:49 pm] |
|
There's nothing like getting two items, one in Amazon's frustration free packaging and one not, to make you appreciate the frustration free packaging even more. Fortunately I only ended up with a scratch from the unfriendly packaging this time. |
|
|
| 4th of July 2009 + Nobody Here but Us Servantless American Cooks |
[Jul. 10th, 2009|05:05 pm] |
| [ | Current Mood |
| | jubilant | ] |
| [ | Current Music |
| | ceiling fan | ] | I went to see a free screening of Julie and Julia last night and it was really fun and delightful! I highly recommend it. It really made me want to blog, cook and blog about cooking!
Last weekend I had an incredibly amaizng fourth which included Erin Breen(!), watching the fireworks from Mt. Washington, lawn darts, many friends, much good food, hundreds of sparklers and mad cap documentation of all these things. About 744 photographs were taken in about 48 hours! Most of them can be seen:

here

here

and here. |
|
|
| (no subject) |
[Jul. 10th, 2009|04:18 pm] |
Alright, it's officially ridiculous: some random guy in Pittsburgh and I now know each other by sight because he's tried to pick me up so many times. With his dazzling wit? No. Because we share so many of the same interests? No. He stops me on the street and asks me what time it is, then attempts to start a conversation from a full stop.
Next time he does it I'm sorely tempted to sit him down (after making my romantic disinterest clear, whether or not it sticks) and ask him whether it works on many other girls, and if not (and I really can't imagine it being very effective -- he's pretty pushy), why he persists, and if it ever occurs to him that being asked for personal information by a relative stranger is pretty creepy, or that it feels good neither to have to tell him no now for the third time, nor to be so unmemorable that he wouldn't have remembered asking before.
If he were somebody I knew, it'd be flattering. As it is, it makes me think I should be more nervous walking alone at night.
Huh. |
|
|
| Announcing the new Haskell Prime process, and Haskell 2010 |
[Jul. 10th, 2009|03:25 pm] |
|
http://lambda-the-ultimate.org/node/3489 Simon Marlow:
...with ICFP and the Haskell Symposium approaching we felt it was time to
get the new process moving and hopefully produce a language revision...
In the coming weeks we'll be refining proposals in preparation for
Haskell 2010. By all means suggest more possibilities; however note
that as per the new process, a proposal must be "complete" (i.e. in the
form of an addendum) in order to be a candidate for acceptance.
More here. |
|
|
| (no subject) |
[Jul. 10th, 2009|11:35 am] |
[WoW] 78. Whee! I'm currently running Sholazar quests, having done a few Nesingwary to get to Frenzyheart/Oracles and then dropping the remainder like a just-opened soda can unexpectedly full of angry bees. I hear that at some point I'm going to have to choose between the two, at least for a while. Since neither has particularly good gear, this reduces my choice to one between Cute But Stupid and Ugly But Not As Stupid.
Bought flying, then discovered that I'd totally forgotten about needing Cold-Weather Flying, and that I didn't have enough gold to buy it. Argh. I guess it's time to sell off some of my stock of Moonshroud. Speaking of which, I should figure out where to get the 22-slot bag pattern. (Edit: Argh, it's the friggen sons of Hodir, and also requires another 10 points in Tailoring that I don't know how to get easily.)
Instances don't give nearly as good XP/time as quests do in the 70s, apparently. It definitely used to be the other way around (before the changes to hasten 1-70), so I'm not sure what happened. Perhaps my limiting myself to instances where I'm pretty sure I won't wipe the group from lack of healing throughput is the problem. Though that would be less of a problem if I were quicker about reacting;--perhaps I should redo my keymappings. |
|
|
| (no subject) |
[Jul. 10th, 2009|09:17 pm] |
I'm in Cairo, hanging out with my sister. She has a roommate from that exotic locale, New Paltz NY, who is also quite cool.
Mostly we've spent our time going to some ahva somewhere, drinking tea and mango or lemon juice, and chatting or simply resting, then rolling into a kashuri place for food, then to another cafe, etc. It's hot -- high 30s celsius -- but mostly dry. I briefly walked through the egyptian museum, which was worth the entrance fee and two hours but no more (they desperately need a curator to organize it all; there's plans afoot, nothing soon). Tomorrow we're day-tripping to Alexandria. But I'm really not here to tourist. |
|
|
| Running partner needed! |
[Jul. 10th, 2009|01:11 pm] |
I need a weekend running partner. My running partner is now 5 months pregnant and can't push her mileage or speed--but I really want to run the 10k Great Race in september. And I've been trying to run by myself, but for some reason I really don't run as well when I run alone. My pacing and breathing get all wonky.
I'm currently running 10:30 miles, 3 at a time, with 1-2 minutes of walking intervals. I want to push myself up to 9minute miles, 6 miles at a time. I'd like to run before it gets hot, so 7am on saturdays or sundays. I've been running on the River trail on the Northside, East Street, and Spring Garden Avenue...but I'm willing to try another route to compromise on driving distance.
I don't listen to music as I run, but I'm not a chatty-kathy so I won't be talking your ears off as we run. Male/female doesn't matter to me. |
|
|