Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

miyagawa (1653)

  (email not shown publicly)
AOL IM: bulknews (Add Buddy, Send Message)

Journal of miyagawa (1653)

Wednesday October 03, 2007
04:52 PM

How (ala Plagger dev community) is awesome

[ #34603 ]

On this monday (in Japan time) we had Tech Talks #8 and we live-streamed and recorded most talks on under tag. This listing works great but we want to make the Flash video files available for download, possibly as a videocast (RSS 2.0) feed so you can subscribe to using offline video player like Miro or iTunes.

So we were chatting on #plagger-ja IRC channel and talked how to download .flv files given the URL for the recorded video.

First we already knew how to locate the FLV file URL manually using Firebug. typester (Daisuke Murase) pointed out the flash is accessing's secret RPC 'gateway.php' on their server. So he cracked it down using his custom flash ActionScript, then ported the code into Perl script using AMF::Perl module.

Simultaneously Yappo (Kazuhiro Osawa) tried to integrate the FLV URL locator as a Plagger plugin. Fortunately we already built the pluggable mechanism to do that: Filter::FindEnclosures. So he wrote just 40+ lines of ustream extension for the FindEnclosures plugin.

Also at the same time I was working on how to generate a videocast feed from tag search because it doesn't provide an RSS feed by default. It was way easy using XPath link extractor. The result is availabe as ustream8.xml videocast feed.

All of these were done in less than 45 minutes on IRC. We still had a problem with the actual FLV format because it uses Adobe's proprietary audio codec and doen't play on any of VLC/QuickTime/Perian players. While I was sleeping they found that it could be converted using nelly2pcm program and then ffmpeg. I guess someone would write another Plagger plugin that automatically transcodes ustream FLV into some more generic format like x264.

How amazing!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.