[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Howto: Updated - Get mythtv playback nice and pretty WORKING!
11-23-2009, 05:36 AM
Post: #1
Howto: Get mythtv playback nice and pretty WORKING!
Ok.. This is a somewhat easy workaround for mythtv...
all the other things have you hacking code and doing wacky stuff..

1) Use the mythpretty.sh script, to rename your files and make nice pretty directories
I have this set as UserJob1 /usr/local/bin/mythpretty.sh %DIR% %FILE%
Mine directory structure looks like this after mythpretty is run...
t/v/export/Show_name/episode_name
example;
/tv/export/Fringe/A New Day in the Old Town-2009-09-17.mpg
2) I would recommend installing webmin on your mythbackend it makes things a whole lot easier...
Set up some exports:
Start Webmin and go to: Servers>Samba Windows File Sharing
I have my mythpretty.sh putting the nice directories and file names in the export dir and my recordings are held in the recordings directory (im not positive you have to do both of these or not, but I could not get things to work with NFS so...
Share Name Path Security
export /tv/export Read only to everyone
recordings /tv/recordings Read only to everyone
3) On your popcorn hour you can browse to your recordings from the network browser now,
Or...
Go to Setup>Network Share>Browse (select your mythbackend, then the export (mythpretty) directory, and name it something like MythTV

And now from the main menu you can select MythTV browse through the directory structure, and play your recordings..

One thing of note, you may want to name your files with the date first to make them easier to scroll through...

Hopefully sometime they get the UPNP working correctly for Mythtv.. (it sure would be nice to have all the other options that come with UPnp like, sorting by when recorded, show name etc) but until then, this works....
Find all posts by this user
08-29-2010, 08:40 AM (This post was last modified: 09-02-2010 11:16 AM by chris57.)
Post: #2
Howto: Updated - Get mythtv playback nice and pretty WORKING!
I just updated now running mythbuntu 10.4, and spent the last 5 or 6 hours working on this again...

Linux and MythTV have changed things around a bit... so symlinks are no longer followed..

But wait there's more.... there is no longer a mythpretty.sh script which actually pointed to mythrename.pl which does not exist anymore.

Sounds bad, but it's not that bad.

There are a couple things you need to do in addition and differently from last time, but the for the base configuration of samba, and the popcorn hours

First instead of mythrename.pl or mythpretty.sh you will need to run mythlink.pl (located /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl)

This is create your nice and pretty symlinks that are actually readable.

The second thing you need to do is tell samba to follow symlinks, this is actually accomplished by adding 3 lines to the [general] section in the smb.conf file.

So edit /etc/samba/smb.conf
and add these three lines:
unix extensions = no
follow symlinks = yes
wide links = yes

and when your done your global section looks like this:
[global]
dns proxy = no
log file = /var/log/samba/log.%m
server string = %h server (Samba, Mythbuntu)
workgroup = WORKGROUP
os level = 20
security = share
syslog = 0
panic action = /usr/share/samba/panic-action %d
max log size = 1000
unix extensions = no
follow symlinks = yes
wide links = yes

Now you need to bounce the service. (oh wait they changed this too no more init.d)
service smbd stop
service smbd start


For more information see the other post:
http://www.networkedmediatank.com/showth...?tid=31805
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How do I get a remote app working? jonnybg 8 1,361 11-27-2012 04:28 PM
Last Post: jonnybg
  [HOWTO] Ralink RT2870 wifi chipset artbern 8 11,298 02-04-2012 09:13 PM
Last Post: anilech
  HOWTO: Windows 7 ext2/3 support - update? Minok 6 9,748 12-25-2011 09:37 PM
Last Post: newmediawhisperer
  HOWTO: Mount NMT share on Windows Mobile mkkm 0 2,701 12-25-2010 02:53 PM
Last Post: mkkm
Lightning Internet Radio working 8pm 2 3,337 06-21-2010 09:00 AM
Last Post: antherion
  HOWTO: Windows 7 ext2/3 support [USB-Slave] DeliriumNL 35 197,687 02-21-2010 12:57 AM
Last Post: maxyvan98
  HOWTO: installing telnetd &apps from USB via PC w/o internal disk java.lang 14 13,706 12-27-2009 06:39 PM
Last Post: rastin
  HOWTO: C-200 - Use a Harmony Infrared Remote smeghead 1 5,223 12-13-2009 12:48 PM
Last Post: lanthor
Information HOWTO: Linux/MacOS X automated DVD/VOB/M2TS to MKV with subs/audio tracks/chapters grok 35 51,897 12-07-2009 09:30 PM
Last Post: yonux
  [HOWTO] Replace your usb adapter by a wireless bridge Shaika-Dzari 6 10,747 10-16-2009 05:31 PM
Last Post: chris57

Forum Jump: