I have a 13″ MacBook Pro that I use for my personal and non-work shtuff. I resized OS X down, installed Linux (Kubuntu), and set up a shared partition so that I can keep files there that I want to access from both OS X and Linux. Things like my music and video collection, Snooker torrents, VMware virtual machines, etc. It appears that there are basically 4 decent options for a shared filesystem between OS X and Linux, but IMHO only 2 of them are worth trying and only 1 of them seems to actually work almost perfectly:
Great. So why am I blogging about this? Well, like I said, hfsplus access in Linux is working almost perfectly. Except for VLC. Apparently, hfsplus has some nasty problems and isn’t actually POSIX compliant when it comes to opening directories. Due to how VLC handles “files” that it is asked to play (it accepts both directories and files as playlist arguments and VLC chooses to try to open the playlist element as a directory first, and this doesn’t fail with hfsplus the way it should in POSIX-compliant filesystems) VLC is unable to play anything that’s on an hfsplus partition. This is quite a bummer for me and others who use hfsplus as a filesystem and also like to use VLC.
Enter this bug report and Tobias’s awesome little patch for VLC. After using his patch and applying it over the top of my 1.0.3 VLC here in Kubuntu Karmic, I am now able to watch movies and listen to music stored on my hfsplus shared partition again from Linux, using VLC. Huzzah! Maybe this’ll help someone else out there struggling with this (or just generate a lot of “you suck, why would you use proprietary Apple hardware or OS X?!?!” comments).
Oh, and while this is a hfsplus filesystem problem at the root, because of how Kaffeine or KDE’s own Dragon Player open files, they are not affected by this bug. Only VLC is. So…. yeah.
I am curious, though… I know I’m not the only KDE hacker out there who’s using a MacBook or MBP, and who *gasp* also has OS X and Linux sharing the hard drive. What do you guys use for a shared partition between Linux and OS X?
I recently blogged about Desktop Linux possibly having some core/fundamental problems that might be keeping it from enjoying mainstream adoption and 3rd party developer attention as compared to, say, OS X. To my immediate defense, I’ll say that it was actually more of a brain dump and rant (True Story!) than a well-thought-out dissertation on all of the issues at hand. The impetus in this case was:
Now, having spent a week with my MacBook Pro in both Linux and OS X, I have a few more thoughts to add to the fire. Some of these have been results of discussions had as a result from my earlier post on this subject and others are more related to time spent with said shiny new laptop. But I think these are more constructive and less inflammatory. =:)
Anyway, life is good, and I have a new puzzle to figure out (this MacBook Pro). =:)
It’s a shame that my first blog post in months is something so antithetical to my normal posts as this, but 1) I haven’t blogged in forever (darned Twitter/Identi.ca/Facebook!!!) and 2) I just bought a MacBook Pro and am really happy with it thus far. So bear with me. Or don’t. I don’t care. If you’re in the mood for a good rant or are bored beyond belief or want to hear about how to get Ubuntu Karmic installed on a MacBook Pro (system 5,5), stick around. Otherwise, I’ll understand.
So, I’ve realized that I need to buy a personal laptop for a while now but have been putting it off because it’s expensive and a big ordeal. I don’t do anything that involves money quickly or lightly, so kicking down a big wad o’ cash for a laptop is not something that I can just do whenever I feel like it. For the last few months, I’ve been agonizing over what I should get and researching and pricing and comparing. I knew that I wanted something that stood out and looked good and felt good and was well-built. I’ve been using ThinkPads as my main laptop for the last decade or so, since it’s what my employers have provided me, and while they’re sturdy as heck and are well built and last forever, they’re not really all that sexy. I wanted sexy.
I also knew that I wanted some nice features that Apple provides stock that most of the other guys do not. Such as a backlit laptop keyboard. I was playing around with the idea of getting a Dell E6500, but 1) not horribly sexy and 2) that requires me to get a 15″ screen. Which is another thing I wanted… to not feel like I’m lugging around an Encyclopedia every time I take my laptop with me somewhere. For the last couple of months, I’ve been using an Asus Eee PC 1005HA netbook for this reason and while I absolutely loved the battery life on the little guy and the portability, the absolutely diminutive screen size is what finally did me in. Well, that and the horribly slow CPU. And the horribly slow GPU. And the really small keyboard size. And the fact that it doesn’t have an optical drive. And the crappy ath9k wifi drivers that keep disconnecting.
So I bought a Mac. Spent a bunch of time before then reading up on whether the MacBook Pros can play nicely with Linux (model 5,5 is what I ended up getting), and felt pretty comfortable that a MBP could be a really nice Linux machine. After waffling and being generally unsure of which one I wanted to get, I finally decided on a 13″ 2.26 Ghz MBP. I knew I wanted a smaller screen size than my previous PowerBook of 15″ and my current work laptop which also has a 15″ screen. So 13″ fits the bill nicely. I was really unsure about the CPU and was really hesitant to get a 2.26 Ghz CPU in the MBP, thinking that it’d be not all that much faster than the T7500 @ 2.20GHz Core 2 Duo I have in my work Thinkpad, but as it turns out, the 2.26 Ghz CPU in the MBP is really nice and fast–feels faster than the Thinkpad. Also, upgraded the RAM from 2 GB to 4 GB and I left the 160 GB drive in, planning on replacing it with a 250 GB 7200 HDD that I already have or maybe even a SSD if they ever get cheap enough.
I spent probably 6 hours or so on Sunday night getting Linux installed onto my shiny new MBP. Installing Linux was the easy part. Getting rEFIT to recognize it and boot into it was something completely else. Turns out that rEFIT does not play nicely at ALL with Grub2 (which is what Ubuntu Karmic comes with), so one of the things I did at the end that got it to work nicely was to boot off the live CD, install Karmic, chroot into my newly installed Karmic partition, uninstall Grub2, install Grub 0.97, and that seemed to do the trick nicely. The other hiccups I had were around getting the MBP’s drive partitioned in a way that OS X and rEFIT could deal with. I ended up resizing the main OS X partition and creating MS-DOS partitions from inside OS X’s disk utility and then just formatted them from the Ubuntu Karmic install process. But now I have a really nicely working OS X and Ubuntu Karmic dual-boot MacBook Pro. I realize my details are pretty sketchy here, so if you’re interested in more details, let me know and I’ll provide more info.
Since my day job allows me to write code for Linux (and don’t get me wrong, this is the best job I have EVER had and have never been happier), I occasionally need to use Skype to teleconference into meetings. And at least five times over the last 2 days, right in the middle of a Skype meeting from my Ubuntu Jaunty Linux laptop, things totally stop working. Sometimes the audio stops working entirely and I can’t hear the people on the other end anymore. Sometimes the video freezes. Sometimes Skype totally locks up the USB webcam and I have to kill -9 it and unplug/replug the webcam. Sometimes I can’t even see video on it at all and all I can see is a black box. Sometimes, it even works as it should and I don’t have problems (but those times are rather few and far between).
So, here’s my rant. I’m sick and tired of this crap in Linux. I have been a VERY vocal proponent of Linux everywhere for more than a decade. I’ve pushed it in every company I’ve worked for. I’ve insisted on using it everywhere personally. I have been searching for a job that would let me actually program on and for Linux for a long time and I now have one (YAY!). But I am absolutely exhausted of things that work on other platforms being unreliable, crappy, non-performant, crash-prone, and in general totally second rate or worse in Linux. In this particular instance, I unplugged my USB webcam from my Linux Thinkpad, plugged it into my new MacBook Pro, installed Skype and was up and running in no time. Skype did not crash, hang, hiccup, freeze, mutilate, spindle, or in any other way be anything other than an awesome application in OS X. And, as an aside, just looking through the preferences section for Skype showed that it was obviously given more love and care than the Linux version. And ya know what? I’m tired of it. I’m tired of even having to think about it. I’m tired of having to apologize for stupid stuff like this, get to a shell and killall -9 it. Or try to figure out what stupidity is causing it to happen. Or try to find workarounds so that PulseAudio can not screw things up for me. Or have to check my xorg.conf to see if I might have enabled something that is causing the bizarre Xv errors Skype spews every once in a while. I’m just tired of it.
Now, the focus of my frustration in this case is Skype. And I know that without even a moment’s hesitation, 90% of you are going to say “oh well, see, that’s what you get when you used a closed-source application! just use Open Source and everything will be better!” And to that I say: bollocks. You’d be hard-pressed to find a bigger Open Source advocate than me. But that’s not the point here. And that’s not the true issue at hand here. Open Source is great. Open Source is cool. Open Source is a whole heck of a lot of fun. Open Source is the answer to a whole lot of problems! But of this I am absolutely certain: it is not the answer to this problem. In this particular instance, and in millions more like it, all across the world, every day, people are going to need to run software that IS NOT OPEN SOURCE. You can try all you want to create the best, most awesome Open Source project to meet a given need, but you will never 100% fill every closed-source software solution need. You might get close. You might even have something that is “good enough”. But the bottom line is that there’s always going to be some piece of software that you have to run that you don’t have the source for. At least, this is true in the world that I’ve lived in for the last decade+.
Now, I am very aware that the Linux Desktop is SO much better than it was even 5 years ago. We have eye candy up the wahzoo. We even have some better applications from commercial companies. Heck, we even had the awesome World of Goo game (which I actually paid money for and LOVE)! We have much more feature-rich FOSS applications and desktop environments than we’ve ever had before. But what we don’t have is a stable platform that companies can count on being able to invest into and reap monetary rewards from. Yeah, like it or not, this is the real world and companies have to make money to stay in business.
We are a bunch of hackers. We love to tinker, to fiddle, to break compatibility in a heartbeat just for the outside chance that it might be better, to change quickly, and to do whatever we feel like. And that’s all fantastic stuff. But at the end of the day, we’re our own worst enemies. What makes Desktop Linux so awesome and fun and cool and quickly evolving is the same thing that keeps companies from investing in us–and even when they do, we end up breaking their stuff and causing Linux Desktop users grief. And we show absolutely zero possibility that this is going to improve any time soon. PulseAudio? Really? I’m so glad it’s the new hotness and is technically awesome. Your new hotness just broke an app I absolutely have to rely on. Guess how much I give a crap about your new hotness now, hm?
Anyway, I don’t have a solution to this. All I know is that I’m really liking my MacBook Pro, and I’m really liking OS X. Is it free? No. Is it Open Source? No. But does it just stinking work? Yeah, it really does. And it is such a drastic and refreshing change from the world of Desktop Linux that I am seriously wondering if I’m going to ever end up using that Ubuntu Karmic install I just slapped on the other partitions of this drive. I don’t think I’m yet ready to send out a jwz-like dissertation and farewell address, but I totally get it now. OS X is beautiful, and it just works. And I don’t think I’ll ridicule anyone for getting an Apple computer and actually using OS X on it ever again. Windows is still another story, but even there I can see what the allure is. You know… you get a computer to do stuff, and you want it to work. You don’t care what it has to do so that it works. You just want it to stinking work. Wouldn’t it be nice if Desktop Linux was like that?
[ UPDATE - 2009-11-20 ] – I’ve received a lot of really great comments on this post, but my initial intent at 1) venting/ranting, 2) comparing Desktop Linux to OS X, and 3) raising issues that I think we need to take a hard look at as a worldwide community were taken in a very different slant than I intended. FWIW, after having spent a week with my shiny little MacBook Pro, I am happily running Ubuntu Karmic 9.10 on it and have blogged again in an attempt to clear up some of the muddiness around this first post. To this end, I’m going to change the title from “I think I’m tired of Desktop Linux” to something less vitriolic for future viewers. And hopefully this won’t cause aggregators/planets to re-publish this. =:/
Woot, I got one! I’ll post again once I get the pictures off of the camera, but I got to the local Sprint store at 7:00 (AM!!!!) this last Saturday, waited for an hour, and managed to snarf up 2 Palm Pres– one each for my beautiful bride and I.
I realize I need to put up something more deep than “WOW! AWESOME! OUTSTANDING! I LOVE IT!”, but honestly, that’s about all I can muster right now. This is definitely the device I’ve been waiting for the last 10 years. Amazing interface. Excellent graphics. Beautiful applications. Perfect synchronization with my Google information (it does desktop syncing too, iirc, but that’s so early 90’s!). REALLY fast USB data transfer (like, I’ve never seen anything this fast before). The Touchstone charging thingey is mind-blowingly cool and simple and elegant (induction charging == no wires for charging!). Music and Video playing is dead simple and being able to transfer my music/videos from Linux is a must-have (sorry, Apple, you intentionally suck at this, so go away). In a word: perfect. Seriously.
The apps I’ve been using thus far are Pandora, Accu-Weather, Tweed, YouTube, and of course all the built-in goodness (calendar, contacts, mail, clock, calculator, google maps, GPS navigation, etc.), and I am 100% impressed and satisfied. The WebKit-based Pre browser does an extremely nice job, and the multi-touch zooming, auto-screen rotation, and scrolling is beautiful. Though Adobe hasn’t seen fit to provide their proprietary Flash browser plugin for the Pre yet, the Palm guys have done a really nice job at hiding that fact, from what I’ve seen so far (open the browser and go to youtube.com, for instance, and click on a video and it launches the video in a separate application). I believe I’ve heard that Adobe/Palm have said that Flash will be available for the Pre before the year’s end, so it may be a non-issue soon enough.
One final thought I had while playing with the Pre for the last couple of days…. As I mentioned previously, I’m a gadget geek, and have been using Palm devices for longer than I’d care to remember. People have made a big deal about Palm’s demise and how bad they have been doing and how it seems like they’ve been intentionally trying to drive people away from them and make themselves go out of business. And all of that seems true, especially having been one of the few, ashamed, die-hard Palm geeks myself. And while the Palm 5 OS seems gosh-darned ancient and ugly and ridiculous, especially compared to the sexiness of the iPhone, Android, and now especially their new WebOS, I think it’s important to remember the fact that for a LONG while, Palm was truly the innovator of the handheld/PDA world. Unfortunately, Palm has had a rough ride in recent years and hasn’t been able to kill off the old Palm OS (and don’t think they haven’t tried!) with anything revolutionary… until now.
As I was playing with my new Palm Pre, it struck me that a lot of the innovations that you see on it and similar devices these days were first done by Palm. Flip the screen sideways and go from portrait to landscape? Palm did that YEARS ago. Of course, the accelerometer wasn’t around then to make it automatic, and PDA hardware couldn’t do the fancy and smooth transition animations, but still, Palm had that idea a while ago and implemented it nicely. Multi-layer launchers? Yep, Palm did that a long time ago. Web browser on your PDA? Yep, Palm did that too.
My point is this: it seems that people are hesitant to think that Palm could actually be breathing new life again… that they’re tired of waiting for Palm to get their act together and do something meaningful… that they’re just copying the iPhone and the Android. Well, as one who was thinking exactly these things before I got my hands on the Palm Pre a couple of days ago, I can tell you that Palm is breathing new life again, that they have finally been able to rise above the old Palm 5 OS, that they have definitely gotten their act together, and most importantly, they have done something extremely meaningful with the Palm Pre. And in retrospect, I don’t think we should be surprised at this. Palm has been innovating handlheld computing for longer than anyone else, and with the Palm Pre, I think they have shown that they are still REALLY good at it.
I have been waiting for a long time for “the one device to rule them all”–for one device that intentionally plays nicely with whatever operating system I want to use, that handles synchronization with my calendar, contacts, and email flawlessly, that has a built-in GPS, that has a good built-in music player, a good built-in movie player, has built-in internet access, a good web browser, is extensible via apps, and has a good screen. I am really excited with the Palm Pre because it is finally “the one device to rule them all,” and it does it REALLY well. The GPS is awesome (better than that on the Nokia N810), by the way, and the music and movie players are gorgeous. And everything you’ve heard about the responsiveness, multi-tasking, beautiful screen, and nice little details are true. =:)
Anyway, that’s about all the words I can muster. I’m very happy with the Palm Pre, and feel like even though I “missed out” of being a gadget geek for the last couple of years with the iPhone, the wait has been worth it. =:) I really think Palm has done something special here with the Pre, and I wish them the best of luck. Being that every store in the state of Massachusetts was completely sold out of Palm Pre’s and their new Touchstone chargers within 4 hours of opening, I have a hunch that they’ve knocked this one out of the park. Well done, Palm!
I believe I am one of the last few die-hard nutjobs on the face of this earth who still use (and “use” here is a highly subjective word meaning that I have a bunch of Palm devices lying around, am currently the only semi-active (and “semi-active” means that I get probably a good 2 hours of KPilot hacking in per year =:( ) KPilot developer, and occasionally even turn some of them on) Palm PDA devices. I have successfully resisted the siren call of the iPhone for the last 2+(?) years–partly because there is no functional synchronization solution between my Linux desktop and it, partly because it’s pretty bloody expensive, partly because Cingular has atrociously high data plans compared to Sprint, partly because I’ve endured the lunacy of FLOSS developers trying to keep re-figuring out Apple’s iPod/iTouch/iPhone database structures that would otherwise allow me to synchronize my music and movies with said Apple devices and have an extremely bad taste in my mouth from said frustrations, and partly because I’m one of the cheapest geeks you’ll ever meet (also, being the sole income-provider for a family of 5 only solidifies my inborn cheap nature). All that being said, however, I hereby declare the good old Palm OS officially dead and uninteresting to me anymore. Okay, truth be told, that was an obvious statement to make 2 years ago, but I’ve been in denial since then and am only now trying to face reality and get help. =;P
I am a gadget geek–I always have been–and I have wasted more money on Palm gadgets than I care to remember. I clearly remember agonizing over spending $400 or so for the Palm IIIc when it came out (but OOH, it had a nice color screen!). And the $400 or so I spent on the Clie NX70v was a week-long ordeal that involved me hemming and hawing and spending many an angst-filled evening at the local Circuit City. And the $400 or so I spent on my Treo 650 (which magically turned into a Treo 700p in a couple of years after the 650 became deathly ill) was also quite the emotional ordeal. And yes, I realize that these series of purchases contradict my statement that I’m a cheap geek, so I’ll defend my previous statement by saying that I’m apparently a selectively cheap geek.
Palm was a GREAT gadget and a good OS that allowed me to sync my data with my Linux desktop and enjoy being cool and geeky. In fact, it was (and still is) the only PDA solution that I have found that synchronizes (for the most part) very smoothly with my Linux desktop. It was never as flashy as the Windows-based devices, but it sure was more stable. And there were a huge number of applications for the Palm OS. But seeing the spartan Palm OS 5 interface nowadays, especially when compared with the iPhone bling, or even the Maemo interface… it’s like looking at the old OLWM Window Manager compared with the current KDE4 sexiness. There’s just no comparison. Unless you’ve been living under a rock for the last 2 years (or have been cheap and/or in denial like me and/or just so in love with the old Palm OS), it’s painfully obvious that very few care about the old Palm OS anymore. Everybody and their pet turtle has an iPhone now (or so it surely seems). And being a FLOSS advocate/hacker/supporter/proponent/religious nutjob, that concerns me and I’d like to again put my money where my mouth and soapbox are.
So what’s my point with all of this? Well, it’s time for me to get a new phone/geek toy, I think. I want to be as FLOSS-supportive and interopable as possible, and I’m really curious what other people who are FLOSS-conscious are thinking about this and have done about it. While none of the options that I see are 100% FLOSS-perfect (being that we’re still dealing with proprietary bits/pieces/networks/hardware with cell phone companies), Android seems the closest, while the Palm Pre (assuming it runs on Linux and allows itself to be open enough to be hackable/customizable/extensible) seems a strong second, whilst the “what do you mean you don’t have an iPhone yet” seems a distant third, being that you’re totally under Apple’s friendly-dictatorship-and-heavily-taxed thumb.
Here’s my short list so far, with my take on positives/negatives. I’m very curious to see what people (especially Planet KDE people who are actively working on providing/improving/supporting FLOSS) have done and are thinking with regards to their cell phones.
So I’d love to get comment feedback from folks about this. What are you currently using if you’re using one of these solutions? What are you planning on doing going forward?
Dear Lazyweb,
I need to buy a laptop for personal use. I’ve been using Thinkpads as work laptops for so long that I think I’d like to try something else out for a change. It needs to be Dual Core/Core 2 Duo/whatever. Would be nice if it had a fast 200+GB drive in it. And it absolutely MUST have a fast, awesome graphics card in it that has zero problems with compositing, Linux, KDE4, suspend/resume, or anything else. Having dealt with nVidia cards for quite a while now, I’m guessing this means that the new laptop shouldn’t have an nVidia graphics card in it. I am so tired of the constant problems I have with KDE4 and the nVidia Quadro NVS 140M I have on my work Thinkpad T61–can’t use compositing for more than a day before the system becomes totally unstable and invariably X crashes, etc. =:( Maybe an Intel or ATI card? Also, it would be really groovy if the battery lasted longer than 3 hours, consistently.
Anyone have any suggestions? What have people had good success with in a laptop, been able to do compositing and full desktop effects in KDE4 without having any problems or system instability, etc., etc.? I was thinking of maybe trying a new MacBook, but having tried that before and absolutely hated the keyboard (wth, Steve, no home/end/page-up/page-down keys???), I’m not sure how long I’d last on it before pounding my forehead into it. And that’s about where my list of ideas ends. Any suggestions would be most appreciated.
I pray a lot for my kids. I always have. I ask God to protect them, shield them, guide them, and watch over them when I cannot. Watching your oldest child reach 18 years of age, start college, start driving, and be out of your line of sight and protection for large parts of the day make you pray even more. And so it is that I missed God’s blessing entirely and went straight to angry, pissed off, frustrated, groaning, belly-aching, and in general no fun to be around this morning when my darling bride and I drove both cars down the driveway to get the annual vehicle inspections done.
Thankfully, I noticed the flat tire about 30 yards down the road from our driveway, so I pulled over, checked it, (went straight into pissed-off-mode), and turned around and went back home. It’s snowy, slushy, icey, and cold right now in Douglas, MA, so it was all that I could do to barely get the car into the bottom of the driveway. I’ve never had to drive on a flat tire before, but this time I had no choice. I’ve heard all kinds of bad things can happen as a result, and I was most worried about ruining the wheel or axle or something. So I pull into the driveway, open the trunk, and discover that the trunk has been leaking water again (or allowing it in through the bottom… I don’t know which), and now that it’s winter in MA, it has frozen solid inside the trunk. The trunk wheel well was about half full of frozen water, surrounding, enclosing, and including the spare tire. An hour and a half later, after failed attempts with a heat gun and a steam cleaner, I used a 20-pound steel pry bar to pry the spare tire loose from the trunk. I now have a Flinstone-car-looking ice block that looks like a tire. Another 15 minutes with the steam cleaner to get spare tire free of the ice, and I put the spare on and inflated it.
Now we’re on our way to the inspection station. Turns out that (I think) the reason the tire was flat is because it was so under-inflated that the bead seal just failed and all the air leaked out. However, being that I drove on it for a couple of minutes while it was flat, the tire is now unusable (steel belts destroyed and air bubbles are now in the sidewall). $70 later for a replacement tire, and a Russian immigrant mechanic to tell me “your tire no good”, and we’re on our way again.
And then it hit me. This was what I asked God for. This is what I’ve been praying for. Not necessarily to have a flat tire, ruin an whole day of work, not be able to get the spare tire out because the entire trunk is a big ice cube, and to waste $70 on a replacement tire. No, I distinctly do not remember asking God for that. But I’ve been praying for my kids’ safety for their whole lives, and that is exactly what God did for me. If this would not have happened to me today, it would have happened to my eldest daughter tomorrow, who likely would not have known to check the tire because it felt smushy, and who very well may have gotten into a really bad car accident, or been stranded, or worse, as a result. Thank God that this happened to me today instead of her, tomorrow. And as I was moaning, griping, cursing under my breath, freezing, frustrated, and angry, it occurred to me that God was being extremely gracious to me and my family once again. Who am I to question how God answers my prayers and keeps my family safe?
Thank you, God. And I’m sorry for going straight to anger, frustration, and pissiness and missing your blessings.
Oh, and you cannot tell me that God does not have a sense of humor, after a day like this. =:P
[Update] Wow, people can be incredibly rude, insensitive, and insulting. I’ve deleted the idiotic vitriole that found its way to this posts’s comments, and have turned further comments off. Thanks, idiots!
[Update2] I’ve decided to turn comments back on here. Unfortunately, I deleted the previous hateful, rude, insensitive, insulting comments instead of moderating them, so I am unable to bring them back for your enjoyment.
<kergoth> anyone messed with protobuf?
<vanRijn> kergoth: i once had a hamster i named protobuf, does that help?
<kergoth> fraid not
<vanRijn> actually, it was a guinea pig
<vanRijn> and it was named Squeaker
<vanRijn> but still
<darth_mall> vanRijn: that’s practically the same thing!
<kergoth> hehe
<vanRijn> darth_mall: I KNOW RIGHT!
I think I’m getting too in touch with my emotions as of late. I actually got a little teared up, thinking about my cute little childhood Guinea Pig named Squeaker and his untimely demise.
*sniffle*
I’m excited. I love learning stuff, I really do. I just did a 12-minute screencast for work, and I think I’ve finally figured out how to get everything to fit together nicely. I’d never done a screencast before–not on any platform–but being that I needed to showcase some development work that I’ve done for the next release of VMware Workstation/Player, and being that I’m working from home for the time being, I needed to get this all working in Linux, and as I said, I think I’ve finally figured it out, woot!
For starters, I used qt-recordMyDesktop to capture the full-screen (1600×1200 resolution) video. I wanted to use it to also capture the audio portion of the screencast at the same time, but when I tried doing so, the audio was really choppy and out of sync. I mostly blame pulseaudio, but also the fact that I did this all on my puny little laptop, and I think that the system just wasn’t able to keep up with me, recording a nested Xephyr session with 4 fake Xinerama monitors (thanks again for that beauty, Lubos!), at 1600×1200 resolution. So I told qt-RecordMyDesktop to not capture audio and what I ended up with was a beautiful 1600×1200 Ogg/Theora .ogv file. We’ll call it demo-video.ogv.
Next, I recorded my voice, doing a monologue of what was happening in the screencast, using my laptop’s internal mic (not the greatest quality, but I don’t have a real microphone, *sigh*), and audacity (oh, and this is nice… audacity doesn’t work with pulseaudio whatsoever). This I saved in mp3 format. We’ll call it demo-audio.mp3.
The next magical trick, obviously, would be to combine the audio and video files into a single movie file, right? Well, all of the questions/answers that Google found me (even though I searched for “mencoder combine audio video”) were examples using ffmpeg. So I gave it a shot. And I’m sure there must be a way to do it, but for the life of me, I couldn’t get ffmpeg to combine my 80-meg demo-video.ogv file and my 10-meg demo-audio.mp3 file in a high quality and problem-free output file. The closest I think I got was this: “ffmpeg -sameq -i demo-video.ogv -i demo-audio.mp3 demo_full.mp4″, but that combined my 80-meg video and 10-meg audio file into a 350-meg mp4 file. Zoinks, Shaggie!! That’ll never do!
I finally stumbled upon the “-audiofile” parameter to mencoder and there was much rejoicing in Agrabah (not to mention Massachusetts). What I ended up with is this little mencoder incantation that seems to work beautifully. And, the resultant file is only 62 megs (80m + 10m == 62m !?!), so I’m sure there’s some loss of quality in there somewhere, but for the life of me, I can’t see it. Here’s what I used:
mencoder -sws 9 -vf pullup,softskip,scale=1600:1200,harddup,unsharp=l3×3:0.7 -oac faac -faacopts br=128:mpeg=4:object=2:raw -channels 2 -srate 48000 -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=libfaac:abitrate=128:vbitrate=1000 -of lavf demo-video.ogv -audiofile demo-audio.mp3 -o demo_full.mp4
So, there you have it. Screencasting, done 100% in Linux. I wish I could show you the results, because I’m pretty darned please with them, but sadly, I cannot (nor do I have a spot to stick 62 megs of mp4 =;P).
I hope this helps some other poor soul, ’cause I couldn’t find much in the way of tutorials for doing this. I’d be very interested to hear what others think of this, as well as any other suggestions for doing screencasting in Linux. I know Aaron’s been doing something along these lines, and I’d be curious to see how this compares to his method. Also, any improvements to my mencoder line (yeah, I’m sure some stuff in there might be redundant or weird), or finding out what the ffmpeg equivalent of my mencoder line is would be greatly appreciated.
Woohoo! KDE 4.2 is released!! I only wish the last few KPilot bug fixes would have made it into the 4.2.0 release, but we were too late. Still, if you think you knew what KDE4 was all about, think again. Check out KDE 4.2.0. =:)
Recent Comments