User Tools

Site Tools


computers:server:mythbuntu1104

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:server:mythbuntu1104 [2011/05/28 17:49] davidcomputers:server:mythbuntu1104 [2012/05/19 17:18] (current) – [Filename Symbolic Links] david
Line 155: Line 155:
       * Enable Password Protection       * Enable Password Protection
  
 +===== Tweaks =====
 +
 +==== Filename Symbolic Links ====
 +
 +So that the samba share is actually useful, I will make a cron job that will every day build a list of links to the recorded shows.
 +
 +
 +  - Download the [[http://www.mythtv.org/wiki/Mythname.pl|mythname.pl]] script.  I think I modified it, so just in case here is the version that runs on mythth now: {{:computers:server:mythname.pl.zip|}}
 +  - Place that perl script in **/usr/local/bin**
 +  - Make a directory / home for the symbolic links <code>
 +sudo mkdir /var/lib/mythtv/recordings/links/
 +</code>
 +  - Place the following script in **mythtv_cronjob_symlink_recordings.sh** <code bash>
 +#!/bin/bash
 +find /var/lib/mythtv/recordings/links/ -type l -exec rm {} \;
 +cd /var/lib/mythtv/recordings/links/
 +for filename in /var/lib/mythtv/recordings/*.mpg
 +do
 +  # windows did not like the colons in the name, so changing to underscores and periods
 +  fname=`/usr/local/bin/mythname.pl --rep=. --subtitle $filename | tr : _ | tr ';.' .`.mpg
 +  ##### no need to echo for a cron job ##### echo "Linking $filename to $fname"
 +  ln -s $filename $fname
 +done
 +exit 0
 +</code>
 +  - Copy that file into **/etc/cron.daily/** (NOTE:  This will NOT work, because cron jobs cannot have .sh extensions!)  --- //[[david@lattice.net|David Lloyd Rabine]] 2012/05/19 13:17//<code>
 +sudo cp mythtv_cronjob_symlink_recordings.sh /etc/cron.daily/
 +</code>
 +  - Set the ownership and permissions <code>
 +sudo chown root:root /etc/cron.daily/mythtv_cronjob_symlink_recordings.sh
 +sudo chmod 755 /etc/cron.daily/mythtv_cronjob_symlink_recordings.sh
 +</code>
 +  - I added these lines to **/etc/samba/smbd.conf** trying to get the links to work <code>
 +follow symlinks = yes
 +unix extensions = no
 +wide links = yes
 +</code>
 ====== Frontend ====== ====== Frontend ======
  
Line 177: Line 214:
   - Modified the Audio output to use S/PDIF:   - Modified the Audio output to use S/PDIF:
     - Utilities / Setup -> Setup -> General -> Page 4     - Utilities / Setup -> Setup -> General -> Page 4
-      - Speaker Configuration from **Stereo** to **5.1**  NOTE:  This seems to BREAK my audio now?!  If I leave it stereo it works. +      - <del>Speaker Configuration from **Stereo** to **5.1**</del>  NOTE:  This seems to BREAK my audio now?!  If I leave it stereo it works. 
-      - Upmix:  **Best**+      - <del>Upmix:  **Best**</del>
       - Audio Processing Capabilities:  Check both **Dolby Digital** AND **DTS**       - Audio Processing Capabilities:  Check both **Dolby Digital** AND **DTS**
   - Set our VIDEO output to VDPAU:   - Set our VIDEO output to VDPAU:
Line 242: Line 279:
   - Go to Utilities / Setup -> Setup -> Media Settings -> Video Settings -> General Settings:  /var/lib/mythtv/video as Directories that hold videos   - Go to Utilities / Setup -> Setup -> Media Settings -> Video Settings -> General Settings:  /var/lib/mythtv/video as Directories that hold videos
  
 +==== Media Types ====
 +
 +=== mkv ===
 +
 +I was having some issues with the internal player not hanging very well with high definition content, so I modified the video player setup to use **mplayer**
 +
 +  - Surf in the mythtv setup to this menu structure:  Utilities / Setup -> Setup -> Media Settings -> Video Settings -> File Types
 +  - Change the extension to "mkv"
 +  - Enter the following command into the **Command:** line <code>
 +
 +mplayer -cache=16384 -cache-min=10 -fs -zoom -quiet -nosub -vo vdpau -vc ffh264vdpau -heartbeat-cmd "xscreensaver-command -deactivate" %s
 +</code>
 +    * the **-vc** call makes a huge difference in CPU usage (from 50% to 2% doing a 1080p video) (I thought the **-vo** would do it on its own but it does not)
 +    * the **-heartbeat-cmd "xscreensaver-command -deactivate"** keeps the screen from blanking every 10 minutes or so
 ===== Trouble Shooting ===== ===== Trouble Shooting =====
  
computers/server/mythbuntu1104.1306604958.txt.gz · Last modified: 2011/05/28 17:49 by david