Showing posts with label Fire Comcast TV. Show all posts
Showing posts with label Fire Comcast TV. Show all posts

Saturday, December 8, 2012

Video Capture with sound

I've had some issues capturing video with sound on Ubuntu.  gtk-recordmydesktop got video OK but no sound.  Here is what finally worked for me:
Then you don't need to change anything in gtk-recordmydesktop.
Install alsa-utils if you haven't already: sudo apt-get install alsa-utils
and make sure you really don't have pulseaudio: sudo apt-get purge pulseaudio gstreamer0.10-pulseaudio
As removing pulseaudio doesn't remove the gstreamer pulseaudio. Also make sure that gstreamer-properties is set to autodetect for sound output.
Once you do that, go into alsamixer in terminal: alsamixer
then hit the tab button on your keyboard to move over to capture.
There should be a list of capture devices and a volume control for capture. Put the volume for the capture at a suitable level, then select your capture device by pressing space on the capture device you wish to use. But this is based on my IBM T41. Your computer may be different. Mix is the device that your sound outputs on, so you'll want to capture it.

Tuesday, May 8, 2012

Bike redesign

Given recent events it seems a good time to do a redesign of the bike.

I've used Freecad (unstable but still usable) to redesign the bike this time paying attention to dimensions so that there are fewer surprises during the build.  It looks like this now:


I used the sketcher workbench in Freecad so there are MANY dimensions, angles, etc restricting the design. One measure that's not visible is the fork to rear axle (~900mm).

I also prototyped a seat to check angles.  Here are some photos:


A seat back angle of around 30+ degrees seems comfortable.  I do need to work on the shape a bit as some of the edges dig into my body.  A bit of checking suggest the seat ought to be somewhere between 24cm and 32cm.

I also checked my leg length and found a seat back to pedal max of about 1122mm.





xxx

xxx

Friday, April 6, 2012

WAV to MP3 for Sandisk Clip+

BB was able to listen to the audio CD riped from WAV to MP3 successfully.  However, the process of ripping is a bit involved

  • copy the WAV to disk & rename with author, title, disk, and track
  • convert to MP3 with lame
  • set MP3 tags with easytag
So I've improved the python script to do all these things.  Here's the current version:
# audiobookcopy.py
# copy multiple CDs in an audio book
# cd appears to automount at ls .gvfs/cdda\ mount\ on\ sr0/
#
# Output file name format that should work well with various players
# Author/Title/CD??-Track??
#
# for info on ripping see http://www.chuckegg.com/quickly-convert-audiobook-cds-to-mp3-files-audio-book-mp3/
# for info on easytag see http://easytag.sourceforge.net/EasyTAG_Documentation.html#ch_1_2_4
import sys
import os
import shutil
from subprocess import call
dir = "/home/rbell01824/.gvfs/cdda mount on sr0"
def ensure_dir(f):
    if not os.path.exists(f):
        os.makedirs(f)
def cacd( author, title, fnbase, cd ):
    print "Processing CD ", cd
    files = os.listdir( dir )
    ifn = 1
    for fn in files:
        src = dir+"/"+fn
        dstdir = author+'/'+title
        fn, fx = os.path.splitext( src )
        #print "Source:", src
        #print "Dest Dir:", dstdir
        #print "FN:", fn
        #print "FX:", fx
        if fx == '.wav' or fx == '.mp3':
            # lame -h -b 192 --tt title --ta artist --tl album --tn track --tg genre source destination.mp3
            idtitle = fnbase+'-%02d'%cd+'-%02d'%ifn
            dst = author+'/'+title+'/'+fnbase+'-%02d'%cd+'-%02d.mp3'%ifn
            #print "Dest:", dst
            cmd = 'lame -h -b 192 --tg Audiobook --tt "%s"' % idtitle
            cmd = cmd + ' --ta "%s"' % author
            cmd = cmd + ' --tl "%s"' % title
            cmd = cmd + ' --tn "%d%02d"' % (cd, ifn)
            cmd = cmd + ' "%s" "%s"' % (src, dst)
            print "lame: %s"%cmd
            return_code = call( cmd, shell=True)
        else:
            dst = author+'/'+title+'/'+fnbase+'-%02d'%cd+'-%02d'%ifn+'.%s'%fx
            print "Dest:", dst
            shutil.copy2( src, dst )
        ifn += 1
    return
def abc():
    if (len(sys.argv) < 3 ):
        print "audiobookcopy author title base_file_name start_CD"
        exit(1)
    print sys.argv[1:]
    author = sys.argv[1]
    title = sys.argv[2]
    fnbase = sys.argv[3]
    ensure_dir( author )
    ensure_dir( author+'/'+title )
    cd = int(sys.argv[4])
    print "start with disk "+str(cd)
    while cd <= 200:
        kbi = raw_input( "Mount CD "+str(cd)+" Press enter:\a" )
        cacd( author, title, fnbase, cd )
        cd += 1
