My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
MDDConf  
Guide to MDD configuration
Updated Aug 11, 2011 by foobum

MDD Configuration

MDD does not require any configuration. However, you can modify some settings by editing /etc/mdd.conf.

Configuration Parameters

ParameterValueDefaultDescription
debugtrue or falsefalseSetting debug to true makes MDD write extra information in the log
logfilepath/tmp/mdd.logSet the path of MDD's log file
userusernamemddSet the username that mdd will switch to if it's run as root
cmuxtrue or falsetrueEnable or disable MDD's CMux module
cmux_extra_portsSpace separated list of port numbersNoneA list of extra ports that CMux will permit connections to
commandname => commandNoneA MDD command that will be available from MythDroid, multiple definitions are permitted
streamcommandSee Streaming GuideSee Streaming Guide

Syntax

Parameter definitions must be one per line. Lines beginning with a '#' character are ignored. Long lines can be split with the '\' character.

Default mdd.conf

# Turn debug mode on or off
# debug = false

# Set log file location
# logfile = /tmp/mdd.log

# Set the user that mdd will chuid to
# user = mdd

# Enable or disable MDD's connection muxer
# cmux = true

# Add to CMux's list of ports it's allowed to open connections to
# cmux_extra_ports = 80 443

# MDD commands
# command = Sleep => dbus-send --system --dest=org.freedesktop.DeviceKit.Power\
#  /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend

# Custom streaming command
# Variables:
#   %FILE% will be substituted with the filename
#   %VB% will be substituted with the video bitrate in kb/s
#   %AB% will be substituted with the audio bitrate in kb/s
#   %WIDTH% will be substituted with the desired video width in pixels
#   %HEIGHT% will be substituted with the desired video height in pixels
#   %THR% will be substituted with the number of cpus available
#   Mythdroid requires that the sdp be available at rtsp://host:5554/stream
#   Mythdroid expects, but doesn't require, a VLC rc interface on tcp port 16547
# stream = /usr/bin/vlc -vvv -I oldrc --rc-host 0.0.0.0:16547 --rc-fake-tty \
# --file-caching=2000 %FILE% --sout='#transcode{vcodec=h264\
# ,venc=x264{no-cabac,level=30,keyint=50,ref=4,bframes=0,bpyramid=none,\
# profile=baseline,no-weightb,weightp=0,no-8x8dct,trellis=0},vb=%VB%,\
# threads=%THR%,deinterlace,acodec=mp4a,samplerate=48000,ab=%AB%,channels=2,\
# audio-sync}:rtp{sdp=rtsp://0.0.0.0:5554/stream}' 2>&1
Comment by jpavli...@gmail.com, Dec 16, 2011

Make sure, that all storagegroup's dirnames in the db has the / in it's tails. My old and many times updated db missing the / in the default group causing error Couldn't find xxxx.mpg in SG Default. (found in /tmp/mdd.log)

my db list: mysql> select from storagegroup;

+----+-------------+----------+------------------------------+
| id | groupname   | hostname | dirname                      |
+----+-------------+----------+------------------------------+
|  1 | Default     | tv       | /var/lib/mythtv/recordings   |
|  2 | Videos      | tv       | /var/lib/mythtv/videos/      |
|  3 | Fanart      | tv       | /var/lib/mythtv/fanart/      |
|  4 | Trailers    | tv       | /var/lib/mythtv/trailers/    |
|  5 | Coverart    | tv       | /var/lib/mythtv/coverart/    |
|  7 | Screenshots | tv       | /var/lib/mythtv/screenshots/ |
|  8 | Banners     | tv       | /var/lib/mythtv/banners/     |
|  9 | DB Backups  | tv       | /var/lib/mythtv/db_backups/  |
| 10 | LiveTV      | tv       | /var/lib/mythtv/livetv/      |
+----+-------------+----------+------------------------------+

I must made:

mysql -p mythconverg
update storagegroup set dirname='/var/lib/mythtv/recordings/' where id=1;
quit
Comment by to...@toddbailey.net, Jan 22, 2012

More detail needed on what these setting mean and operation/features they perform/supply. IE cmux 7 cmux_extra_ports


Sign in to add a comment
Powered by Google Project Hosting