Content here is by Michael Still mikal@stillhq.com. All opinions are my own.
See recent comments. RSS feed of all comments.


This page is for MythNetTV, my RSS and Atom aggregator for video downloads. The idea is that video blogs end up as recordings in MythTV, which you then watch in the normal manner. There is a mailing list if you're interested in discussion and announcements of new releases (archives of the list are here). There is a public SVN repository at http://www.stillhq.com/mythtv/mythnettv/svn/.


Mon, 19 Jan 2009



MythNetTV release 7

posted at: 15:11 | path: /mythtv/mythnettv | permanent link to this entry


Fri, 03 Oct 2008



MythNetTV release 6

    New things in this release:

      Better testing:
    • r114: Unit tests for video.py
    • r148: Updated unit test now that we create more tables
    • r151: Start work on syndication unit tests
    • r153: Unit test for bad syndication dates, as well as more flexibility in db connections needed for this unit test
    • r157: Nicer unit test failure output, and refactor GetVideoDir() into the utility module
    • r181: Slightly improve syndication unit tests
    • r183: Add flag parsing to unit tests, and fix some more flag name changes


      Better documentation:
    • r117: Added a man page for video.py -- I'm not 100% happy with its name though


      Bug fixes:
    • r114: Fixed a bug where the new filename for video transcode could be the same as the input filename, resulting in video corruption. This was found with one of the new video.py unit tests
    • r116: The logic for the --prompt flag was the wrong way around. Fixed.
    • r119: Nicer download status messages
    • r121: Handle 404s in feed updates better
    • r129: Slight tweak to SVN submit script
    • r131: More accurate tracking of proxy usage (update during download, instead of just at the end)
    • r137: Proxy budget being exceeded doesn't count as a failed download attempt
    • r143: Subscribe now renables inactive subscriptions
    • r146: Add support to decimals to utility byte printer, fix a bug in the check for video directories
    • r155: Have users send problems to the mailing list, instead of me personally
    • r161: Don't throw exceptions for the videodir command line
    • r167, 169: Display friendly sizes in records_tool output
    • r171: Move verbose update arg into a flag
    • r173: Add "-vo null" to mplayer invocation per Ryan Lutz. This improves support on machines without X, and speeds up the identify operation
    • r175: Import patch from Thomas Mashos which fixes subscription removal, started work on syndication unit test improvements
    • r177: Fix character escaping bug in show subtitles during import
    • r179: Renamed --datadirdefault to --datadir. If set this will now change your data directory, regardless of if there was a previous value set.
    • r190: Recording_tool now prompts for deletes
    • r192: Improved explainvideodir output
    • r194: Don't crash in explainvideodir if there is no video directory
    • r197: Order results by subtitle in recordings_tool output


      New features:
    • r115: Upgraded schema to version 15 to support http_proxies for subscriptions. Added http_proxy command line, which allows you to use HTTP proxies for specified URLs. Moved HTTP accesses to use the proxy code.
    • r127: Bump schema to v17, and add proxy use tracking including the "proxyusage" command
    • r133: Allow daily budgets for proxy usage
    • r115: Provide a user agent for HTTP requests, instead of just Python-urllib/1.17
    • r117: Users will now be prompted to subscribe to an announcements video feed. This will happen exactly once. This behavior may be disabled with the --nopromptforannounce command line flag.
    • r125: Add a full info dump command to video.py's command line interface
    • r139: Bump schema to 19, and implement categories with the "category" command
    • r141: Implement recording group support, and clarify category support
    • r151: Implement a helper (recordings_tool) for handling the MythTV recordings table, this is useful for testing.
    • r159: Add videodir and explainvideodir debugging commands, and update man page
    • r163: Add title list feature to recordings_tool
    • r165: Include recording count in title list
    • r185: Add the resetattempts command


      Development changes:
    • r123: Added a submit script to automate putting the revision number into the ChangeLog
    • r135: Tweak to new ChangeLog auto logging formatting


    Release 6 continues the tradition of better testing, improves the documentation (a little, there is more work to be done there), fixes a bunch of bugs, and implements some new features which will hopefully be useful to others. Please grab your copy here.

    Tags for this post: mythtv mythnettv release
    Related posts: RemoteWorker v74; Another version of blather; MythNetTV release 2; MythNetTV release 7; PNGtools 0.4; MythIpTV Beta 1; Craigslist personal ad styled on the Yahoo reorg; MythNetTV release 5; RemoteWorker v70; MythNetTV beta 4; Announcing early results of my survey of SMTP servers; MythIpTV Beta 1; MythIPTV Beta 2; MythNetTV release 4; gtalkbot 1.4; MythNetTV release 3; Pngtools 0.3 released; MythIPTV Beta 2; MythNetTV release 1; gtalkbot 1.3

posted at: 13:09 | path: /mythtv/mythnettv | permanent link to this entry


Tue, 23 Sep 2008



