[mythtv-commits] Ticket #13335: mythcommflag: add 3 settings to enhance logo detection
MythTV
noreply at mythtv.org
Wed Oct 31 12:59:24 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 warpme):
FYI: I rebuild whole mythtv basing on Your sources
(https://github.com/hamelg/mythtv/tree/gha-debug) and without any patches.
Issue seems to be exactly the same. here is console log:
{{{
MythTV Commercial Flagger, flagging commercials for:
/myth/tv/23809_20181025181500.ts
2018-10-31 13:40:16.887245 C mythcommflag version: gha-debug [v30-Pre-
3d30b916cfe] www.mythtv.org
2018-10-31 13:40:16.887265 C Qt version: compile: 5.5.1, runtime: 5.5.1
2018-10-31 13:40:16.887267 N Enabled verbose msgs: general commflag
2018-10-31 13:40:16.887276 N Setting Log Level to LOG_INFO
2018-10-31 13:40:16.897836 I Added logging to the console
2018-10-31 13:40:16.898162 I Setup Interrupt handler
2018-10-31 13:40:16.898173 I Setup Terminated handler
2018-10-31 13:40:16.898179 I Setup Segmentation fault handler
2018-10-31 13:40:16.898185 I Setup Aborted handler
2018-10-31 13:40:16.898192 I Setup Bus error handler
2018-10-31 13:40:16.898197 I Setup Floating point exception handler
2018-10-31 13:40:16.898204 I Setup Illegal instruction handler
2018-10-31 13:40:16.898210 I Setup Real-time signal 0 handler
2018-10-31 13:40:16.898218 I Setup Hangup handler
2018-10-31 13:40:16.898314 N Using runtime prefix = /usr
2018-10-31 13:40:16.898317 N Using configuration directory =
/root/.mythtv
2018-10-31 13:40:16.898374 I Assumed character encoding: en_US.UTF8
2018-10-31 13:40:16.898380 W This application expects to be running a
locale that specifies a UTF-8 codeset, and many features may behave
improperly with your current language settings. Please set the LC_ALL or
LC_CTYPE, and LANG variable(s) in the environment in which this program is
executed to include a UTF-8 codeset (such as 'en_US.UTF-8').
2018-10-31 13:40:16.898665 N Setting QT default locale to en_US
2018-10-31 13:40:16.898674 I Current locale en_US
2018-10-31 13:40:16.898706 N Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2018-10-31 13:40:16.899436 N Setting 'CommDetectLogoBorder' being forced
to '64'
2018-10-31 13:40:16.899445 N Setting 'CommDetectLogoSampleSpacing' being
forced to '2'
2018-10-31 13:40:16.899453 N Setting 'CommDetectLogoSamplesNeeded' being
forced to '30'
2018-10-31 13:40:16.899459 N Setting 'CommercialSkipMethod' being forced
to '4'
2018-10-31 13:40:16.899465 N Setting 'commDetectLogoHeightRatio' being
forced to '8'
2018-10-31 13:40:16.899471 N Setting 'commDetectLogoLocation' being
forced to 'NE'
2018-10-31 13:40:16.899476 N Setting 'commDetectLogoWidthRatio' being
forced to '6'
2018-10-31 13:40:16.900227 I Loading en_us translation for module
mythfrontend
Finding Logo2018-10-31 13:40:17.157176 I AFD: codec MP2 has 2 channels
2018-10-31 13:40:17.158664 I AFD: Opened codec 0xdd0040, id(MP2)
type(Audio)
2018-10-31 13:40:17.158969 I AFD: codec AC3 has 2 channels
2018-10-31 13:40:17.159345 I AFD: Opened codec 0xdc3080, id(AC3)
type(Audio)
2018-10-31 13:40:17.159445 I AFD: Opened codec 0xdd56c0, id(DVB_SUBTITLE)
type(Subtitle)
2018-10-31 13:40:17.159604 I AFD: Using ffmpeg for video decoding
2018-10-31 13:40:17.159737 I AFD: Opened codec 0xdd64c0, id(H264)
type(Video)
2018-10-31 13:40:17.160084 I Commercial Detection initialized: width =
1920, height = 1080, fps = 50, method = 4
2018-10-31 13:40:17.160093 I Using Sample Spacing of 10 horizontal & 10
vertical pixels.
2018-10-31 13:40:17.160116 I CommDetect::ClearAllMaps()
2018-10-31 13:40:17.195132 I Finding Logo
2018-10-31 13:40:17.195138 I Searching for Station Logo
2018-10-31 13:40:17.195149 I Trying with edgeDiff == 5,
minPixelsInMask=1800
2018-10-31 13:40:17.346299 I MythCodecContext: Disabled hardware decoder
based deinterlacer.
2018-10-31 13:40:22.875773 I Analyzing edge data
2018-10-31 13:40:22.882108 I SetLogoMaskArea()
2018-10-31 13:40:22.887979 I SetLogoMaskArea()
2018-10-31 13:40:22.893286 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:22.893296 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (4). Not within specified limits.
2018-10-31 13:40:22.893299 I Trying with edgeDiff == 7,
minPixelsInMask=1800
2018-10-31 13:40:28.168219 I Analyzing edge data
2018-10-31 13:40:28.174568 I SetLogoMaskArea()
2018-10-31 13:40:28.179769 I SetLogoMaskArea()
2018-10-31 13:40:28.184990 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:28.185002 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:28.185006 I Trying with edgeDiff == 10,
minPixelsInMask=1800
2018-10-31 13:40:33.014690 I Analyzing edge data
2018-10-31 13:40:33.020929 I SetLogoMaskArea()
2018-10-31 13:40:33.026587 I SetLogoMaskArea()
2018-10-31 13:40:33.031891 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:33.031902 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:33.031906 I Trying with edgeDiff == 15,
minPixelsInMask=1800
2018-10-31 13:40:37.883711 I Analyzing edge data
2018-10-31 13:40:37.889975 I SetLogoMaskArea()
2018-10-31 13:40:37.895272 I SetLogoMaskArea()
2018-10-31 13:40:37.900502 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:37.900512 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:37.900515 I Trying with edgeDiff == 20,
minPixelsInMask=1800
2018-10-31 13:40:42.715928 I Analyzing edge data
2018-10-31 13:40:42.722408 I SetLogoMaskArea()
2018-10-31 13:40:42.727918 I SetLogoMaskArea()
2018-10-31 13:40:42.733123 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:42.733133 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:42.733136 I Trying with edgeDiff == 30,
minPixelsInMask=1800
2018-10-31 13:40:47.588728 I Analyzing edge data
2018-10-31 13:40:47.594996 I SetLogoMaskArea()
2018-10-31 13:40:47.600298 I SetLogoMaskArea()
2018-10-31 13:40:47.605765 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:47.605776 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:47.605779 I Trying with edgeDiff == 40,
minPixelsInMask=1800
2018-10-31 13:40:52.438946 I Analyzing edge data
2018-10-31 13:40:52.445310 I SetLogoMaskArea()
2018-10-31 13:40:52.450462 I SetLogoMaskArea()
2018-10-31 13:40:52.455661 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:52.455672 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:52.455675 I Trying with edgeDiff == 50,
minPixelsInMask=1800
2018-10-31 13:40:57.282675 I Analyzing edge data
2018-10-31 13:40:57.289064 I SetLogoMaskArea()
2018-10-31 13:40:57.294274 I SetLogoMaskArea()
2018-10-31 13:40:57.299514 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:40:57.299525 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:40:57.299529 I Trying with edgeDiff == 60,
minPixelsInMask=1800
2018-10-31 13:41:02.144710 I Analyzing edge data
2018-10-31 13:41:02.151176 I SetLogoMaskArea()
2018-10-31 13:41:02.156448 I SetLogoMaskArea()
2018-10-31 13:41:02.161726 I Testing Logo area: topleft (1914,1074),
bottomright (5,5)
2018-10-31 13:41:02.161737 I Rejecting Logo area: topleft (1914,1074),
bottomright (5,5), pixelsInMask (0). Not within specified limits.
2018-10-31 13:41:02.163234 N No suitable logo area found.
2018-10-31 13:41:02.223489 I CommDetect::SetVideoParams called with
aspect = 1.77778
2018-10-31 13:41:02.714147 I 0% Completed @ 203.666 fps.
2018-10-31 13:43:03.431237 I 10% Completed @ 123.754 fps.
2018-10-31 13:45:08.810609 I 20% Completed @ 121.661 fps.
2018-10-31 13:47:03.476671 I 30% Completed @ 124.29 fps.
2018-10-31 13:48:59.563634 I 40% Completed @ 125.487 fps.
2018-10-31 13:50:48.241641 E decoding error End of file (-541478725)
2018-10-31 13:50:48.247003 E decoding error End of file (-541478725)
2018-10-31 13:50:48.256679 E decoding error End of file (-541478725)
2018-10-31 13:50:48.267385 E decoding error End of file (-541478725)
2018-10-31 13:50:48.277006 E decoding error End of file (-541478725)
2018-10-31 13:50:48.286666 E decoding error End of file (-541478725)
2018-10-31 13:50:48.297360 E decoding error End of file (-541478725)
2018-10-31 13:50:48.306983 E decoding error End of file (-541478725)
2018-10-31 13:50:48.317683 E decoding error End of file (-541478725)
2018-10-31 13:50:48.327309 E decoding error End of file (-541478725)
2018-10-31 13:50:48.337035 E decoding error End of file (-541478725)
2018-10-31 13:50:48.347842 E decoding error End of file (-541478725)
2018-10-31 13:50:48.357562 E decoding error End of file (-541478725)
2018-10-31 13:50:48.367248 E decoding error End of file (-541478725)
2018-10-31 13:50:48.378006 E decoding error End of file (-541478725)
2018-10-31 13:50:48.387667 E decoding error End of file (-541478725)
2018-10-31 13:50:48.397291 E decoding error End of file (-541478725)
2018-10-31 13:50:48.407980 E decoding error End of file (-541478725)
2018-10-31 13:50:48.417640 E decoding error End of file (-541478725)
2018-10-31 13:50:48.428349 E decoding error End of file (-541478725)
2018-10-31 13:50:48.437985 E decoding error End of file (-541478725)
2018-10-31 13:50:48.448634 E decoding error End of file (-541478725)
2018-10-31 13:50:48.458293 E decoding error End of file (-541478725)
2018-10-31 13:50:48.467931 E decoding error End of file (-541478725)
2018-10-31 13:50:48.478654 E decoding error End of file (-541478725)
2018-10-31 13:50:48.488412 E decoding error End of file (-541478725)
2018-10-31 13:50:48.498094 E decoding error End of file (-541478725)
2018-10-31 13:50:48.508789 E decoding error End of file (-541478725)
2018-10-31 13:50:48.518415 E decoding error End of file (-541478725)
2018-10-31 13:50:48.529121 E decoding error End of file (-541478725)
2018-10-31 13:50:48.538761 E decoding error End of file (-541478725)
2018-10-31 13:50:48.548398 E decoding error End of file (-541478725)
2018-10-31 13:50:48.559087 E decoding error End of file (-541478725)
2018-10-31 13:50:48.568738 E decoding error End of file (-541478725)
2018-10-31 13:50:48.579422 E decoding error End of file (-541478725)
2018-10-31 13:50:48.589090 E decoding error End of file (-541478725)
2018-10-31 13:50:48.598799 E decoding error End of file (-541478725)
2018-10-31 13:50:48.609596 E decoding error End of file (-541478725)
2018-10-31 13:50:48.619340 E decoding error End of file (-541478725)
2018-10-31 13:50:48.629064 E decoding error End of file (-541478725)
2018-10-31 13:50:48.639857 E decoding error End of file (-541478725)
2018-10-31 13:50:48.649592 E decoding error End of file (-541478725)
2018-10-31 13:50:48.659318 E decoding error End of file (-541478725)
2018-10-31 13:50:48.670071 E decoding error End of file (-541478725)
2018-10-31 13:50:48.679768 E decoding error End of file (-541478725)
2018-10-31 13:50:48.689487 E decoding error End of file (-541478725)
2018-10-31 13:50:48.700277 E decoding error End of file (-541478725)
2018-10-31 13:50:48.709988 E decoding error End of file (-541478725)
2018-10-31 13:50:48.719714 E decoding error End of file (-541478725)
2018-10-31 13:50:48.729482 E decoding error End of file (-541478725)
2018-10-31 13:50:48.740258 E decoding error End of file (-541478725)
2018-10-31 13:50:48.749931 E decoding error End of file (-541478725)
2018-10-31 13:50:48.760630 E decoding error End of file (-541478725)
2018-10-31 13:50:48.770255 E decoding error End of file (-541478725)
2018-10-31 13:50:48.779920 E decoding error End of file (-541478725)
2018-10-31 13:50:48.790714 E decoding error End of file (-541478725)
2018-10-31 13:50:48.800432 E decoding error End of file (-541478725)
2018-10-31 13:50:48.810158 E decoding error End of file (-541478725)
2018-10-31 13:50:48.820976 E decoding error End of file (-541478725)
2018-10-31 13:50:48.830693 E decoding error End of file (-541478725)
2018-10-31 13:50:48.840446 E decoding error End of file (-541478725)
2018-10-31 13:50:48.851233 E decoding error End of file (-541478725)
2018-10-31 13:50:48.860966 E decoding error End of file (-541478725)
2018-10-31 13:50:48.870686 E decoding error End of file (-541478725)
2018-10-31 13:50:48.881393 E decoding error End of file (-541478725)
2018-10-31 13:50:48.891051 E decoding error End of file (-541478725)
2018-10-31 13:50:48.900737 E decoding error End of file (-541478725)
2018-10-31 13:50:48.911504 E decoding error End of file (-541478725)
2018-10-31 13:50:48.921154 E decoding error End of file (-541478725)
2018-10-31 13:50:48.931857 E decoding error End of file (-541478725)
2018-10-31 13:50:48.941485 E decoding error End of file (-541478725)
2018-10-31 13:50:48.951112 E decoding error End of file (-541478725)
2018-10-31 13:50:48.961815 E decoding error End of file (-541478725)
2018-10-31 13:50:48.971474 E decoding error End of file (-541478725)
2018-10-31 13:50:48.982155 E decoding error End of file (-541478725)
2018-10-31 13:50:48.991800 E decoding error End of file (-541478725)
2018-10-31 13:50:49.001490 E decoding error End of file (-541478725)
2018-10-31 13:50:49.012199 E decoding error End of file (-541478725)
2018-10-31 13:50:49.021890 E decoding error End of file (-541478725)
2018-10-31 13:50:49.031585 E decoding error End of file (-541478725)
2018-10-31 13:50:49.042395 E decoding error End of file (-541478725)
2018-10-31 13:50:49.052142 E decoding error End of file (-541478725)
2018-10-31 13:50:49.061864 E decoding error End of file (-541478725)
2018-10-31 13:50:49.072644 E decoding error End of file (-541478725)
2018-10-31 13:50:49.082313 E decoding error End of file (-541478725)
2018-10-31 13:50:49.092027 E decoding error End of file (-541478725)
2018-10-31 13:50:49.102812 E decoding error End of file (-541478725)
2018-10-31 13:50:49.112525 E decoding error End of file (-541478725)
2018-10-31 13:50:49.122153 E decoding error End of file (-541478725)
2018-10-31 13:50:49.132855 E decoding error End of file (-541478725)
2018-10-31 13:50:49.142506 E decoding error End of file (-541478725)
2018-10-31 13:50:49.153227 E decoding error End of file (-541478725)
2018-10-31 13:50:49.162862 E decoding error End of file (-541478725)
2018-10-31 13:50:49.172512 E decoding error End of file (-541478725)
2018-10-31 13:50:49.183242 E decoding error End of file (-541478725)
2018-10-31 13:50:49.192882 E decoding error End of file (-541478725)
2018-10-31 13:50:49.203636 E decoding error End of file (-541478725)
2018-10-31 13:50:49.213355 E decoding error End of file (-541478725)
2018-10-31 13:50:49.223082 E decoding error End of file (-541478725)
2018-10-31 13:50:49.233817 E decoding error End of file (-541478725)
2018-10-31 13:50:49.249668 I CommDetect::GetCommBreakMap()
2018-10-31 13:50:49.250022 I CommDetect::CleanupFrameInfo()
2018-10-31 13:50:49.250038 I ClassicCommDetect: Only found 0 blank frames
but wanted at least 29, rechecking data using higher threshold.
2018-10-31 13:50:49.271149 I Minimum Average Brightness on a frame was
-1, will use 2 as new threshold
2018-10-31 13:50:49.361144 I Found 74790 blank frames using new value
2018-10-31 13:50:49.582222 I CommDetect::GetLogoCommBreakMap()
2018-10-31 13:50:49.594316 I Logo Commercial Break Map
2018-10-31 13:50:49.594321 I Final Commercial Break Map
0
2018-10-31 13:50:50.857588 N Finished, 0 break(s) found.
}}}
and output.txt
{{{
commercialBreakListFor: /myth/tv/23809_20181025181500.ts
totalframecount: 149600
frame min/max/avg scene aspect format flags mark
1: -1/ -1/ -1 -1% wide normal skipped,blank
2: -1/ -1/ -1 -1% wide normal skipped,blank
3: -1/ -1/ -1 -1% wide normal skipped,blank
4: -1/ -1/ -1 -1% wide normal skipped,blank
5: -1/ -1/ -1 -1% wide normal skipped,blank
6: -1/ -1/ -1 -1% wide normal blank
7: -1/ -1/ -1 -1% wide normal blank
8: -1/ -1/ -1 -1% wide normal blank
9: -1/ -1/ -1 -1% wide normal blank
10: -1/ -1/ -1 -1% wide normal blank
11: -1/ -1/ -1 -1% wide normal blank
12: -1/ -1/ -1 -1% wide normal blank
13: -1/ -1/ -1 -1% wide normal blank
14: -1/ -1/ -1 -1% wide normal blank
15: -1/ -1/ -1 -1% wide normal blank
16: -1/ -1/ -1 -1% wide normal blank
17: -1/ -1/ -1 -1% wide normal blank
18: -1/ -1/ -1 -1% wide normal blank
19: -1/ -1/ -1 -1% wide normal blank
20: -1/ -1/ -1 -1% wide normal blank
21: -1/ -1/ -1 -1% wide normal blank
22: -1/ -1/ -1 -1% wide normal blank
23: -1/ -1/ -1 -1% wide normal blank
24: -1/ -1/ -1 -1% wide normal blank
25: -1/ -1/ -1 -1% wide normal blank
26: -1/ -1/ -1 -1% wide normal blank
27: -1/ -1/ -1 -1% wide normal blank
28: -1/ -1/ -1 -1% wide normal blank
29: -1/ -1/ -1 -1% wide normal blank
30: -1/ -1/ -1 -1% wide normal blank
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13335#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list