[mythtv-users] Commerical Marking Problem

Ken Mandelberg km at mathcs.emory.edu
Sun Mar 18 17:30:34 UTC 2007


I've been totally unsuccessful marking commercials in imported mpeg2's. 
So as a test I took one of the internal mpg's in /mnt/store that had 
been recorded and successfully marked by myth, copied it, imported the 
copy and tried marking it manually. It failed. Looking for suggestions, 
but here are the details:

original

km at kmlinux:~/mythtv/contrib> mythcommflag --getskiplist -f 
/mnt/store/1921_20070312200000.mpg
2007-03-18 13:08:10.207 Using runtime prefix = /usr/local
2007-03-18 13:08:10.233 New DB connection, total: 1
2007-03-18 13:08:10.248 New DB connection, total: 2
Commercial Skip List: 
0-1609,13169-22225,61891-75555,107942-120029,149313-161784,204408-215162

copy

km at kmlinux:~/mythtv/contrib> mythcommflag --getskiplist -f 
/mnt/store/1921_20070318113805.mpg
2007-03-18 13:07:30.931 Using runtime prefix = /usr/local
2007-03-18 13:07:31.250 New DB connection, total: 1
2007-03-18 13:07:31.297 New DB connection, total: 2
Commercial Skip List:

Here is the procedure I used:

cp /mnt/store/1921_20070312200000.mpg /mnt/store/test.mpg
myth.rebuilddatabase.pl  --try_default
mythcommflag -f /mnt/store/1921_20070318113805.mpg


The rebuilddatabse runs mythcommflag itself, but it specifically does it 
with the "--rebuild" flag which causes it to not flag commercials. 
That's why I run it a second time to flag them.

As far as the output from the two rebuilds, it follows. The first is 
uneventful, the second is worrisome.

=== from rebuilddatabase ===
...
Unknown file /mnt/store/test.mpg found.
Do you want to import? [y]:
Enter channel [1670]: 1921
... title [test]:
... subtitle:
Description [Recovered file test.mpg]:
... start time (YYYY-MM-DD HH:MM:SS) [2007-03-18 11:38:05]:
... duration (in minutes) [60]:
Building a seek table should improve FF/RW and JUMP functions when 
watching this video
Do you want to build a seek table for this file? [y]: y
2007-03-18 12:01:47.134 Using runtime prefix = /usr/local
2007-03-18 12:01:47.331 New DB connection, total: 1
2007-03-18 12:01:47.354 mythcommflag version: 0.20.20061004-2 www.mythtv.org
2007-03-18 12:01:47.354 Enabled verbose msgs: important

MythTV Commercial Flagger, started at Sun Mar 18 12:01:47 2007
Building seek table for: /mnt/store/1921_20070318113805.mpg
0: start_time: 6274.581 duration: 323.350
1: start_time: 6274.519 duration: 323.359
stream: start_time: 69716.872 duration: 3593.471 bitrate=12324 kb/s
  99%/  199fps2007-03-18 12:19:48.678 
RingBuf(/mnt/store/1921_20070318113805.mpg): Waited 1.0 seconds for data 
to become available...
2007-03-18 12:19:49.702 RingBuf(/mnt/store/1921_20070318113805.mpg): 
Waited 2.0 seconds for data to become available...
Rebuilt

Finished commercial break flagging at Sun Mar 18 12:19:50 2007


===== from mythcommflag -f /mnt/store/1921_20070318113805.mpg ====
2007-03-18 12:22:49.979 Using runtime prefix = /usr/local
2007-03-18 12:22:50.004 New DB connection, total: 1
2007-03-18 12:22:50.016 mythcommflag version: 0.20.20061004-2 www.mythtv.org
2007-03-18 12:22:50.017 Enabled verbose msgs: important

MythTV Commercial Flagger, started at Sun Mar 18 12:22:50 2007
Flagging commercial breaks for:
ChanID  Start Time      Title                                      Breaks
------  --------------  -----------------------------------------  ------
2007-03-18 12:22:50.046 New DB connection, total: 2
1921    20070318113805  test 
2007-03-18 12:22:50.268 Using protocol version 31
2007-03-18 12:22:50.275 Unable to find active recorder for this 
recording, realtime flagging will not be enabled.
Finding Logo[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]warning: first frame is no keyframe
[mpeg2video @ 0xb72295e8]invalid mb type in P Frame at 8 23
[mpeg2video @ 0xb72295e8]ac-tex damaged at 26 24
[mpeg2video @ 0xb72295e8]mb incr damaged
[mpeg2video @ 0xb72295e8]invalid mb type in P Frame at 30 26
[mpeg2video @ 0xb72295e8]ac-tex damaged at 0 27
[mpeg2video @ 0xb72295e8]ac-tex damaged at 11 28
[mpeg2video @ 0xb72295e8]ac-tex damaged at 42 29
[mpeg2video @ 0xb72295e8]ac-tex damaged at 35 30
[mpeg2video @ 0xb72295e8]ac-tex damaged at 30 31
[mpeg2video @ 0xb72295e8]ac-tex damaged at 0 32
[mpeg2video @ 0xb72295e8]ac-tex damaged at 0 33
[mpeg2video @ 0xb72295e8]ac-tex damaged at 0 34
[mpeg2video @ 0xb72295e8]invalid cbp at 7 35
[mpeg2video @ 0xb72295e8]ac-tex damaged at 24 36
.... about 2000 more lines of this
Finished commercial break flagging at Sun Mar 18 12:59:40 2007

0: start_time: 6274.581 duration: 323.350
1: start_time: 6274.519 duration: 323.359
stream: start_time: 69716.872 duration: 3593.471 bitrate=12324 kb/s






More information about the mythtv-users mailing list