
{"id":34,"date":"2010-01-21T11:54:50","date_gmt":"2010-01-21T15:54:50","guid":{"rendered":"http:\/\/www.otherroute.net\/wordpress\/?p=34"},"modified":"2013-06-24T12:19:47","modified_gmt":"2013-06-24T16:19:47","slug":"mythtv-install-and-export-to-iphone","status":"publish","type":"post","link":"https:\/\/www.otherroute.net\/wordpress\/2010\/01\/mythtv-install-and-export-to-iphone\/","title":{"rendered":"MythTV Install and Export to iPhone"},"content":{"rendered":"<p>My MythTV backend is now working the way I&#8217;d like it to.\u00a0 I bought a HDHomerun off newegg for the 2 tuners that both handle ATSC and QAM and I like that it&#8217;s on the network.\u00a0 I have an Ubuntu machine running Karmic that I wanted to put the Myth backend on.<\/p>\n<p>The most awesome thing is that there is a MythTV package in apt.\u00a0 So the install was simple.\u00a0 Since I couldn&#8217;t remember the mysql root password (because how often do you add databases\/tables?) I had to override password and set it to something I knew and clear and reinstall the MythTV database package.\u00a0 With that done, setup was pretty straight forward:\u00a0 finding the tuners, scanning channels, adding a schedulesdirect.com account ($20 per year for listings since zap2it won&#8217;t do that for free anymore).<\/p>\n<p>The next part was exporting commercialless recordings into iPhone format.\u00a0 There is a package (again through apt) called mythexport that claims to do this.\u00a0 It handles jobs started from the Myth frontend pretty well, but required a lot of tweaking.\u00a0 Using a web browser, go to localhost\/mythexport and set up some initial settings for what you&#8217;re trying to do.\u00a0 Any jobs created probably fail now and you&#8217;ll have to make some changes.\u00a0 First add the medibuntu repository to apt and update the codecs to regain AAC audio if you&#8217;re running Karmic (apparently not a problem before).\u00a0 The command to reencode the video is in \/etc\/mythtv\/mythexport\/mythexport_settings.cfg.\u00a0 It&#8217;s the long line, you can&#8217;t miss it.\u00a0 So change the mp3 library to libfaac.\u00a0 Try exporting something, \/var\/log\/mythtv\/mythexport.log will not show you the exact errors, but will give you the command to run to try again if it did fail (it&#8217;s the command starting with &#8220;nice&#8221;).\u00a0 Copy it out and try running it yourself with different arguments until it works.<\/p>\n<p>My settings are currently (the\u00a0 &#8220;-ac 2 -ar 48000&#8221; was important and I had to add it):<\/p>\n<pre>ffmpegArgs=-y -acodec libfaac -ab 128kb -vcodec mpeg4 -b 600kb -mbd 2\r\n-flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -s 480x320 -aspect 16:9\r\n-ac 2 -ar 48000<\/pre>\n<p>And now it works!<\/p>\n<p>Also note that mythexport adds an Apache2 directory to your configuration.\u00a0 I had the Apache I got from apt configured as a public facing webserver so I had to lock down those directories with .htaccess files (iTunes will ask for the password when downloading videos in the podcast\/rss feed so it&#8217;s really not too limiting to do BasicAuth).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My MythTV backend is now working the way I&#8217;d like it to.\u00a0 I bought a HDHomerun off newegg for the 2 tuners that both handle ATSC and QAM and I like that it&#8217;s on the network.\u00a0 I have an Ubuntu &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.otherroute.net\/wordpress\/2010\/01\/mythtv-install-and-export-to-iphone\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[6,5,4],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apache","tag-apt","tag-myth"],"_links":{"self":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":7,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/34\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}