[mythtv-commits] Ticket #13335: mythcommflag: add 3 settings to enhance logo detection

MythTV noreply at mythtv.org
Tue Oct 30 17:27:10 UTC 2018


#13335: mythcommflag: add 3 settings to enhance logo detection
-----------------------------------+------------------------------
 Reporter:  hamelg                 |          Owner:  cpinkham
     Type:  Patch - Feature        |         Status:  new
 Priority:  minor                  |      Milestone:  needs_triage
Component:  MythTV - Mythcommflag  |        Version:  Master Head
 Severity:  medium                 |     Resolution:
 Keywords:                         |  Ticket locked:  0
-----------------------------------+------------------------------

Comment (by hamelg):

 I downloaded your sample.

 I cut the 1st minute :
 {{{
 $ ffmpeg -i sample8.ts -vcodec copy -acodec copy -ss 00:01:00 z.ts
 }}}
 Then I flagged with :
 {{{
 $ cat mythcommflag-override2
 CommDetectLogoSamplesNeeded=30
 CommDetectLogoSampleSpacing=2
 commDetectLogoLocation=NE
 commDetectLogoWidthRatio=6
 commDetectLogoHeightRatio=8
 CommDetectLogoBorder=64
 CommercialSkipMethod=4

 $ mythcommflag/mythcommflag --noprogress -v commflag:debug --override-
 settings-file mythcommflag-override2 --method 4  --skipdb --outputmethod
 full --outputfile output.txt -f ./z.ts
 }}}
 And it works !

 To understand the meaning of the parameters and stats in the output file,
 reading the code and resources below should help :
 * https://www.mythtv.org/wiki/Mythcommflag
 *
 https://github.com/MythTV/mythtv/blob/master/mythtv/programs/mythcommflag/README.txt
 * https://www.mythtv.org/wiki/Commercial_detection

 You get -1 everywhere in output file because you have selected the logo
 method only. I have tested  other methods and combinations, method=4 is
 the most reliable if a logo is available.

 To enable the debug mode, you must uncomment
  // #define SHOW_DEBUG_WIN
 in commercial_debug.h and recompile.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13335#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list