[mythtv-users] file to flash

Daryl McDonald darylangela at gmail.com
Wed Oct 16 17:31:15 UTC 2013


On Wed, Oct 16, 2013 at 11:42 AM, Eric Sharkey <eric at lisaneric.org> wrote:
> On Wed, Oct 16, 2013 at 11:27 AM, Daryl McDonald <darylangela at gmail.com> wrote:
>> I assume it's UserJob4 because you have three others defined previously?
>
> Yes.
>
>> Can you
>> please point me to a good wiki for setting up UserJobs? What I've
>> found so far is fairly vague for a newbie like myself.
>
> There's really not much to it as far as defining the script.
>
> The wiki page is here:
>
> http://www.mythtv.org/wiki/User_job
>
> If you go into mythtv-setup you can enter the name of the script to
> run for each user job including arguments to the script and what you
> want the job to be called from within the GUI.  You can also do it by
> using mythweb or directly modifying the mysql mythconverg database.
> The configuration for each job are just entries in the settings table:
>
> mysql> select * from settings where value like '%userjob%4';
> +------------------+--------------------------------------------------------------------------------+-----------+
> | value            | data
>                              | hostname  |
> +------------------+--------------------------------------------------------------------------------+-----------+
> | JobAllowUserJob4 | 1
>                              | mythtered |
> | UserJobDesc4     | Export To Portable
>                              | NULL      |
> | UserJob4         | /usr/local/bin/videoexport "%DIR%/%FILE%"
> "%TITLE%" "%STARTTIME%" "%SUBTITLE%" | NULL      |
> | AutoRunUserJob4  | 0
>                              | NULL      |
> +------------------+--------------------------------------------------------------------------------+-----------+
> 4 rows in set (0.01 sec)
>
> Eric
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users

There are really only two things I want to be able to do at this point
in time; first, remove commercials from a file. I thought I could just
transcode it after establishing a precise cut list. The few attempts
I've made at this have not removed any commercials. The wiki shows a
"remove commercials" script, would this be more effective for me when
a movie is marked not to delete?
Secondly to be able to move files to a automountable drive, Mythtv's
robust nature, wonderful as it is at allowing many ways to accomplish
any given aim, often times goes right over my head.

the Wiki you offered is the one that I've been looking at and still
have questions as far as implementation. For file to flash, I assume I
would have to edit the script you shared called "video export" into my
"/usr/local/bin" directory, right?
Then the "User Job Description could be "flash to file" or "Video Export" ?
And the "User Job Command" would be "/usr/local/bin/videoexport" ?
As to executing, I'm unclear, not from the BE, that would be
inconvenient. From the FE, or the command line?
Once this one is set-up I should be able to follow this example for
other User Jobs, ie Remove commercials, Yes?

Daryl


More information about the mythtv-users mailing list