Mar 142012

Before I got rid of it, I used my Roku Netflix Player to playback recorded tv from MythTV. Here’s the app and a couple videos showing how it looked.

Here’s a link to Roku’s Developer site

Here’s a link to the zip containing the demo video player. I’ve made a few modifications so it loads a demo video from this site.

To use it, modify conn.UrlPrefix in categoryFeed.brs in the source folder and rezip and upload to the roku device.

Mar 142012

This is just a quick and dirty script to delete MythTV recordings that had been previously transcoded and moved to the stream directory, but have since been autoexpired out of MythTV. This is an issue because trying to pull data outta the MythTV recording database about a recording that has been deleted causes an error because the entry isn’t there anymore. All it does is loop through each file in the stream directory and if it doesn’t exist in /var/lib/mythtv/recordings/ it gets deleted.

Contents of:
/usr/local/bin/ Continue reading »

Mar 142012

Since I’m already transcoding the recordings to h.264, might as well make them easily accessible to my iPhone or Boxee Box or Miro. Since the filenames are more likely to be seen, might as well make them more human readable. The biggest advantage to this renaming a season of a recorded show for archiving using filebot. If you want to get fancy, could use tversity to stream the rss feed to a playstation 3 or an xbox 360, but I still think the Roku is the easiest frontend for previously transcoded material.

Disclaimer: I’ve removed a few things specific to my oddball setup so I can’t guarantee I didn’t break anything.

Contents of:
/usr/local/bin/ Continue reading »

Mar 142012

Before I forget, here’s my MythTV UserJob1:
/usr/local/bin/ %DIR% %FILE%

This script runs on a MythTV recording to remove commercials and transcode to h.264 video that I’ve tested and will play on Android (Motorola Droid), iPhone (iPhone 4), Roku DVP (Original Roku Netflix Player), Boxee Box, and in Miro on Windows.

The contents of
/usr/local/bin/ Continue reading »

Mar 142012

Once the files have been created, will need to create an XML file the brightscript program on the Roku DVP can parse to display show data. This bit of perl reads the stream directory, sorts by file creation date, picks out the .mp4 files, uses the MythTV bindings to pull out show data, smashes it into some XML and writes it to a file.

Contents of:
/usr/local/bin/ Continue reading »

Mar 142012

This is a lot of the rest of the important configuration changes. I’ve added the bandwidth module (more info available in my previous post: Apache 2 bandwidth control) and enabled port 8080 as well since Cox Communications blocks traffic on 80 and 443. Continue reading »

Jul 262011

Pogoplug Multimedia Sharing Device (POGO-E02)

Vantec NexStar 3 NST-360SU-BK 3.5-Inch SATA to USB 2.0 and eSATA External Hard Drive Enclosure (Onyx Black)

I already had one of these and I’m not currently using it for anything important

Western Digital 1 TB Caviar Green SATA II 64 MB Cache Bulk/OEM Desktop Hard Drive WD10EARS

This is mostly keeping notes of why I think I have a chance of pulling this off.

I can throw a more useful linux on it (POGO-E02 and POGO-E02G)

SickBeard and SABnzbd seem to run if there’s some swap space

I’m assuming if I can sort out IOWAIT, it’ll run reasonably well, keeping in mind that it’s an inexpensive plug computer

Mar 232010

I used to encode to mpeg4, which worked pretty well, but quality wasn’t the greatest. The files weren’t exactly tiny either.

/usr/bin/nice -n 19 ffmpeg -i "${directory}/${file}.tmp" -acodec libfaac -ab ${abitrate} -ac 2 -s ${width}x${height} -vcodec mpeg4 -b ${vbitrate} -flags +aic+mv4 -trellis 1 -mbd 2 -cmp 2 -subcmp 2 -g 250 -maxrate 512k -bufsize 2M -metadata title="${file}" "${directory}/${file}.mp4" >> "/tmp/${file}.log" 2>&1

Using libx264 seems to be an improvement. It works pretty well. It plays on my Roku digital video player, my Sandisk Sansa View, my Motorola Droid, JWPlayer, and Miro. I still need to test the xbox running xbmc, xbox 360, and ipod touch. Video files are pretty small.

/usr/bin/nice -n 19 ffmpeg -i "${directory}/${file}.tmp" -s 320x240 -vcodec libx264 -crf 26 -coder 0 -bf 0 -refs 1 -flags2 -wpred-dct8x8 -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method umh -subq 8 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 2 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 3 -trellis 1 -level 13 -maxrate 768000 -bufsize 3000000 -acodec libfaac -ac 2 -ar 48000 -ab 96k -metadata title="${file}" "${directory}/${file}.mp4" >> "/tmp/${file}.log" 2>&1

/usr/bin/MP4Box -tmp "${directory}" -inter 500 "${directory}/${file}.mp4"

I make no guarantees, but for me, it seems to work. An hour of video without commercials removed was around 205M, now it’s around 140M. The resolution is a bit smaller but the files aren’t as blocky and scale up fairly well.

Mar 152010

So, quite a bit has happened, inspired by mythtv podcast post.

Video podcast client Miro works really well

TVersity is a upnp media server that will pull in content from an RSS feed, such as the one on my MythTV box… This enables playback on the Xbox 360

Of course, this is the reason for the Apache2 bandwidth control post, since I am not very happy with the bandwidth shaping options in pfsense

I suspect a firewall upgrade is in order… My friend just raves about Untangle, and for good reason. The latest version now includes captive portal, and I will not have a network without multiple separated interfaces… Perhaps soon.