Please help me test trunk

    I'm getting ready to do another MythNetTV release, as I've fixed quite a few things recently. I'd appreciate people testing the new code before I do an official release. You can get the current code like this:

      svn co http://www.stillhq.com/mythtv/mythnettv/svn
      


    That will create a directory called mythnettv, with a subdirectory named trunk, which is the latest development version of the code. You should probably create that directory somewhere where you don't mind a new directory being created.

    This release has lots of small changes, which are listed in the ChangeLog which will be downloaded with the code.

    Thanks.

    Tags for this post: mythtv mythnettv

posted at: 20:42 | path: /mythtv/mythnettv | permanent link to this entry


Sun, 14 Sep 2008



Couldn't determine the video directory?

    A couple of people have contacted me in the last couple of days with an error where MythNetTV can't determine the directory to put videos in. The error would look something like this:

      Importing data/tekzilla--0050--tehbunniez--hd.h264.mp4 Traceback (most recent call last): File "./mythnettv", line 453, in main(sys.argv) File "./mythnettv", line 212, in main mythnettvcore.DownloadAndImport(db, guid, out=out) File "/home/mythbox/Scripts/mythnettv/mythnettvcore.py", line 92, in DownloadAndImport prog.Import(out=out) File "/home/mythbox/Scripts/mythnettv/program.py", line 472, in Import raise FilenameException(self.db, 'Could not determine the video ' program.FilenameException: Could not determine the video directory for this machine. Please report this to mythnettv@stillhq.com


The stack trace is mostly irrelevant. The problem here is that MythNetTV couldn't decide what directory to put the video in once downloaded. Please execute the following SQL statements against your MythTV database:

    select * from storagegroup where groupname="MythNetTV";
    select * from storagegroup where groupname="Default";
    select * from settings where value="RecordFilePrefix"; 
    


This will dump all of the possible places MythNetTV will look for a video directory.

Once you've dumped this information, perform some simple checks:

  • Is there anything listed at all? If not, you need to configure storage groups with the MythTV user interface
  • Is there anything listed with the hostname that MythNetTV is running on? If not, you need to add configuration entries for your current hostname.


If you're still having problems, please send email to mythnettv@stillhq.com, with the output of those select commands, and the output of the hostname command.

Tags for this post: mythtv mythnettv tips video directory problems
Related posts: LCA 2007 Video: CFQ IO; ScobleShow only available as MP4?; The What-If-Microsoft-Did-The-iPod-Box video done by Microsoft; Procrastination; Very funny; The new way of converting JPEGs to MPEGs; Speed limit; Mirror traffic during the last day of LCA 2007; Avoidance behaviour, or, wanted: video RSS feeds; "Thriller" as performed by inmates of the Cebu Provincial Detention and Rehabilitation Center; Tomcat first flight tribute video; MythNetTV beta 4; Transcoding using MythTV and the PSP; Driving from Mountain View to Los Angeles; Debian / Ubuntu packaging; Open Source video creation; Greg likes MySQL cluster, oh and Stewart's talk; On syncing with Google Contacts; Anyone for chicken?; Kernel report video; Announcement video

posted at: 10:32 | path: /mythtv/mythnettv/tips | permanent link to this entry


Sat, 30 Aug 2008



MythNetTV release 5

posted at: 15:11 | path: /mythtv/mythnettv | permanent link to this entry


Sun, 24 Aug 2008



Please help me test trunk

    I'm preparing a new release of MythNetTV, and would like some help testing the code, as I have re-factored how the user interface works and there is some risk that I have broken things in the process. You can get the code like this:

      svn co http://www.stillhq.com/mythtv/mythnettv/svn
      


    That will create a directory called mythnettv, with a subdirectory named trunk, which is the latest development version of the code. You should probably create that directory somewhere where you don't mind a new directory being created.

    The biggest change is that the command line syntax has changed slightly -- the dashes have been removed from the commands. Therefore, to update your list of feeds, you now use:

        mythnettv update
      


    Instead of:

        mythnettv --update
      


    And so on. This was done so that I could add "real" flags, which are used to change default values like where the database configuration is read from, as well as what the default location for the temporary data directory is.

    "Real" flags which are currently supported are:

        --datadirdefault:  The default location of the data directory
          (default: 'data')
      
        --db_host:  The name of the host the MySQL database is on,
                    don't define if you want to parse
                    ~/.mythtv/mysql.txt instead
          (default: '')
        --db_name:  The name of the database which MythNetTV uses,
                    don't define if you want to parse 
                    ~/.mythtv/mysql.txt instead
          (default: '')
        --db_password:  The password for the database user, don't
                    define if you want to parse 
                    ~/.mythtv/mysql.txt instead
          (default: '')
        --db_user:  The name of the user to connect to the database
                    with, don't define if you want to parse 
                    ~/.mythtv/mysql.txt instead
          (default: '')
      
        --[no]commflag:  Run the mythcommflag command on new videos
          (default: 'true')
      


    (These are the result of adding the gflags module back into the implementation).

    I am hoping to release this version in the next few days, so if you find any bugs please send email to the mailing list.

    Tags for this post: mythtv mythnettv

posted at: 14:42 | path: /mythtv/mythnettv | permanent link to this entry


Wed, 13 Aug 2008



MythNetTV mailing list

    I get a few support requests for MythNetTV, and I must admit that I sometimes get quite behind on my personal email, especially when I'm travelling. I've therefore created a mailing list for announcements and discussion in the hope that people will chat and come up with great ideas, as well as being able to support each other.

    Tags for this post: mythtv mythnettv

posted at: 16:56 | path: /mythtv/mythnettv | permanent link to this entry


MythNetTV release 4

posted at: 16:47 | path: /mythtv/mythnettv | permanent link to this entry


Sun, 13 Jul 2008



MythNetTV release 3

posted at: 21:36 | path: /mythtv/mythnettv | permanent link to this entry


Mon, 03 Sep 2007



MythNetTV release 2

posted at: 20:24 | path: /mythtv/mythnettv | permanent link to this entry


Fri, 22 Jun 2007



MythNetTV release 1

posted at: 11:49 | path: /mythtv/mythnettv | permanent link to this entry


Sat, 17 Mar 2007



MythNetTV beta 4

posted at: 18:42 | path: /mythtv/mythnettv | permanent link to this entry


Sun, 25 Feb 2007



Now, about the video backlog

      $ ./mythnettv --statistics
      Programs tracked: 385
        Google EngEdu: 279
        Scoble Show: 26
        linux.conf.au 2007: 74
      
      Programs still to download: 283
        Google EngEdu: 202
        Scoble Show: 8
        linux.conf.au 2007: 73
      
      Data transferred: 22 gb
      


    This is why I want to queue video, and then have it download to Myth a little at a time.

    Tags for this post: mythtv mythnettv

posted at: 20:12 | path: /mythtv/mythnettv | permanent link to this entry


MythNetTv Beta 3

    Beta 3 is out! It includes:

    • Renamed to mythnettv
    • todoremote bug fixed (bad column name)
    • statistics bug fixed (no transfer stats caused crash)
    • It is now possible to do a --todoremote, --importremote, or --importlocal and provide all the needed information on the command line


    Get it from here.

    Tags for this post: mythtv mythnettv

posted at: 20:03 | path: /mythtv/mythnettv | permanent link to this entry


Mon, 19 Feb 2007



MythIPTV Beta 2

posted at: 10:11 | path: /mythtv/mythnettv | permanent link to this entry


Sat, 17 Feb 2007



MythIpTV Beta 1

    Some folk at LCA expressed interest in my video blog aggregator for MythTV. I've cleaned it up, and just sent out the first release:

      Date: Sat, 17 Feb 2007 09:38:04 -0800
      From: Michael Still 
      To: Discussion about mythtv 
      Subject: MythIpTv Beta 1
      
      Hi.
      
      I've been recently wanting a video blog aggregator which integrates with
      MythTV. Specifically, I wanted the videos to appear as recordings. I've
      had a horrible script for that for a few months, but ended up cleaning
      it up when it occurred to me that Akimbo (http://www.akimbo.com) is just
      a per user RSS feed, and something a lot like MythTV.
      
      So, I wrote MythIpTv. It takes RSS feeds, imports the entries in the
      feed and builds a TODO list. It then downloads shows and imports them
      into the MythTV recordings menu.
      
      The code has only been tested by me, so if you're interested in giving
      it a try, please take good backups. You can find the code here:
      http://www.stillhq.com/mythtv/mythiptv/source/beta-1/mythiptv
      
      Before use, you need to make a temporary data directory in your current
      working directory:
      
      mkdir data
      
      You use mythiptv like this:
      
      ./mythiptv --url <url to RSS feed> <show title>
      
      or
      
      ./mythiptv --file <RSS file on local disk> <show title>
      
      I've been using Google Video to test this, as the AVI format they use is
      natively supported by the MythTV player. This isn't true for a lot of
      RSS feeds and transcoding isn't implemented yet, so if you want
      something to test with, you might want to use the same command line as me:
      
      ./mythiptv --url
      "http://video.google.com/videofeed?type=search&q=engedu&so=1&num=20&output=rss"
      "Goole EngEdu"
      
      That command just builds a TODO list. You then need to download some of
      the shows. You do that like this:
      
      ./mythiptv --download <number of shows to download>
      
      Once downloaded, the shows will appear in the recordings menu.
      
      I would be really interested in people's comments on the code, and
      suggestions for improvement. There are a couple of things I know about
      already:
      
       - it really needs transcoding
       - the is no graphical UI yet
      
      Cheers,
      Mikal
      


    Tags for this post: mythtv mythnettv release
    Related posts: RemoteWorker v74; Another version of blather; MythNetTV release 2; MythNetTV release 7; PNGtools 0.4; MythNetTV release 6; Craigslist personal ad styled on the Yahoo reorg; MythNetTV release 5; RemoteWorker v70; MythNetTV beta 4; Announcing early results of my survey of SMTP servers; MythIpTV Beta 1; MythIPTV Beta 2; MythNetTV release 4; gtalkbot 1.4; MythNetTV release 3; Pngtools 0.3 released; MythIPTV Beta 2; MythNetTV release 1; gtalkbot 1.3

posted at: 09:41 | path: /mythtv/mythnettv | permanent link to this entry