[http://knoppmythwiki.org/index.php?page=CopyAndTranscode Here] is an example job that copies a recording before transcoding it.

−

−

I have the following setup to generate cutlist|UserJobDesc1 | Generate Cutlist |

−

|UserJob1 | /usr/bin/mythcommflag --queue --gencutlist -f %FILE% |

== User Job arguments ==

== User Job arguments ==

−

A user job is just a program or script which is passed some arguments to tell it what recording to perform work on. Either the channel and start time, or the directory and filename, should be sufficient to uniquely identify the recording. Any of the following four arguments are useful for User Jobs:

+

A user job is just a program or script which is passed some arguments to tell it what recording to perform work on. Either the channel and start time, or the directory and filename, should be sufficient to uniquely identify the recording.

{|border="1"

{|border="1"

Line 36:

Line 31:

|%FILE%

|%FILE%

|The file name

|The file name

−

|}

+

|-

−

+

−

{|border="1"

+

−

|+advanced User Job options

+

|-

|-

|%TITLE%

|%TITLE%

Line 101:

Line 93:

| /usr/bin/mythcommflag -s %STARTTIME% -c %CHANID% --gencutlist

| /usr/bin/mythcommflag -s %STARTTIME% -c %CHANID% --gencutlist

| Imports the flagged commercials into the cutlist

| Imports the flagged commercials into the cutlist

+

|-

+

| /usr/bin/mythcommflag --queue --gencutlist -f %FILE%

+

| Imports the flagged commercials into the cutlist

+

|-

+

| [http://knoppmythwiki.org/index.php?page=CopyAndTranscode Here]

+

| Copies a recording before transcoding it

|}

|}

[[Category:HOWTO]]

[[Category:HOWTO]]

Revision as of 06:45, 2 February 2007

User Jobs are programs which can act on MythTV recordings. A MythTV system currently supports four User Jobs

Adding a User Job

There are two ways to add a User Job into the system:

1) In the mythtv-setup program

2) By using some SQL statements to insert the job directly. For example, a hypothetical job which edits bad language:

User Job arguments

A user job is just a program or script which is passed some arguments to tell it what recording to perform work on. Either the channel and start time, or the directory and filename, should be sufficient to uniquely identify the recording.