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

MythTV noreply at mythtv.org
Wed Oct 31 11:26:30 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):

 Thx for replay.
 I'm trying to exactly replicate steeps You are doing:
 {{{
 [root at mythtv ~]# cat /etc/mythcommflag-override2
 CommDetectLogoSamplesNeeded=30
 CommDetectLogoSampleSpacing=2
 commDetectLogoLocation=NE
 commDetectLogoWidthRatio=6
 commDetectLogoHeightRatio=8
 CommDetectLogoBorder=64
 CommercialSkipMethod=4
 }}}
 Next I launched commflaging exactly as You are doing:
 {{{
 mythcommflag --noprogress -v commflag:debug --override-settings-file /etc
 /mythcommflag-override2 --method 4  --skipdb --outputmethod full
 --outputfile /var/log/output.txt -f /myth/tv/23809_20181025181500.ts
 }}}
 console output is following:
 {{{
 [root at mythtv etc]# mythcommflag --noprogress -v commflag:debug --override-
 settings-file /etc/mythcommflag-override2 --method 4  --skipdb
 --outputmethod full --outputfile /var/log/output.txt -f
 /myth/tv/23809_20181025181500.ts
 MythTV Commercial Flagger, flagging commercials for:
     /myth/tv/23809_20181025181500.ts
 2018-10-31 10:13:10.020860 C  mythcommflag version: (HEAD detached from
 33e31a0) [v30-Pre-915-g2ce3cd7-dirty-v9.7.3.debug] www.mythtv.org
 2018-10-31 10:13:10.020878 C  Qt version: compile: 5.5.1, runtime: 5.5.1
 2018-10-31 10:13:10.020880 N  Enabled verbose msgs:  general commflag
 2018-10-31 10:13:10.020890 N  Setting Log Level to LOG_INFO
 2018-10-31 10:13:10.031308 I  Added logging to the console
 2018-10-31 10:13:10.031579 I  Setup Interrupt handler
 2018-10-31 10:13:10.031588 I  Setup Terminated handler
 2018-10-31 10:13:10.031592 I  Setup Segmentation fault handler
 2018-10-31 10:13:10.031598 I  Setup Aborted handler
 2018-10-31 10:13:10.031602 I  Setup Bus error handler
 2018-10-31 10:13:10.031607 I  Setup Floating point exception handler
 2018-10-31 10:13:10.031612 I  Setup Illegal instruction handler
 2018-10-31 10:13:10.031617 I  Setup Real-time signal 0 handler
 2018-10-31 10:13:10.031623 I  Setup Hangup handler
 2018-10-31 10:13:10.031704 N  Using runtime prefix = /usr
 2018-10-31 10:13:10.031707 N  Using configuration directory =
 /root/.mythtv
 2018-10-31 10:13:10.031761 I  Assumed character encoding: en_US.UTF8
 2018-10-31 10:13:10.031766 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 10:13:10.032052 N  Setting QT default locale to en_US
 2018-10-31 10:13:10.032062 I  Current locale en_US
 2018-10-31 10:13:10.032112 N  Reading locale defaults from
 /usr/share/mythtv//locales/en_us.xml
 2018-10-31 10:13:10.032659 N  Setting 'CommDetectLogoBorder' being forced
 to '64'
 2018-10-31 10:13:10.032665 N  Setting 'CommDetectLogoSampleSpacing' being
 forced to '2'
 2018-10-31 10:13:10.032672 N  Setting 'CommDetectLogoSamplesNeeded' being
 forced to '30'
 2018-10-31 10:13:10.032676 N  Setting 'CommercialSkipMethod' being forced
 to '4'
 2018-10-31 10:13:10.032680 N  Setting 'commDetectLogoHeightRatio' being
 forced to '8'
 2018-10-31 10:13:10.032685 N  Setting 'commDetectLogoLocation' being
 forced to 'NE'
 2018-10-31 10:13:10.032689 N  Setting 'commDetectLogoWidthRatio' being
 forced to '6'
 2018-10-31 10:13:10.033778 I  Loading en_us translation for module
 mythfrontend
 2018-10-31 10:13:10.317806 I  AFD: codec MP2 has 2 channels
 2018-10-31 10:13:10.318598 I  AFD: Opened codec 0xa52740, id(MP2)
 type(Audio)
 2018-10-31 10:13:10.318846 I  AFD: codec AC3 has 2 channels
 2018-10-31 10:13:10.319096 I  AFD: Opened codec 0xa76780, id(AC3)
 type(Audio)
 2018-10-31 10:13:10.319182 I  AFD: Opened codec 0xa7a8c0, id(DVB_SUBTITLE)
 type(Subtitle)
 2018-10-31 10:13:10.320970 I  AFD: Using ffmpeg for video decoding
 2018-10-31 10:13:10.321103 I  AFD: Opened codec 0xa7dbc0, id(H264)
 type(Video)
 2018-10-31 10:13:10.321374 I  Commercial Detection initialized: width =
 1920, height = 1080, fps = 50, method = 4
 2018-10-31 10:13:10.321380 I  Using Sample Spacing of 10 horizontal & 10
 vertical pixels.
 2018-10-31 10:13:10.321400 I  CommDetect::ClearAllMaps()
 Finding Logo2018-10-31 10:13:10.350830 I  Finding Logo
 2018-10-31 10:13:10.350836 I  Searching for Station Logo
 2018-10-31 10:13:10.350850 I  Trying with edgeDiff == 5,
 minPixelsInMask=1800
 2018-10-31 10:13:10.489646 I  MythCodecContext: Disabled hardware decoder
 based deinterlacer.
 2018-10-31 10:13:15.496896 I  Analyzing edge data
 2018-10-31 10:13:15.502910 I  SetLogoMaskArea()
 2018-10-31 10:13:15.508442 I  SetLogoMaskArea()
 2018-10-31 10:13:15.513488 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:15.513499 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (4). Not within specified limits.
 2018-10-31 10:13:15.513503 I  Trying with edgeDiff == 7,
 minPixelsInMask=1800
 2018-10-31 10:13:20.086232 I  Analyzing edge data
 2018-10-31 10:13:20.092480 I  SetLogoMaskArea()
 2018-10-31 10:13:20.097427 I  SetLogoMaskArea()
 2018-10-31 10:13:20.102495 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:20.102506 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:20.102509 I  Trying with edgeDiff == 10,
 minPixelsInMask=1800
 2018-10-31 10:13:24.666688 I  Analyzing edge data
 2018-10-31 10:13:24.672699 I  SetLogoMaskArea()
 2018-10-31 10:13:24.677738 I  SetLogoMaskArea()
 2018-10-31 10:13:24.683171 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:24.683182 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:24.683185 I  Trying with edgeDiff == 15,
 minPixelsInMask=1800
 2018-10-31 10:13:29.242539 I  Analyzing edge data
 2018-10-31 10:13:29.248587 I  SetLogoMaskArea()
 2018-10-31 10:13:29.253788 I  SetLogoMaskArea()
 2018-10-31 10:13:29.258865 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:29.258876 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:29.258879 I  Trying with edgeDiff == 20,
 minPixelsInMask=1800
 2018-10-31 10:13:33.827150 I  Analyzing edge data
 2018-10-31 10:13:33.833160 I  SetLogoMaskArea()
 2018-10-31 10:13:33.838134 I  SetLogoMaskArea()
 2018-10-31 10:13:33.843125 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:33.843137 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:33.843140 I  Trying with edgeDiff == 30,
 minPixelsInMask=1800
 2018-10-31 10:13:38.405814 I  Analyzing edge data
 2018-10-31 10:13:38.411949 I  SetLogoMaskArea()
 2018-10-31 10:13:38.417275 I  SetLogoMaskArea()
 2018-10-31 10:13:38.422365 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:38.422377 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:38.422380 I  Trying with edgeDiff == 40,
 minPixelsInMask=1800
 2018-10-31 10:13:42.982916 I  Analyzing edge data
 2018-10-31 10:13:42.989149 I  SetLogoMaskArea()
 2018-10-31 10:13:42.994243 I  SetLogoMaskArea()
 2018-10-31 10:13:42.999513 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:42.999525 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:42.999529 I  Trying with edgeDiff == 50,
 minPixelsInMask=1800
 2018-10-31 10:13:47.540781 I  Analyzing edge data
 2018-10-31 10:13:47.546829 I  SetLogoMaskArea()
 2018-10-31 10:13:47.551782 I  SetLogoMaskArea()
 2018-10-31 10:13:47.556766 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:47.556776 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:47.556780 I  Trying with edgeDiff == 60,
 minPixelsInMask=1800
 2018-10-31 10:13:52.142945 I  Analyzing edge data
 2018-10-31 10:13:52.148939 I  SetLogoMaskArea()
 2018-10-31 10:13:52.153925 I  SetLogoMaskArea()
 2018-10-31 10:13:52.158951 I  Testing Logo area: topleft (1914,1074),
 bottomright (5,5)
 2018-10-31 10:13:52.158963 I  Rejecting Logo area: topleft (1914,1074),
 bottomright (5,5), pixelsInMask (0). Not within specified limits.
 2018-10-31 10:13:52.159157 N  No suitable logo area found.
 2018-10-31 10:13:52.219434 I  CommDetect::SetVideoParams called with
 aspect = 1.77778
 2018-10-31 10:13:52.669802 I  0% Completed @ 222.222 fps.
 2018-10-31 10:15:46.006557 I  10% Completed @ 131.825 fps.
 2018-10-31 10:17:43.989089 I  20% Completed @ 129.439 fps.
 2018-10-31 10:19:32.026844 I  30% Completed @ 132.134 fps.
 2018-10-31 10:21:20.738539 I  40% Completed @ 133.551 fps.
 2018-10-31 10:23:03.430788 E  decoding error End of file (-541478725)
 2018-10-31 10:23:03.433526 I  CommDetect::GetCommBreakMap()
 2018-10-31 10:23:03.433531 I  CommDetect::CleanupFrameInfo()
 2018-10-31 10:23:03.433541 I  ClassicCommDetect: Only found 0 blank frames
 but wanted at least 29, rechecking data using higher threshold.
 2018-10-31 10:23:03.449349 I  Minimum Average Brightness on a frame was
 -1, will use 2 as new threshold
 2018-10-31 10:23:03.536168 I  Found 74789 blank frames using new value
 2018-10-31 10:23:03.747466 I  CommDetect::GetLogoCommBreakMap()
 2018-10-31 10:23:03.758922 I  Logo Commercial Break Map
 2018-10-31 10:23:03.758927 I  Final Commercial Break Map
 0
 2018-10-31 10:23:04.970544 N  Finished, 0 break(s) found.
 }}}

 content of /var/log/output.txt


 {{{
 cat /var/log/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
         31:  -1/ -1/ -1  -1%   wide  normal blank
         32:  -1/ -1/ -1  -1%   wide  normal blank
         33:  -1/ -1/ -1  -1%   wide  normal blank
         34:  -1/ -1/ -1  -1%   wide  normal blank
         35:  -1/ -1/ -1  -1%   wide  normal blank
         36:  -1/ -1/ -1  -1%   wide  normal blank
 }}}

 I'm not sure - is this OK (expected)?

 I tried commflaging with first 15min of recording trimmed via ffmpeg
 (exactly like You done):
 {{{
 ffmpeg -i /myth/tv/23809_20181025181500.ts -vcodec copy -acodec copy -ss
 00:15:00 /myth/tv/23809_20181025181500-1.ts
 }}}
 Results are the same :-(

 Also I tried to recompile with #define SHOW_DEBUG_WIN but launching
 commflag gives me segfault.
 Segfault trace is following:

 {{{
 ----Proces trace------------------------------------------------------

 generally: I scratching my head why commflaging on my recording is working
 OK for You but not for me?
 I'm on current master (as of g2ce3cd7) with programs/commflag sources
 replaced to Your repo.

 pls advise
 GNU gdb (GDB) 7.10.1
 Copyright (C) 2015 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "x86_64-unknown-linux-gnu".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from /usr/bin/mythcommflag...done.
 [New LWP 26853]
 [New LWP 26854]
 [New LWP 26857]
 [New LWP 26856]
 [New LWP 26855]
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library "/usr/lib/libthread_db.so.1".
 Core was generated by `mythcommflag --noprogress -v commflag:debug
 --override-settings-file /etc/mythc'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0x000000000045a522 in comm_debug_init (width=1920, height=1080)
     at commercial_debug.cpp:41
 [Current thread is 1 (Thread 0x7fcb779d8800 (LWP 26853))]

 Thread 5 (Thread 0x7fcb7702b700 (LWP 26855)):
 #0  0x00007fcb86713428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
 /usr/lib/libpthread.so.0
 No symbol table info available.
 #1  0x00007fcb869c9d66 in QWaitCondition::wait(QMutex*, unsigned long) ()
 from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #2  0x00007fcb8df5b493 in LogForwardThread::run (this=0x7fcb70003a80) at
 loggingserver.cpp:1208
         lock = {val = 140512239824873}
         processed = 1
         loggers = {<QListSpecialMethods<LoggerBase*>> = {<No data
 fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = -1}},
 alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x0}, d = 0x0}}
 #3  0x00007fcb8de7283f in MThreadInternal::run (this=0x7fcb70003d30) at
 mthread.cpp:79
 No locals.
 #4  0x00007fcb869c8b8e in ?? () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #5  0x00007fcb8670d4a4 in start_thread () from /usr/lib/libpthread.so.0
 No symbol table info available.
 #6  0x00007fcb85bb4dcd in clone () from /usr/lib/libc.so.6
 No symbol table info available.

 Thread 4 (Thread 0x7fcb7682a700 (LWP 26856)):
 #0  0x00007fcb86713428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
 /usr/lib/libpthread.so.0
 No symbol table info available.
 #1  0x00007fcb869c9d66 in QWaitCondition::wait(QMutex*, unsigned long) ()
 from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #2  0x00007fcb8df4e658 in LoggerThread::run (this=0x1f57880) at
 logging.cpp:399
         item = 0x1f6cd00
         __FUNCTION__ = "run"
         dieNow = false
         qLock = {val = 140512239824697}
 #3  0x00007fcb8de7283f in MThreadInternal::run (this=0x1f54720) at
 mthread.cpp:79
 No locals.
 #4  0x00007fcb869c8b8e in ?? () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #5  0x00007fcb8670d4a4 in start_thread () from /usr/lib/libpthread.so.0
 No symbol table info available.
 #6  0x00007fcb85bb4dcd in clone () from /usr/lib/libc.so.6
 No symbol table info available.

 Thread 3 (Thread 0x7fcb67fff700 (LWP 26857)):
 #0  0x00007fcb86713428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
 /usr/lib/libpthread.so.0
 No symbol table info available.
 #1  0x00007fcb869c9fee in QWaitCondition::wait(QReadWriteLock*, unsigned
 long) () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #2  0x00007fcb8e8797fc in RingBuffer::run (this=0x1f72540) at
 ringbuffer.cpp:983
         totfree = 32767
         KB32 = 32768
         KB512 = 524288
         read_return = 65536
         reads_were_allowed = true
         isopened = true
         used = 4161537
         lastread = {tv_sec = 1540983458, tv_usec = 821465}
         now = {tv_sec = 1540983458, tv_usec = 821465}
         readtimeavg = 187
         ignore_for_read_timing = true
         eofreads = 0
         __FUNCTION__ = "run"
 #3  0x00007fcb8de7283f in MThreadInternal::run (this=0x1f70f40) at
 mthread.cpp:79
 No locals.
 #4  0x00007fcb869c8b8e in ?? () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #5  0x00007fcb8670d4a4 in start_thread () from /usr/lib/libpthread.so.0
 No symbol table info available.
 #6  0x00007fcb85bb4dcd in clone () from /usr/lib/libc.so.6
 No symbol table info available.

 Thread 2 (Thread 0x7fcb7782c700 (LWP 26854)):
 #0  0x00007fcb85babe5d in poll () from /usr/lib/libc.so.6
 No symbol table info available.
 #1  0x00007fcb80a02fbc in ?? () from /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 #2  0x00007fcb80a030cc in g_main_context_iteration () from
 /usr/lib/libglib-2.0.so.0
 No symbol table info available.
 #3  0x00007fcb86c0056b in
 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
 () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #4  0x00007fcb86ba757a in
 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
 /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #5  0x00007fcb869c3be4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #6  0x00007fcb8de72883 in MThreadInternal::exec (this=0x1f57930) at
 mthread.cpp:85
         ph = {<QObject> = {<No data fields>}, purgeTimer = 1}
 #7  0x00007fcb8de71fa0 in MThread::exec (this=0x1f57db0) at
 mthread.cpp:331
 No locals.
 #8  0x00007fcb8df5aac8 in LogServerThread::run (this=0x1f57da0) at
 loggingserver.cpp:898
         locker = {val = 140512239824808}
         abortThread = false
 #9  0x00007fcb8de7283f in MThreadInternal::run (this=0x1f57930) at
 mthread.cpp:79
 No locals.
 #10 0x00007fcb869c8b8e in ?? () from /usr/lib/libQt5Core.so.5
 No symbol table info available.
 #11 0x00007fcb8670d4a4 in start_thread () from /usr/lib/libpthread.so.0
 No symbol table info available.
 #12 0x00007fcb85bb4dcd in clone () from /usr/lib/libc.so.6
 No symbol table info available.

 Thread 1 (Thread 0x7fcb779d8800 (LWP 26853)):
 #0  0x000000000045a522 in comm_debug_init (width=1920, height=1080) at
 commercial_debug.cpp:41
         comm_screen = 0x40f905 <QString::~QString()+49>
         comm_screen_num = 32765
 #1  0x0000000000411cc7 in ClassicCommDetector::Init (this=0x1fc9290) at
 ClassicCommDetector.cpp:210
         video_disp_dim = {wd = 1920, ht = 1080}
         __FUNCTION__ = "Init"
 #2  0x0000000000412c0e in ClassicCommDetector::go (this=0x1fc9290) at
 ClassicCommDetector.cpp:332
         secsSince = 14401
         requiredBuffer = 30
         requiredHeadStart = 30
         wereRecording = false
         __FUNCTION__ = "go"
         flagTime = {mds = 1}
         myTotalFrames = 4294967295
         flagFPS = 0.000437094073
         currentFrameNumber = 140727938970736
         aspect = 0
         newAspect = 9.026658e-38
         prevpercent = 33293504
 #3  0x000000000045f997 in DoFlagCommercials (program_info=0x7ffdc6cff9e0,
 showPercentage=true, fullSpeed=true, jobid=-1, cfp=0x1f7efd0,
 commDetectMethod=COMM_DETECT_LOGO, outputfilename=..., useDB=false) at
 main.cpp:568
         factory = {<No data fields>}
         __FUNCTION__ = "DoFlagCommercials"
         cer = 0x1f5baa0
         a = 0x1fbf190
         b = 0x1fc9cd0
         c = 0x1fc04c0
         result = false
         comms_found = 0
         tmp = 0x7ffdc6cff520
 #4  0x0000000000462250 in FlagCommercials (program_info=0x7ffdc6cff9e0,
 jobid=-1, outputfilename=..., useDB=false, fullSpeed=true) at main.cpp:925
         breaksFound = 0
         commDetectMethod = COMM_DETECT_LOGO
         __FUNCTION__ = "FlagCommercials"
         blanks = {d = 0x7fcb86cbe300 <QMapDataBase::shared_null>}
         filename = {static null = {<No data fields>}, d = 0x1f711d0}
         tmprbuf = 0x1f72540
         flags = (kDecodeLowRes | kDecodeSingleThreaded |
 kDecodeNoLoopFilter | kVideoIsNull | kAudioMuted | kNoITV)
         cfp = 0x1f7efd0
         ctx = 0x1fcc920
 #5  0x000000000046323e in FlagCommercials (filename=..., jobid=-1,
 outputfilename=..., useDB=false, fullSpeed=true) at main.cpp:992
         pginfo = {_vptr.ProgramInfo = 0x7fcb8d96d2c8 <vtable for
 ProgramInfo+16>, title = {static null = {<No data fields>}, d =
 0x7fcb86c7d2e0 <QArrayData::shared_null>}, subtitle = {static null = {<No
 data fields>}, d = 0x7fcb86c7d2e0 <QArrayData::shared_null>}, description
 = {static null = {<No data fields>}, d = 0x7fcb86c7d2e0
 <QArrayData::shared_null>}, season = 0, episode = 0, totalepisodes = 0,
 syndicatedepisode = {static null = {<No data fields>}, d = 0x7fcb86c7d2e0
 <QArrayData::shared_null>}, category = {static null = {<No data fields>},
 d = 0x7fcb86c7d2e0 <QArrayData::shared_null>}, director = {static null =
 {<No data fields>}, d = 0x7fcb86c7d2e0 <QArrayData::shared_null>},
 recpriority = 0, chanid = 0, chanstr = {static null = {<No data fields>},
 d = 0x7fcb86c7d2e0 <QArrayData::shared_null>}, chansign = {static null =
 {<No data fields>}, d = 0x7fcb86c7d2e0 <QArrayData::shared_null>},
 channame = {static null = {<No data fields>}, d = 0x7fcb86c7d2e0
 <QArrayData::shared_null>}, chanplaybackfilters = {static null = {<No data
 fields>}, d = 0x7fcb86c7d2e0 <QArrayData::shared_null>}, recgroup =
 {static null = {<No data fields>}, d = 0x1f5b3e0}, playgroup = {static
 null = {<No data fields>}, d = 0x1f5b370}, pathname = {static null = {<No
 data fields>}, d = 0x1f711d0}, hostname = {static null = {<No data
 fields>}, d = 0x7fcb86c7d2e0 <QArrayData::shared_null>}, storagegroup =
 {static null = {<No data fields>}, d = 0x1f5adc0}, seriesid = {static null
 = {<No data fields>}, d = 0x7fcb86c7d2e0 <QArrayData::shared_null>},
 programid = {static null = {<No data fields>}, d = 0x7fcb86c7d2e0
 <QArrayData::shared_null>}, inetref = {static null = {<No data fields>}, d
 = 0x7fcb86c7d2e0 <QArrayData::shared_null>}, catType =
 ProgramInfo::kCategoryNone, filesize = 0, startts = {d = {d = 0x1f5ace0}},
 endts = {d = {d = 0x1f5e550}}, recstartts = {d = {d = 0x1f5ace0}},
 recendts = {d = {d = 0x1f5e550}}, stars = 0, originalAirDate = {jd =
 -9223372036854775808}, lastmodified = {d = {d = 0x1f59770}}, lastInUseTime
 = {d = {d = 0x1f5ab90}}, recpriority2 = 0, recordid = 0, parentid = 0,
 sourceid = 0, inputid = 0, findid = 0, programflags = 1048576, properties
 = 0, year = 0, partnumber = 0, parttotal = 0, recstatus = 0 '\000',
 rectype = 0 '\000', dupin = 15 '\017', dupmethod = 8 '\b', recordedid = 0,
 inputname = {static null = {<No data fields>}, d = 0x7fcb86c7d2e0
 <QArrayData::shared_null>}, bookmarkupdate = {d = {d = 0x1f5b4c0}},
 availableStatus = 0 '\000', progressPercent = 0, spread = -1 '\377',
 startCol = -1 '\377', sortTitle = {static null = {<No data fields>}, d =
 0x7fcb86c7d2e0 <QArrayData::shared_null>}, static kFromRecordedQuery =
 {static null = {<No data fields>}, d = 0x1f2cc60}, inUseForWhat = {static
 null = <same as static member of an already seen type>, d = 0x7fcb86c7d2e0
 <QArrayData::shared_null>}, positionMapDBReplacement = 0x0, static
 staticDataLock = {<QBasicMutex> = {d_ptr = {_q_value = 0x0}}, <No data
 fields>}, static updater = 0x1f2cba0, static usingProgIDAuth = true}
 #6  0x00000000004656b4 in main (argc=15, argv=0x7ffdc6d00448) at
 main.cpp:1249
         result = 0
         jobType = 0
         a = <incomplete type>
         retval = 0
         callCleanup = {m_cleanFunction = 0x45aae0 <(anonymous
 namespace)::cleanup()>}
         signallist = {<QListSpecialMethods<int>> = {<No data fields>}, {p
 = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0,
 begin = 0, end = 0, array = {0x0}}, d = 0x1f59110}, d = 0x1f59110}}
         __FUNCTION__ = "main"
 ----------------------------------------------------------------------
 }}}
 I'm scratching my head why comflaging on my recording works ok for You but
 not for me?
 My comflag is based on current master with programs/comflag sources dir
 replaced to dir from your repo. Maybe I should use your code differently?

 pls advise

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


More information about the mythtv-commits mailing list