if __name__ == '__main__':
    try:
        __file__
    except:
        sys.argv = [sys.argv[0], 3]
    abc()
Along the way I reorganized the directory structure to / but left the individual files as < code>.

I also found a utility app with a GUI interface, Audio CD Extractor.  It doesn't do as nice a job of naming but otherwise seems OK.

Tuesday, April 3, 2012

Sandisk Clip+ Fun and Games

BB has been listening to audio books on CD from the library while exercising.  Dealing with the CDs is a bit of a pain while exercising so I've been ripping them to an SD card so she can listen to them using a small player.

She had been using an old Pandigital Android tablet.  It works but is a bit over large.  BB wanted a smaller player that could be clipped to her cloths as she exercises.  After a bit of research she bought a Sandisk Clip+.

I copied a book on CDs to a micro SD card and checked to see that it would play.  Everything looked OK but when BB played it the Clip+ died after a few minutes.  I was a bit surprised since the device was only a day old, but OK, electronics do bread, bit of bad luck, etc.  I exchanged the original device for a new one.  BB tried again with identical results!  A second broken device seemed rather unlikely so I decided to look into the problem.

A bit of google search found that the device can be reset by holding the power button down for 20 seconds.  Doing so restored the Clip.  Unfortunately when I played the book, the Clip+ froze and appeared dead after 5 minutes and 30 seconds.  Another reset, another test play and another freeze!

I loaded a different book, this time a set of MP3 files (the original book was WAV files).  The MP3 book played without issue.  So it looks like WAV support on the Clip+ is a bit dodgy.

It's not much of a chore to convert WAV files to MP3s.  I used this small script that I got from the net.

#!/bin/sh
# name of this script: wav2mp3.sh
# wav to mp3
for i in *.wav; do
 if [ -e "$i" ]; then
   file=`basename "$i" .wav`
   lame -h -b 192 "$i" "$file.mp3"
 fi
done

It took a bit to convert all the files in the book.  I reloaded the book now as a set of MP3s on the Clip+ and it now plays OK.

There was a bit more cleanup to do since the Clip+ uses MP3 tags to organize the files it plays.  Enter easytag.  I used it to set the MP3 tags based on the file name (fortunately it contained the autor, title, CD, and track as part of the name).  Easytag has a facility to batch set the MP3 tags.  I set tags as follows:

  • Album to book title
  • Artist to book author
  • Title to CD##Track##
  • CD to CD
  • Track to track

With that done the book is nicely compatible with the Clip+.

To make things a bit easier going forward I modified the python ap I used to rip the CDs to use a better name convention.

# audiobookcopy.py
# copy multiple CDs in an audio book
# cd appears to automount at ls .gvfs/cdda\ mount\ on\ sr0/
#
# Output file name format that should work well with various players
# Author/Title/CD??-Track??
#
# for info on ripping see http://www.chuckegg.com/quickly-convert-audiobook-cds-to-mp3-files-audio-book-mp3/
# for info on easytag see http://easytag.sourceforge.net/EasyTAG_Documentation.html#ch_1_2_4
import sys
import os
import shutil
dir = "/home/rbell01824/.gvfs/cdda mount on sr0"
def ensure_dir(f):
    if not os.path.exists(f):
        os.makedirs(f)
def cacd( author, title, cd ):
    print "Processing CD ", cd
    files = os.listdir( dir )
    ifn = 1
    for fn in files:
        src = dir+"/"+fn
        dst = author+'/'+title+'/'+'%02d'%cd+'-%02d.wav'%ifn
        print "Copy ", fn, " to ", dst
        shutil.copy2( src, dst )
        ifn += 1
    return
def abc():
    if (len(sys.argv) < 3 ):
        print "audiobookcopy author title start_CD"
        print 'audiobookcopy RJB "life Notes" 1'
        exit(1)
    print sys.argv[1:]
    author = sys.argv[1]
    title = sys.argv[2]
    ensure_dir( author )
    ensure_dir( author+'/'+title )
    cd = int(sys.argv[3])
    print "start with disk "+str(cd)
    while cd <= 200:
        kbi = raw_input( "Mount CD "+str(cd)+" Press enter:\a" )
        cacd( author, title, cd )
        cd += 1
if __name__ == '__main__':
    try:
        __file__
    except:
        sys.argv = [sys.argv[0], 3]
    abc()

With those changes made it should be easy to load books on the Clip+.  After a bit more use I'll probably update the python ap to convert to MP3 if necessary and to set tags as part of the process so it's not necessary to use multiple tools.

Tuesday, February 28, 2012

Fire Comcast TV - 2TB disk added

I've been using a 1TB USB disk to store recorded video.  It would unmount from time to time for no apparent reason.  I replaced it with a 2TB internal drive.  No more unmounts.

While everything worked OK, deletes took rather a long time.  A bit of investigation revealed with the large disk have 4KB sectors and that there is an issue with logical-physical sector alignment.  There's more here http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/.  So I used parted to repartition and properly align as follows:

