Opened 13 years ago

Closed 9 years ago

#3126 closed enhancement (Won't Fix)

[PATCH] Enable JOBQUEUE remote control using mythprotocol

Reported by: morpheuz@… Owned by: cpinkham
Priority: minor Milestone: unknown
Component: MythTV - General Version: head
Severity: medium Keywords: mythtranscode remote transcode frontend
Cc: Rob Smith Ticket locked: no

Description

With this patch, I added an entry at MythProtocol? so remote frontends can request, for the backend, the transcode of files.

Sintax of msg:

START_TRANSCODE_DISK FILE TRANSCODE_PROFILE e.g.: START_TRANSCODE_DISK 1000_20061207123000.nuv High Quality

STOP_TRANSCODE_DISK FILE e.g.: STOP_TRANSCODE_DISK 1000_20061207123000.nuv

The backend will answer with an "OK" if the job was correctly inserted in the queue or "ERROR" if something went wrong (e.g.: there is no such transcode profile).

Attachments (4)

patch (7.5 KB) - added by morpheuz@… 13 years ago.
Patch against svn tree using "svn diff"
patch3126_2.gz (2.8 KB) - added by morpheuz@… 13 years ago.
Second patch (controll jobqueue now)
patch3126_2.2.gz (2.9 KB) - added by morpheuz@… 13 years ago.
Second patch (control jobqueue now) - Bug fixed
patch3126_2.3.gz (2.9 KB) - added by morpheuz@… 13 years ago.
Second patch (control jobqueue now) - Another bug fixed

Download all attachments as: .zip

Change History (11)

Changed 13 years ago by morpheuz@…

Attachment: patch added

Patch against svn tree using "svn diff"

comment:1 Changed 13 years ago by morpheuz@…

Summary: [PATCH] Enable remote front end start/stop transcoding of file in the backend[PATCH] Enable JOBQUEUE remote control using mythprotocol

Using Captain Murdoch and xris's suggestions changed somethings:

Now we can handle any kind of JOBQUEUE operation, instead of just handling transcode as before.
Sintax:
JOBQUEUE ADD <TYPE> <CHANID> <STARTTIME> <OPTIONS>

You can use ADD, STOP, RESTART, RESUME, PAUSE as what I call "actions".
There is the need to code this actions for another type of jobs, but the "cases" are all in the code. TRANSCODE is already working 100%.
Sintax for transcoding:

JOBQUEUE ADD JOB_TRANSCODE <CHANID> <STARTTIME> JOB_USE_CUTLIST JOB_OUTPUT <outfile> <PROFILE>

eg: JOBQUEUE ADD JOB_TRANSCODE 1000 2006-12-07T12:30:00 JOB_USE_CUTLIST JOB_OUTPUT /tmp/test.nuv High Quality

Changed 13 years ago by morpheuz@…

Attachment: patch3126_2.gz added

Second patch (controll jobqueue now)

Changed 13 years ago by morpheuz@…

Attachment: patch3126_2.2.gz added

Second patch (control jobqueue now) - Bug fixed

Changed 13 years ago by morpheuz@…

Attachment: patch3126_2.3.gz added

Second patch (control jobqueue now) - Another bug fixed

comment:2 Changed 13 years ago by cpinkham

Cc: cpinkham@… removed
Owner: changed from Isaac Richards to cpinkham

comment:3 Changed 13 years ago by Janne Grunau

Type: patchenhancement
Version: 0.20head

comment:4 Changed 11 years ago by Rob Smith

Cc: Rob Smith added

comment:5 Changed 11 years ago by Dibblah

Status: newassigned

comment:6 Changed 10 years ago by stuartm

Component: mythtvMythTV - General

comment:7 Changed 9 years ago by cpinkham

Resolution: Won't Fix
Status: assignedclosed

Closing this since the Raymond Wagner is currently working on a major rework of the JobQueue? which should include this functionality since there will be a true job scheduler added that will be event driven.

Note: See TracTickets for help on using tickets.