Anatiferous blog | Move every zig.

Meta-Site

Welcome to Anatiferous: Using barnacles to make geese since 1689!

Howdy! This is my (William Reading's) webpage. At the moment, I only have this blog script and my gallery up, but I hope to get more stuff on this page at some point, or so I thought when I created this site years ago. Updates and shiny new copy to eventually go here. If you'd like to contact me to point out that I've done something to break XHTML/CSS standards or heaven forbid--look at my Vita--drop me a line at my e-mail address bill +spam @ [ELEPHANT] aggienerds.org. Simply remove "+spam", the spaces and the pachyderm along with its brackets and that address will reach me. I'm also available on Jabber/GChat/AIM/MSN with the same address above.

5/24/2010

Tethering on BASE in Belgium

Filed under: — bill @ 12:31 pm

So when I got to Belgium and signed up with BASE for internet, I was happy to see that it was fairly easy to get working on my iPhone. However, I was saddened to see that I couldn’t get any of the pre-existing .mobileconfig profiles working for tethering, especially considering that I didn’t want to have to take out my SIM card every time I wanted to get online and that my hotel charges an arm and a leg for data. After reading Bart Jansen’s Mobistar iPhone Tethering article, I changed a few values in his file and now I have BASE Tethering .mobileconfig. A few caveats: I don’t actually know what the type-mask values do, but they’re apparently related to MMS and tethering. Second caveat is that I didn’t bother to experiment with changing the UUIDs in the file, since I don’t know if they refer to what the payload is supposed to do or uniquely identify the file. This means that if you have Bart’s .mobileconfig installed, bad things may happen.

2/5/2010

Get an AIM Pro Account

Filed under: — bill @ 1:02 pm

AIM Pro lets you get user@domain.com AIM addresses. Since I hate installing the webex client just to register one, the link is here: AIM Pro get screenname

1/31/2010

Growl GNTP Plugin for Windows Media Player

Filed under: — bill @ 2:27 am

I’ve put together a little plugin for Growl GNTP for Windows Media Player. The installer is here: http://aitne.com/downloads/WMP-GNTP-Installer-1.0.3.msi.

To set it up, simply download the .msi and run it. If you’re on a particularly old version of windows, you might need to install the Windows Installer redistributable.

If you’ve tried some of the older builds, you might notice that this build correctly installs on Windows XP, eliminates the double notification when you first start playback, and also adds an icon. Features that are planned include the ability to notify remotely, preferences to configure the plugin from within windows media player, and the display of album art in the notification.

1/19/2010

Getting IOS ezvpn to work with TAMU VPN

Filed under: — bill @ 12:46 am

I decided that it would be nice if my local network was automagically VPN’d to campus, so I worked out a configuration for the TAMU VPN server using IOS ezvpn (This is on a Cisco 1721 with hardware acceleration module, which has the ADSL WIC). The relevant bits looks something like this on my router:

crypto ipsec client ezvpn tamuvpn
connect auto
group tamu key tamuvpn
local-address BVI1
mode client
peer 165.91.140.250
virtual-interface 1
username your_netid password your_netid_password
xauth userid mode local
!
interface Virtual-Template1 type tunnel
no ip address
ip virtual-reassembly
!
interface BVI1
–snip–
crypto ipsec client ezvpn tamuvpn
!
interface FastEthernet0
–snip–
crypto ipsec client ezvpn tamuvpn inside

For the paranoid, the tunnel may be configured to only come up when you type in your username and password and save nothing. BVI1 is the bridge interface corresponding with the DSL WIC. If you’re doing this purely with ethernet, substitute BVI1 for your nat outside or the like, e.g. FastEthernet1.

10/13/2009

Playing Video on the XBox 360 Over the Network

Filed under: — bill @ 4:38 am

In my last post, I talked about how I’d converted an AppleTV into a Linux server. Once I packed up the server with media, the next thing that I wanted to do was deliver it to the living room via my XBox 360. There’s a few problems with getting this to work:

  • The XBox 360 only recognizes shares as a Windows Media Center Extender, from the Zune software and via UPnP Shares
  • The XBox 360 is picky about the codecs that it plays in what container: December 2007 Video Playback FAQ
  • Getting my share exposed via UPnP is straightforward enough, I can use UShare to share it out. Astute readers will observe that while UShare supports both UPnP and DLNA, we only need UPnP for use with the XBox, so we eliminate a lot of the headache of compiling it under Debian by supplying “–disable-dlna” as an argument to the configuration script. Also of note, “libupnp3-dev” is used in Lenny to satisfy the libixml requirement, as unintuitive as that may seem. As an aside, if we use libupnp4-dev, it fails to compile. The remainder of the configuration is left as an exercise to the reader, but “ushare -x” is a reasonable way to get started.

    The second problem involves the codecs supported by the 360. We’d really like to minimize transcoding wherever possible because it is computationally expensive, and typically means a loss of quality. However, we see that only the most common codec pairings are supported by the XBox. For the special cases, we can still play them on the XBox by using ffmpeg to do a stream copy and then transcode the audio.

    The wrinkle to doing that on Debian revolves around codecs. If we’re say, given an h.264 file with an mp3 audio track, we find that we cannot play it because h.264 with mp3 is not a supported configuration. We must pair AAC with h.264, but ffmpeg on Debian doesn’t ship with an AAC codec by default. The solution is to use the Debian Multimedia repositories. Once we’ve installed an ffmpeg from that, it becomes far easier.

    Now we can pull the trick to fix the above file up for playback using AAC:

    ffmpeg -i input-h264-mp3.avi -vcodec copy -acodec libfaac -ab 128kb -f mp4 output-h264-aac.m4v

    Update: I spoke too soon above. AVI and MP4 containers use different conventions for how to store certain things, and simply copying the stream like above seems to work until you play the video. For now, we follow the process (slightly tweaked) described in Using MEncoder to create QuickTime-compatible Files:

    mplayer video.avi -dumpaudio -dumpfile video.mp3
    mplayer video.avi -dumpvideo -dumpfile video.h264
    ffmpeg -i video.mp3 -acodec libfaac -ab 128k video.aac
    mp4creator -create=video.aac video.mp4
    mp4creator -create=video.h264 -rate=29.97 video.mp4
    rm -f video.{mp3,h264,aac}

    In the above example, I use 128kbit audio, but you can adapt it to whatever is suitable based on the input file. Note that I used .m4v in the above example. If you’re using UShare, you’ll find that the mime types defined only consider mp4 to be an audio file. You can change this by patching up mime.c, but I decided that it wasn’t worth the effort to change and test it if I can just use a different extension.

 

Google
 
Web anatifero.us
aggienerds.org

Powered by WordPress