# parted /dev/sdX
# Set units to sectors (in this case 512B):
(parted) unit s

(parted) rm
Partition number? 1

(parted) print
Model: ATA WDC WD15EARS-00Z (scsi)
Disk /dev/sdb: 2930277168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart
Partition name?  []?
File system type?  [ext2]?
Start? 64
End? -1
Warning: You requested a partition from 64s to 2930277167s.
The closest location we can manage is 64s to 2930277134s.
Is this still acceptable to you?
Yes/No? Yes

(parted) print
Model: ATA WDC WD15EARS-00Z (scsi)
Disk /dev/sdb: 2930277168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End          Size         File system  Name  Flags
 1      64s    2930277134s  2930277071s

(parted) quit
Information: You may need to update /etc/fstab.
All is now VERY well with much improved performance.

With the new 2 TB disk there are no space issues (1 TB was occasionally a bit tight).

Between OTA recordings from MythTV, XBMC internet content, Net Flicks and ROKU we have better content choices than with cable TV.  Project is a great success.

Sunday, December 18, 2011

Fire Comcast - Minor improvements

We've been having some issues with the recorded TV shows.  Most are stored on a 1TB WD Passport USB 3/2 drive.  We've been having issues with the drive gratuitously dismounting during playback.  I bought a USB 3 card on the chance that the issue was power since the drive gets its power over the USB connect and there was some web traffic that the WD Passport is something of a power hog.  The first card I bought drew power from the bus and didn't work.  It wouldn't mount the drive.  I ordered a different card with an external power connector and it's works well.  So far it's worked well and we've had no dismounts so it looks like power was the issue.  The USB 3 interface is clearly faster though for playback of recorded video it doesn't really matter as the USB 2 was plenty fast enough.

We continue to have issues with wind causing pixilation of OTA TV.  I may work on the antenna some more.  The next step would be an external antenna.  There are a couple of possible locations I'll try.

Friday, November 25, 2011

Synergy

One of the issues I've been unhappy about with the TV is that I needed to have a separate keyboard for the computer TV.  A bit of searching found Synergy.  It provides a facility to remote the keyboard and mouse for a machine.  For my purposes it's just what's wanted so that I can control the TV computer from my laptop.  Now if disk prices would just come down I'd be done with the Fire Comcast TV project.

Comcast fired!

Verizon was by yesterday and installed fiber.  The Internet is definitely faster, although not dramatically so.  I did have to reconfigure some of the house network.  The router I'd been using to run DHCP had a reservation feature that allowed me to assign static IPs.  I needed these to support some of applications I run across the local net.  The Verizon provided router, a generally much more advanced device, doesn't have an explicit static reserved IP feature.  It does seem to create the same effect by always using the same IP for a given MAC address.  The net was that I had to do a bit of reconfiguration of some software that for whatever reason needed a real IP instead of a host name.

With everything running again properly, I called Comcast to terminate the remaining service.  There was some entirely needless fuss and bother over verifying my identity.  It seems that calling from the registered phone number, identifying the account holder, and verifying the address isn't enough.  We finally got past that and Comcast service is now terminated.

We are still having a bit of issue with the USB disk drive I'm using to hold downloaded media.  From time to time it gratuitously dismounts.  That's a bit frustrating when watching something.  I'd like to replace it with a 2TB internal drive but sadly drive prices have skyrocketed with the flooding in Asia.  I'll put up with the dismounts until prices return to a sane level then replace it.

Bottom line now, though, is that I no longer pay for TV, have cut my Internet bill by 1/3, and my phone bill to 1/8 of what it was.  Well worth the couple of hundred I spent on equipment!

Wednesday, October 12, 2011

Fire Comcast TV ... They are fired!!

I've been working for some while to get rid of Comcast TV service.  For the last month or so we've not used any Comcast content so today I canceled the TV service and returned their equipment.  Of course Comcast in their infinite but bone headed wisdom decided to increase the cost of the remaining service $10/month!  That's a great incentive to continue to do business with them ... NOT.

In a related development, Verizon is working at the end of the street so there is some hope that broadband will soon be available.  Given that Verizon cost is comparable and included phone service Comcast is going to get fired completely.

I got an email from an old friend about my Fire Comcast system and sent the following reply.  It sums up things fairly well.

