Mailing List Archive

mythcommflag -j
What's the -j argument in my process list for mythcommflag?  I can't
find any mention of a -j command line argument anywhere and --help
doesn't list it, either.  When mythcommflag hangs and my script to check
for hung mythcommflag processes detects it, the script just kills the
process and I get no commercial flagging on that recording.  I would
like to try repairing the recording with the same technique I use to
repair the "Decoder error" recordings using dd to remove the first three
blocks of the recording.  I'm guessing a hung mythcommflag is the same
problem, just not as severe, where the highly compressed h264 recording
is not handled properly by MythTV.  So I'm trying to figure out what
file is being commflagged when the process hangs based on the ps output
so I can remove the first few blocks and see if it will then comm flag
without hanging.

Dave D.


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythcommflag -j [ In reply to ]
DaveD <mythtv@guiplot.com> writes:

> What's the -j argument in my process list for mythcommflag?  I can't
> find any mention of a -j command line argument anywhere and --help
> doesn't list it, either.  When mythcommflag hangs and my script to
> check for hung mythcommflag processes detects it, the script just
> kills the process and I get no commercial flagging on that recording. 
> I would like to try repairing the recording with the same technique I
> use to repair the "Decoder error" recordings using dd to remove the
> first three blocks of the recording.  I'm guessing a hung mythcommflag
> is the same problem, just not as severe, where the highly compressed
> h264 recording is not handled properly by MythTV.  So I'm trying to
> figure out what file is being commflagged when the process hangs based
> on the ps output so I can remove the first few blocks and see if it
> will then comm flag without hanging.

The jobqueue table will contain the information that you need.

https://www.mythtv.org/wiki/Jobqueue_table

For example:

mysql> select r.chanid, r.starttime, r.basename from recorded r,
jobqueue j where r.chanid=j.chanid and r.starttime=j.starttime and
j.type=0x0002 ;

select r.chanid, r.starttime, r.basename from recorded r, jobqueue j
where r.chanid=j.chanid and r.starttime=j.starttime and j.type=0x0002 ;

+--------+---------------------+-------------------------+
| chanid | starttime | basename |
+--------+---------------------+-------------------------+
| 1031 | 2020-07-29 22:59:00 | 1031_20200729225900.ts |
| 1031 | 2020-07-30 22:00:00 | 1031_20200730220000.mkv |
| 1031 | 2020-07-30 22:59:00 | 1031_20200730225900.ts |
| 1031 | 2020-07-31 22:00:00 | 1031_20200731220000.ts |
| 1031 | 2020-07-31 22:59:00 | 1031_20200731225900.ts |
| 1061 | 2020-07-31 09:00:00 | 1061_20200731090000.ts |
| 1061 | 2020-08-01 09:00:00 | 1061_20200801090000.ts |
| 1071 | 2020-08-01 17:00:00 | 1071_20200801170000.ts |
| 1091 | 2020-07-30 21:30:00 | 1091_20200730213000.mkv |
| 1091 | 2020-07-31 02:00:00 | 1091_20200731020000.mkv |
| 1091 | 2020-07-31 21:30:00 | 1091_20200731213000.mkv |
+--------+---------------------+-------------------------+

Mind you, mythcommflag frequently hangs on my recordings and there are
no issues with them that are similar to what you have described
elsewhere.

Leo
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythcommflag -j [ In reply to ]
On 8/1/20 1:15 PM, DaveD wrote:
> What's the -j argument in my process list for mythcommflag?  I can't find any mention of a -j command line argument anywhere and --help doesn't
> list it, either.  When mythcommflag hangs and my script to check for hung mythcommflag processes detects it, the script just kills the process
> and I get no commercial flagging on that recording.  I would like to try repairing the recording with the same technique I use to repair the
> "Decoder error" recordings using dd to remove the first three blocks of the recording.  I'm guessing a hung mythcommflag is the same problem,
> just not as severe, where the highly compressed h264 recording is not handled properly by MythTV.  So I'm trying to figure out what file is
> being commflagged when the process hangs based on the ps output so I can remove the first few blocks and see if it will then comm flag without
> hanging.
>
> Dave D.

Use mythcommflag --help j (or jobid).

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: mythcommflag -j [ In reply to ]
On 8/1/20 1:35 PM, Bill Meek wrote:
> On 8/1/20 1:15 PM, DaveD wrote:
>> What's the -j argument in my process list for mythcommflag?  I can't
>> find any mention of a -j command line argument anywhere and --help
>> doesn't list it, either.  When mythcommflag hangs and my script to
>> check for hung mythcommflag processes detects it, the script just
>> kills the process and I get no commercial flagging on that
>> recording.  I would like to try repairing the recording with the same
>> technique I use to repair the "Decoder error" recordings using dd to
>> remove the first three blocks of the recording.  I'm guessing a hung
>> mythcommflag is the same problem, just not as severe, where the
>> highly compressed h264 recording is not handled properly by MythTV. 
>> So I'm trying to figure out what file is being commflagged when the
>> process hangs based on the ps output so I can remove the first few
>> blocks and see if it will then comm flag without hanging.
>>
>> Dave D.
>
> Use mythcommflag --help j (or jobid).

Ah, I figured it was a job number and Leo's reply pointed me at the
right table (jobqueue).  A join with the recorded table yields the
basename:

SELECT basename from jobqueue, recorded where recorded.chanid =
jobqueue.chanid AND recorded.starttime = jobqueue.starttime AND
jobqueue.id = NUMBER_FROM_HUNG_PROCESS (the -j parameter sent to
mythcommflag).

Thanks!  I'll post the results of my attempts to repair (or prepare?)
the recording so mythcommflag can process it without hanging.

Dave D.


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org