UMP (Unified Media Platform)

4.4 Advanced Recording Settings

 

The following is a list of customizable parameters for the recording process. You can find these settings by accessing the Web Interface and navigating to Settings.

 

TV_RECORD_DIR = '/mnt/data/Recordings'

 

Here you can specify where recordings should be saved.

 

TV_RECORD_DUPLICATE_DETECTION = True

 

Here you can specify whether to attempt to detect duplicates in regular scheduled recordings.

 

TV_RECORD_ONLY_NEW_DETECTION = True

 

Here you can specify whether the record service should only record new episodes of a program.

 

TV_RECORD_CONFLICT_RESOLUTION = False

 

Here you can specify how conflicting recordings should be handled (possible values: True (start recording the second program even if the first has not finished), False (wait until first program finishes and then record the rest of the second program), None (the first recording will be recorded unless the second is a favorite))

 

TV_REC_SIZE = (768, 576)

 

Here you can specify the resolution used for recordings.

 

TV_REC_OUTFMT = 'yuy2'

 

Here you can specify the input filter used for TV recordings.

 

TV_RECORD_FILE_MASK = '%%m-%%d %%H:%%M %(progname)s - %(title)s'

 

Here you can specify the filename string for TV recordings.

 

 

 

4.4 Advanced Recording Settings (continued)

 

RECORDSERVER_CLEANUP_THRESHOLD = 1

 

Here you can specify when the record service should start deleting old recordings. The number represents the number of available gigabytes to the system.
Set to 0 to disable the function.

 

TV_RECORD_PADDING_PRE = 60

 

Here you can specify the number of seconds to start the recording before it officially starts.

 

TV_RECORD_PADDING_POST = 300

 

Here you can specify the number of seconds to keep recording after it officially ended.

 

TV_RECORD_FAVORITE_MARGIN = 45

 

Here you can specify how many items of clearance there should be, before a warning is raised.

 

VCR_PRE_REC = '/usr/sbin/alsactl restore'

 

Here you can specify any additional commands that should be executed before the recording is started. If you are going to recording from the AV inputs, you may want to set this value to ‘/usr/sbin/alsactl restore; /usr/local/bin/start-stop-osd’ which will stop the OSD if it is running, to prevent interfering with the soundtrack. Note that sound from running applications outside the OSD will be recorded too!

 

VCR_POST_REC    = ''

 

Here you can specify any additional commands that should be executed after the recording has ended.

 

4.4 Advanced Recording Settings (continued)

 

RECORDSERVER_IP = 'localhost'

 

Here you can specify which record service to use (requires multiple UMP devices).

 

RECORDSERVER_PORT = 18001

 

Here you can specify which port the external record service uses (requires multiple UMP devices).

 

RECORDSERVER_SECRET = 'secret1'

 

Here you can specify the password used for the remote record service (requires multiple UMP devices).

 

DEBUG_RECORDSERVER = True

 

Here you can specify whether to log debug output from the record service.

 

TV_RECORD_REMOVE_COMMERCIALS = False

 

Here you can specify whether to attempt to remove commercial breaks from recordings that have been made.
This has no effect on the ‘
video.removecommercials’ plugin which can be enabled and disabled separately in the Web Interface under Plugins -> Video.

Note that the CommDetect service is currently still in an experimental phase, as only limited sources are available for testing in a certain region. A few limitations have been documented and are listed below:

 

-         CommDetect processing of a file will take approximately the initial playing time to complete at a normal (PAL or NTSC) resolution.

-         The CommDetect service can NOT filter commercials on recordings via the AV input.

-         The CommDetect service can NOT filter commercials on all channels. Some channels do not (properly) differentiate between the current program and the commercial breaks

-         The CommDetect service requires a lot of processing power. This may interrupt or slow down other applications running simultaneously.

 

 

4.4 Advanced Recording Settings (continued)

 

Note that anywhere, where you specify a time and date to be used in a filename (such as for a recording), the following scheme is used:

 

%a

Locale’s abbreviated weekday name.

%A

Locale’s full weekday name.

%b

Locale’s abbreviated month name.

%B

Locale’s full month name.

%c

Locale’s appropriate date and time representation.

%d

Day of the month as a decimal number [01,31].

%f

Microsecond as a decimal number [0,999999], zero-padded on the left.

%H

Hour (24-hour clock) as a decimal number [00,23].

%I

Hour (12-hour clock) as a decimal number [01,12].

%j

Day of the year as a decimal number [001,366].

%m

Month as a decimal number [01,12].

%M

Minute as a decimal number [00,59].

%p

Locale’s equivalent of either AM or PM.

%S

Second as a decimal number [00,61].

%U

Week number of the year (Sunday as the first day of the week) as a decimal number [00,53]. All days in a new year preceding the first Sunday are considered to be in week 0.

%w

Weekday as a decimal number [0(Sunday),6].

%W

Week number of the year (Monday as the first day of the week) as a decimal number [00,53]. All days in a new year preceding the first Monday are considered to be in week 0.

%x

Locale’s appropriate date representation.

%X

Locale’s appropriate time representation.

%y

Year without century as a decimal number [00,99].

%Y

Year with century as a decimal number.

%z

UTC offset in the form +HHMM or -HHMM (empty string if the object is naive).

%Z

Time zone name.

 

 

If you change the Recording settings, you will need to restart the UMP for the settings to take effect.