The answer to all questions is 'it depends.'  I built my system on old used gear of one sort or another on a 100 Mbps network.  By splitting the recording and playback functions I was able to use older/slower gear.  It's certainly possible to build a single PC system but I'd be concerned about cost.  Here's the current state:
  • Tuner - HD Homerun dual tuner ($94) -Takes the digitization load off the DVR.
  • Antenna ($0) - Made several from internet plans.  The fractal antenna works as well as anything else.
  • TV DVR - MythTV running on 3 Ghz P4 with 1.5GB memory & 360 GB of old IDE drives ($70 for box, power supply, motherboard & memory, $0 for disk drives salvaged from old machines).  This box is ONLY responsible for recording OTA from the HD Homerun and playing back to another machine driving the TV.  There are some issues when recording two shows while playing back a third.  Most likely it's either a processor or disk issue.  There are a number of fixes the cheapest of which is to setup a cron job to move the recordings to the playback machine overnight ($0).
  • TV computer - Intell Core 2 DUO, 2.4 GHz, 3 GB main memory, 2 sata disk drives ($90), chassis and power supply ($70), 1 TB USB ($99).  This machine drives the TV and downloads NZB content.  I overspent on it as I was anxious to get the whole system up and fire Comcast ($90/month) so the extra expense seemed justified.  I run XBMC as the principal video display software with extensions to playback MythTV recordings (loose commercial skip so I just skip forward 30 seconds to get past commercials).  I run Sabnzbd for NZB content download and store it in the XBMC directories.  I also setup a bunch of desktop launchers for major networks and a web page with show links.  This allows watching current shows on the show sites.  We don't much use these.  I use vobcopy on this machine to copy DVDs for backup and later viewing.  We get DVDs via netflixs and from the library.  I use an XVGA interface to the TV since the TV has a conformal display mode better than HDMI (machine doesn't have an HDMI output).  This box is overkill to drive the TV (previously I'd used a P3 laptop).  I use it because of the XVGA resolution compatibility with the TV.
All in all the system works well.  All of the hardware is used/salvage (exception is 1TB USB disk & HD Homerun).  Most was bought on Craigs list. There's much to recommend partitioning functions across a network.  With complete P4 systems going for anywhere from $30 to $70 I suspect that this configuration could be replicated for about 2/3 of what I spent.
A couple of pieces of advice.  
  • Get a good solid TV interface early in the process.  The laptop I used to drive the TV originally had plenty of power but couldn't drive the TV at HDMI or better resolution.  Check your TV docs to see what inputs it has at what resolutions.  If you've got a HDMI 720 or better D shell input you'll likely be satisfied with the video quality for TV (most hi def TV is actually 720p/i) but may have issues with DVDs.  Above 1080 it's all VERY GOOD.
  • I tried several OTA TV DVR software packages.  MythTV is the pick of the litter.  Plan on installing it several/many times as you sort through the configuration issues.  There's lots of docs available but be aware that there have been several versions and the docs while giving useful clues are not reliably current, often contradictory, often confusing, often incomplete, etc.  That said, the clue you need to configure is out there somewhere you just need to be patient, keep looking, and be willing to do things over and over again until you get it sorted.
  • I prefer XBMC over MythTV as a viewing interface but it's only a preference.  Several factors drove my choice.  XBMC has a good mouse interface and the new Logitech wireless mouse has good range, is cheap, and works well.  I also wanted a keyboard/mouse interface on the TV system so it is usable for other purposes.  If you are going to use MythTV as the viewing interface you'll probably want a remote as it is oriented that way.
  • There is much good information on YouTube.  Look at it BEFORE you get started.  That said, don't believe everything you see.
  • Start with what you have by way of hardware.  When you run into issues then you can direct your spend at the real problem.  My original configuration was a P3 laptop with a broken keyboard and a 486 doing OTA recording.  It actually worked surprisingly well.
  • Experiment a bit with NZB before getting over involved with DVR recording.  Checkout NZB.su.  Likewise, experiment with the network TV show sites before getting over involved with DVR recording.  Hulu is good.  There is a LOT of recorded content available and you may not want/need to do as much DVR recording as you think.  
Good luck with it.  Let me know how you do.
Regards,
Richard

Enhanced by Zemanta

Tuesday, August 23, 2011

Fire ComcastTV - Bring up new MythTV backend

There have been some buffering issues with the current MythTV backend (AMD Athlon, 1.2 GHz, 750 MB).  A combination of memory and processor limits is the likely issue.  I'd finished building a P4 3GHz 1.5MB machine (tiber - I like the name particularly since tiber is liquid cooled) a couple of days ago so went ahead and installed MythTV backend and frontend and configuring to make the recordings.  Hopefully that will resolve the issues.

I decommissioned Amazon and moved its recordings to the 1TB drive using MythLink (http://www.mythtv.org/wiki/Mythlink.pl).

I added /usr/share/doc/mythtv-backend/contrib/user_jobs to PATH in /etc/environment per https://help.ubuntu.com/community/EnvironmentVariables (stumbled on the fact that /etc/environment holds name value pairs and is NOT a sh script).

I added

mythlink.pl --link /var/lib/mythtv/pretty --chanid %CHANID% --starttime %STARTTIME%  --format '%T-%oY%om%od-%S'

as a user job on RecordingStart so that going forward there will be links if they are needed and the recordings can be moved with reasonable names using cp.

Monday, August 8, 2011

Fire ComcastTV - OOPS, destroyed Ohio TV System

Bit of a mostly self inflicted setback.  I'd bought a second mobo and am in the process of building it.  I'd decided to remove the 37 GB SATA from ohio (tv machine) and use it in the build.  When I did so, ohio would not boot. It turned out the MBR was on the 37 GB drive.  In the process of trying to create a MBR on the remaining 200 GB drive I managed to corrupt the install.  So ... reinstall and reconfigure ubuntu on ohio:
  • Reinstall ubuntu 10.04
  • Run update manager
  • Use synaptic to install chrom browser, mythtv front end
  • Install xbmc per http://wiki.xbmc.org/index.php?title=Installing_XBMC_for_Linux
  • Configure chrom browser
    • Enable all installed plugins in chrome
    • Upgrade adobe flash player so can access youtube.  Notwithstanding adobe docs you must install as it is NOT part of chromium on linux.
  • No audio.  Set preferences->sound->output to internal audio analog stereo. 
  • Verified that can watch youtube and have audio.
  • chmod /usr/share/icons so I can easily write custom icons there
  • Set custom icon for mythtv and xbmc so they are more visible
  • Configure mythtv
    • Set password
    • For some reason can not watch live tv.  The DB also appears to be corrupt.
    • Not sure what was going on but a reboot seemed to help.  There were many 0 length recordings.  I've deleted them.  I'm somewhat suspicious that there was a power issue and the machine went down leaving a lock on a file outstanding.  It bears watching.
    • Along the way I foolishly enabled OpenGL on Amazon.  This breaks the UI so it's not possible to unset it.  After MUCH work discovered that the fix is to  "mythfrontend -O ThemePainter=qt" and reset it to "Qt".
  • Configure xbmc
    • Configured weather for Sudbury, Charlotte, and Seoul
    • Configured picutres
      • Installed and configured Picasa
      • Installed and configured Facebook
      • added pictures_nas0000
    • Configured music to music_nas0000
    • Configured videos
  • Set system->preferences->visual effects to extra to jazz up the interface a bit
  • Enabled remote desktop
  • Set screensaver preferences to AntSpotlight, 2hrs, unselect activate and lock.  This will hopefully stop the screensaver and lock when watching tv with no interaction.  Set power management preferences to never/never with spin down enabled as default.
  • Installed and configured hulu desktop.  Not sure I really like the way it works but we'll see.
  • Setup desktop applications for 
    • XBMC & MythTV
    • Pandora & Art Bell
    • Hulu desktop & hulu
    • Netflix (but can not watch on demand)
    • Weather - Intellicast, NOAA, Weather Underground
    • News - PBS Newshour, CNN, ABC, You Tube
    • Networks - USA, Syfy, ABC, NBC, TNT, WB
  • Went to medibuntu (https://help.ubuntu.com/community/Medibuntu) to get some help with playing dvds.
    • sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
      sudo apt-get --yes install app-install-data-medibuntu apport-hooks-medibuntu
    • sudo apt-get install libdvdcss2
  • Upgraded mplayer components
  • Installed vlc.  Mplayer will not play DVDs.  VLC will.
  • Installed acidrip, dvd::rip, and vobcopy to support dvd rip
    • Had some issues ripping DVDs I'd previously ripped.  These were resolved by installing medibuntu and libdvdcss2 above.
    • Recopied DVDs that were lost
Things are now back, more or less, to where they were before.  I'll still need to make show links but otherwise things are well.

To DO
  • Build new system
  • Finish the tivo slide support
  • Setup mythnettv properly
  • Buy and install blu ray drive in Ohio TV system.
  • Finish freenas install
  • Improve antenna.  Bow tie is better but could use better still.  Also consider array of fractal and large fractal.
  • Remove passwords that popup
Enhanced by Zemanta

Sunday, August 7, 2011

Fire ComcastTV - New case for Ohio TV computer

Moved the Ohio TV PC components into the Antec 300 case.  This will give me LOTS of space for additional boards and drives if or as that becomes necessary.  Things generally went well but there were a couple of issues:
  • DVD drives I'd wanted to use were to large to fit.  The issue is the length of the drive.  I've a number of older working drives but generally they are around 7" to 7.5" long.  There is only about 6.5" of space in the Antec chassis before the drive hits the mobo.  I managed to get one DVD reader in so I'm ok for the time being.  Long term I'll buy a blu ray drive and replace things.
  • I wanted to pull the 37 GB sata drive and use it in another system.  Much to my surprise the boot tracks were on that drive and the 200 GB drive with the OS etc would not boot without the 37 GB being present.  I'll need to pick up some other SATA drives for the new build or make the 200 GB drive bootable.

To DO
  • Build new system
  • Finish the tivo slide support
  • Setup mythnettv properly
  • Buy and install blu ray drive in Ohio TV system.
  • Finish freenas install
  • Improve antenna.  Bow tie is better but could use better still.  Also consider array of fractal and large fractal.
  • Remove passwords that popup

Friday, August 5, 2011

Fire ComcastTV - Refine network shares, DVD rip, new computer

Continuing to work on the Fire ComcastTV project.  I think I'll be able to do so sometime in the next week or so.  Verizon has pulled fiber and they should be contacting customers soon.  As soon as they do Comcast is gone.

Spent some time refining the configuration.


Refine network shares

The network shares for the 1TB USB network drive are a bit difficult to use.
  • Create share on 1TB drive for /Public/Media directory as media_nas0000 
  • Create share on 1TB drive for /Public/mythtv as mythtv_nas0000
  • Install smbfs
  • On ohio create permanent mount for media_nas0000

    sudo mount -t smbfs //192.168.1.2/media_nas0000 /media/media_nas0000 -o password=,uid=rbell01824,gid=rbell01824
For reasons I don't understand this is not working.  I'll look at permissions and try a sleep to allow the mount to happen.

DVD rip
  • vobcopy -I to get info
  • vobcopy -l to copy title with most angles  clean and simple
Also downloaded thoggen and acidrip.  Tried both.  They both work.  thoggen is simple but rips at about playback speed so it takes a long time.  acidrip is much faster.  Where vobcopy is fast the output doesn't always play well.  One issue is that fast forward/back doesn't work with vobcopy but seems OK with thoggen and acidrip.

Had some difficulty with one DVD and found that dvd::rip worked OK.  Looks like you need to sometimes play a bit.

After experimentation I think acidrip is the pick of the litter.

2nd disk drive

There is a second sata drive on Ohio.  It's a 37 GB WDC that was probably previously a Windows drive.  There's no real reason to mount it so I'm going to just leave it alone for the moment.

New computer


Picked up a case (antec 300, http://www.newegg.com/Product/Product.aspx?Item=N82E16811129042) and power (antec 750, http://www.newegg.com/Product/Product.aspx?Item=N82E16817371026) supply yesterday.  The case has 3 external and 6 internal bays so there is lots of expansion room.  I think I'll move the core 2 to this case and use the other case for the intel mobo I recently bought.


mythlink.pl


Tried this utility.  Links made in a directory owned on nas0000 owned by mythtv.  nas0000 mounted uid/gid mythtv.  Remounted as uid/gid rbell01824 and deleted directory.  This needs additional investigation before using mythlink.pl.


To DO
  • Build new system
  • Finish the tivo slide support
  • Setup mythnettv properly
  • Finish freenas install
  • Improve antenna.  Bow tie is better but could use better still.  Also consider array of fractal and large fractal.
  • Remove passwords that popup

Sunday, July 31, 2011

Fire ComcastTV - record flash from TNT

There are some shows on TNT and other cable TV channels that BB and I enjoy.  Generally, these are available on the shows's web site as streaming flash files.  It would be handy to be able to save them and then play later.  Several possibilities:
Recordmydesktop seems to do well with the video but sound is an issue.
I'll do some more research to see if there is a way to snag the video directly from the stream.

Saturday, July 30, 2011

Fire ComcastTV - Another new computer

Picked up another new computer from Craigs list ($50):
  • ATI Radeon Sapphire X1950GT with 512 MB video card (dual DVI and TV out) 
  • Intel DG33FB motherboard with 3 gig pc800 memory with Intel Celeron 450 (single core 64 bit) 2.20GHZ/512/800/86 processor
I'm not entirely sure what I'll do with it but someone gets an upgrade.  I'll need a new power supply since this has some PCIe slots and 24 pin power.  Power requirements from http://extreme.outervision.com/psucalculatorlite.jsp for a reasonable configuration is around 443W.  I'll order a 600W power supply and a couple of fans.  While I'm at it I'll order fans for Ohio.

The board also has 11 mount points.  I'll need to check the chassis I have to see if they are in fact usable.  If not I'll order a case.

Intel docs say board supports Core 2 Duo/Quad processors ($170-$200 chip upgrade).  Not worth it.

I'll need to work through the details but it looks like I can mount it in one of the old chassis with a new power supply.  Alternately, I could buy a chassis and build a really big storage server.


To DO
  • Build new system
  • Finish the tivo slide support
  • Setup mythnettv properly
  • Finish freenas install
  • Improve antenna.  Bow tie is better but could use better still.  Also consider array of fractal and large fractal.
  • Remove passwords that popup

Friday, July 29, 2011

Fire ComcastTV - RIP DVDs

To simplify things I'm going to backup my DVDs to disk so they are playable from xbmc.
Addenda: This youtube video is also very helpful (http://www.youtube.com/watch?v=OPLquAvs7eQ) using Thoggen: http://thoggen.net/
HandbrakeGTK: http://handbrake.fr/

To DO
  • Finish the tivo slide support
  • Setup mythnettv properly
  • Finish freenas install
  • Improve antenna.  Bow tie is better but could use better still.  Also consider array of fractal and large fractal.
  • Remove passwords that popup
This is the key part:
=======================================================================

Tools of the trade

These are the tools you will need to install, with all dependencies. you can find more info on google.com or freshmeat.net:



Gathering files from the DVD

First we need to copy our movie to the hard drive from the DVD. Mount the drive, and do a df. If the disk is already less than 4.4G(4482Mb), then its already dvd5, and you can mirror it with vobcopy, then it will be ready to burn! Otherwise, continue on.


Use vobcopy to mirror your entire DVD to your current directory for direct burning: (If it is indeed small enough)

$ vobcopy -m -o .
vobcopy -I to get info
vobcopy -l to copy single large file for default

If the disk is larger than 4.4G(4482Mb), you will need to collect only the main movie title. You can find out some info by reading the DVD with dvdrip. I prefer to gather info via the command line.

Use vobcopy and tcprobe to find useful information: Vobcopy will tell you how many titles, chapters, and angles there are. Note which title has the most chapters, and how many chapters/angles that title has. Use tcprobe to see the audio/subtitle streams of the largest title. Note the audio streams that you wish to keep. Tcprobe will show you the languages of each audio track and how many channels each contains, as well as lots of other information.

$ vobcopy -I
and

$ tcprobe -i /dev/dvd


Use tccat to copy the desired title:

$ tccat -i /dev/dvd -T A,B-C,D > movie.vob

# where
# 
#     * A is the title that you want to rip
#     * B is the chapter that you want to start from (typically, 1)
#     * C is the chapter that you want to end with
#     * D is the angle that you want (typically, 1)
#     * movie.vob is the output file


Fire ComcastTV - FIOS cometh

Ran an errand today and on the way back noticed two Verizon trucks.  Stopped to ask about FIOS.  Turned out they were pulling cable.  Should finish Monday and we should get sales calls shortly thereafter.

Bye bye Comcast!!!

Also found out that FIOS internet service is NOT METERED!  Nice to find some common sense pricing.

Tuesday, July 26, 2011

Fire ComcastTV - more almost done

Mount 1 TB network drive permanently
  • Mounted drive per http://ubuntuforums.org/showthread.php?t=255872.  Editing /etc/fstab did not work.  Added this line

    mount -t smbfs //192.168.1.2/nas0000 /media/twopugs2 -o password=,uid=mythtv,gid=mythtv

    to /etc/rc.local per AB's advice and a bit of experimentation.
Configure 2nd 160 GB drive and 1 TB network drive
  • Added directories /media/sdb/mythtv and /media/twopugs2/Public/mythtv into storage pools where appropriate (places where much data possibly stored).
Setup mythnettv properly
Disable suspend and sleep
Finish Ohio and drive TV

  • Closed Ohio case and brought downstairs.
  • Connected to TV.  Intermittent audio cable.  I'll replace it.
  • Configured XBMC and MythTV.  Created desktop apps internet TV sources.
  • Mouse intermittent.  Ohio's metal case is blocking signal.  Used USB cable to move interface to front.  I'll do something better after the remote arrives.
  • Ohio seems sound.  I'll test it for a bit and go from there.
New machine
  • Found another motherboard.  I'll try to pick it up ($50) and build another TV machine.
To DO
  • Setup mythnettv properly
  • Finish freenas install
  • Improve antenna.  Bow tie is better but could use better still.
  • Remove passwords that popup
Enhanced by Zemanta

Sunday, July 24, 2011

Fire ComcastTV - almost done

I've been working the last several days on several fronts on this project:
  • I've built a new (to me) tv pc.  As I mentioned earlier I bought a motherboard, memory, processor, and a couple of disk drives.  I ordered a larger power supply and some standoffs (I was one short to mount the motherboard).  All the parts came and I spent a day building the new pc, installing Ubuntu 10.04, mythtv, xbmc, etc.  I still need to close up the case and finish a bit of configuration but all is basically working.
  • I've got Ubuntu 10.04 working well with xbmc and myth tv everywhere so I've dropped the 11.04 work since it doesn't seem to add anything.
  • I dual booted the AsusLaptop and installed ubuntu 10.04.  Works OK.  Worked on the interface to make things easier for BB to use.  Installed mythtv support in xbmc.  Works well.
  • Built a new somewhat bigger antenna.  Initial testing  shows that it is marginally more sensitive.  I've mounted it on HDHomeRun for further evaluation.
Mount 2nd hard drive in Ohio
  • Disk utility shows second drive is the Samsung 160 GB.  The partitioning is ok.  
  • Mount it to see what, if anything, is on the drive.  It looks like it has an old ubuntu on it.  Reformat drive.
  • MythTV stores its data at /var/lib/mythtv which is on sda.
  • 2nd drive mounts at /mount/sdb.  Create mythtv directory and subdirectories that mirror /var/lib/mythtv.  MythTV default would be /media/sdb/mythtv with others per /var/lib/mythtv model.
  • Edited /etc/fstab per http://www.psychocats.net/ubuntu/mountlinux adding both /media/sdb/mythtv and a second swap partition.
Mount 1 tb network drive
  • //twopugs/nas0000/public/mythtv created.  Subdirectories created mirroring /var/lib/mythtv structure
  • Not sure what path to twopugs really is but I'm able to see it on Amazon's file browser.
  • I'll need to work this out.
To DO
  • Mount 2nd 160 GB drive and fix up place for video storage per section 9 guidelines.  Dre currently defined as /media/sdb.  Need to configure mythtv backend to use.
  • Clean up and properly configure storage directories in mythtv storage groups
  • Default web page for TV.B network drive.
  • Mount and configure 1 TB drive.
  • Configure VNC so that I can always get to the machine.
  • Setup mythnettv properly
  • Finish freenas install
  • Improve antenna
  • Setuup VNC to work without a loged on user
  • Remove passwords that popup

Wednesday, July 20, 2011

Fire ComcastTV - continue MythTV experiments

It is likely that the issues with MythTV recording were due to Windows Media Center.  It appears that WMC was recording at the same time that MTV was trying to.  Windows won.  I've cleared all the recordings in WMC so hopefully that issue is resolved.  I did toy for a bit with using WMC but the issue of network support and proprietary formats is ultimately a killer.  Checked the MTV watch TV and now all is well.

I now need to address the ubuntu 11 v 10 issue WRT ASUSLAPTOP.  There are several options.

  • I discovered that it is possible to integrate XBMC very effectively with MTV.  Since XBMC runs OK on XP (ASUSLAPTOP) that's a fix and I can leave all the Ubuntu 10 machines alone.  This is straight forward and should go fairly quickly.
  • I can upgrade everyone to Ubuntu 11 and run the current MTV.  It has a bit more functionality and it's VERY likely that there is a MythTV Frontend for XP.
  • I could do nothing and wait to see how things work with WMC hopefully out of the picture.  It's also likely that the ASUSLAPTOP is temporary as I bought a nice motherboard/processor/memory from craig's list and will soon have a VERY capable machine to replace it.  That will allow me to move the ASUSLAPTOP to another TV or alternately just use it for other things by replacing the keyboard from ebay.
There's not much to recommend any of these options over each other.  I am curious about XBMC though.  Since that's probably the easiest short term solution I think I'll start there.

Integrate XBMC with MythTV
  • Directions here, http://wiki.xbmc.org/?title=MythTV
  • Granted priviledges on Amazon MTV backend
    $ mysql -u root -p
       mysql> grant all on mythconverg.* to mythtv@"192.168.1.%" identified by "mythtv";
       mysql> flush privileges;
    
  • Added the source to XBMC per the directions.
  • Success, it works reasonably well.  I can see and play MTV content.  This is an OK temporary solution.  About the only thing not quite right is that the guide doesn't match the documents.  Fortunately, the web front end works well for this sort of stuff.

    Addenda: It turned out that I had to set /etc/hosts to bind the host name and IP as the mythtv host sometimes sends it's name.
MTV backend daemon

It appears that this is the default case so I've nothing to do here.

XBMC Investigation

Played a bit with XBMC.  It's rather more functional that I'd thought.  That said the version I'm running on the ASUSLAPTOP XP doesn't match recent documents.  I'm beginning to think that there is an XP issue.  In particular the XBMC Flicks plugin hangs when trying to interface to Netflix.  This is more an anoyance than a problem since I can easily watch Netflix in a browser.

Oddly, a couple of restarts later the Netflix addin started working.  Don't you just love open source?

Ubuntu 10.04 on ASUSLAPTOP

Since Ubuntu 10.04 is working well everywhere now, I'll install on ASUSLAPTOP as a dual boot to see how it works as a primary TV controller.  I'll need to break down the current TV connections and boot from a 10.04 install disk.
  • Install 10.04 alongside XP in a 20 GB partition.  The machine could use a larger disk drive or an external.  I've got a 160 GB USB 2 that might work that I'll try if everything works OK.
  • Installed MythTV frontend and configured.
  • Installed Chrome browser.
  • Started MythTV.  Got expected configuration screen.  Set backend IP and MySQL db login.
  • Looks very nice.  Everything works great.
  • Success
Check Browser access to video
  • hulu works find
  • netflix doesn't.  Turns out netflix is not supported on linux.  Sign petition.  Call netflix and read them the riot act.  Netflix is about to get fired.
Put some desktop links to popular networks.   Should really consider settingup a default web page.  All in all considerable progress.



To DO
  • Default web page for TV.
  • Install ubuntu 11.04 everywhere.  Install mythtv 11.04 as appropriate.
  • Dual boot ASUSLAPTOP with ubuntu 11.04 and windows 7.
  • Mount 2nd 160 GB drive and fix up place for video storage per section 9 guidelines.
  • Clean up and properly configure storage directories in mythtv storage groups
  • Configure VNC so that I can always get to the machine.
  • Setup mythnettv properly
  • Finish mythtv-setup now that DB is connected.
  • Finish freenas install
  • Build new TV PC
  • Improve antenna
  • Setuup VNC to work without a loged on user