ast login: Wed Jun  2 20:56:59 2010 from henriks.local
henrik@media:~$ sudo -s
[sudo] password for henrik: 
root@media:~# su mythtv
$ bash
mythtv@media:/home/henrik$ export DISPLAY=:0
mythtv@media:/home/henrik$ kill mythfrontend
bash: kill: mythfrontend: arguments must be process or job IDs
mythtv@media:/home/henrik$ pkill mythfrontend
mythtv@media:/home/henrik$ mythfrontend -v playback,commflag
2010-06-03 19:42:23.013 mythfrontend version: branches/release-0-23-fixes [24158] www.mythtv.org
2010-06-03 19:42:23.013 Using runtime prefix = /usr
2010-06-03 19:42:23.013 Using configuration directory = /home/mythtv/.mythtv
2010-06-03 19:42:23.562 Empty LocalHostName.
2010-06-03 19:42:23.562 Using localhost value of media
2010-06-03 19:42:23.568 New DB connection, total: 1
2010-06-03 19:42:23.571 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:23.571 Closing DB connection named 'DBManager0'
2010-06-03 19:42:23.582 ScreenSaverX11Private: Gnome screen saver support enabled
2010-06-03 19:42:23.583 DPMS is active.
2010-06-03 19:42:23.584 Primary screen: 0.
2010-06-03 19:42:23.585 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:23.586 Using screen 0, 1280x720 at 0,0
2010-06-03 19:42:23.690 Desktop video mode: 1280x720 60.0168 Hz
2010-06-03 19:42:23.745 max_width: 1280 max_height: 720
2010-06-03 19:42:23.746 MythUI Image Cache size set to 20971520 bytes
2010-06-03 19:42:23.967 AudioPulseUtil: Suspend Success
2010-06-03 19:42:23.967 user: 110 effective user: 110 before privileged thread
2010-06-03 19:42:23.967 user: 110 effective user: 110 after privileged thread
2010-06-03 19:42:23.967 user: 110 effective user: 110 run_priv_thread
2010-06-03 19:42:23.968 Enabled verbose msgs:  important general playback commflag
2010-06-03 19:42:23.990 Connecting to lcd server: 127.0.0.1:6545 (try 1 of 10)
2010-06-03 19:42:23.992 New DB connection, total: 2
2010-06-03 19:42:23.993 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:24.031 Primary screen: 0.
2010-06-03 19:42:24.032 Using screen 0, 1280x720 at 0,0
2010-06-03 19:42:24.064 Using theme base resolution of 1280x720
2010-06-03 19:42:24.112 LIRC: Successfully initialized '/var/run/lirc/lircd' using '/home/mythtv/.mythtv/lircrc' config
2010-06-03 19:42:24.112 JoystickMenuThread Error: Joystick disabled - Failed to read /home/mythtv/.mythtv/joystickmenurc
2010-06-03 19:42:24.199 Using Frameless Window
2010-06-03 19:42:24.709 Using the Qt painter
2010-06-03 19:42:25.133 XMLParseBase: Loaded base theme from '/usr/share/mythtv/themes/MythCenter-wide/base.xml'
2010-06-03 19:42:25.187 XMLParseBase: Loaded base theme from '/usr/share/mythtv/themes/default-wide/base.xml'
2010-06-03 19:42:25.253 XMLParseBase: Loaded base theme from '/usr/share/mythtv/themes/default/base.xml'
2010-06-03 19:42:25.297 Current MythTV Schema Version (DBSchemaVer): 1254
2010-06-03 19:42:25.351 VDP: decoder<->render support: ffmpeg      null xlib xshm xv-blit opengl vdpau
2010-06-03 19:42:25.351 VDP: decoder<->render support: libmpeg2    null xlib xshm xv-blit opengl vdpau
2010-06-03 19:42:25.351 VDP: decoder<->render support: xvmc        xvmc-blit
2010-06-03 19:42:25.351 VDP: decoder<->render support: xvmc-vld    xvmc-blit
2010-06-03 19:42:25.351 VDP: decoder<->render support: vdpau       vdpau
2010-06-03 19:42:25.363 VDP: Ignoring profile item 4 (OSD Renderer opengl is not supported w/renderer xvmc-blit (supported: chromakey,ia44blend))
2010-06-03 19:42:25.364 VDP: Ignoring profile item 2 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:25.365 VDP: Ignoring profile item 8 (decoder ivtv is not supported (supported: ffmpeg,libmpeg2,xvmc,xvmc-vld,vdpau))
2010-06-03 19:42:25.366 VDP: Ignoring profile item 15 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:25.366 VDP: Ignoring profile item 16 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:25.367 VDP: Ignoring profile item 19 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:25.367 VDP: Ignoring profile item 20 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:25.370 VDP: Ignoring profile item 23 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:25.370 VDP: Ignoring profile item 24 (renderer quartz-blit is not supported w/decoder ffmpeg (supported: null,xlib,xshm,xv-blit,opengl,vdpau))
2010-06-03 19:42:27.508 Registering Internal as a media playback plugin.
2010-06-03 19:42:27.806 MediaMonitorUnix::AddDevice() - empty device path.
2010-06-03 19:42:27.807 MediaMonitorUnix::AddDevice() - empty device path.
2010-06-03 19:42:27.807 MediaMonitorUnix::AddDevice() - empty device path.
2010-06-03 19:42:27.807 MonitorRegisterExtensions(0x100, gif,jpg,png)
2010-06-03 19:42:27.988 Current MythVideo Schema Version (mythvideo.DBSchemaVer): 1032
2010-06-03 19:42:28.029 XMLParseBase: Loading window theme from /usr/share/mythtv/themes/MythCenter-wide/menu-ui.xml
2010-06-03 19:42:28.120 Loading menu theme from /usr/share/mythtv/themes/defaultmenu//mainmenu.xml
2010-06-03 19:42:28.122 Found mainmenu.xml for theme 'MythCenter-wide'
2010-06-03 19:42:28.352 MythContext: Connecting to backend server: 192.168.0.175:6543 (try 1 of 1)
2010-06-03 19:42:28.354 Using protocol version 56
2010-06-03 19:42:47.328 Loading menu theme from /usr/share/mythtv/themes/defaultmenu//library.xml
2010-06-03 19:42:47.329 ScreenSaverX11Private: Calling gnome-screensaver-command --poke
2010-06-03 19:42:47.354 ScreenSaverX11Private: Calling gnome-screensaver-command --poke
2010-06-03 19:42:48.495 XMLParseBase: Loading window theme from /usr/share/mythtv/themes/MythCenter-wide/recordings-ui.xml
2010-06-03 19:42:48.931 PlaybackBoxHelper: Requesting preview for '/myth1/2004_20100603192900.mpg.png'
2010-06-03 19:42:48.931 PlaybackBoxHelper: Requested preview for '/myth1/2004_20100603192900.mpg.png'
2010-06-03 19:42:49.028 mythbackend version: branches/release-0-23-fixes [24158] www.mythtv.org
2010-06-03 19:42:49.028 Using runtime prefix = /usr
2010-06-03 19:42:49.028 Using configuration directory = /home/mythtv/.mythtv
2010-06-03 19:42:49.028 Empty LocalHostName.
2010-06-03 19:42:49.029 Using localhost value of media
2010-06-03 19:42:49.034 New DB connection, total: 1
2010-06-03 19:42:49.038 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:49.038 Closing DB connection named 'DBManager0'
2010-06-03 19:42:49.039 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:49.042 Current MythTV Schema Version (DBSchemaVer): 1254
2010-06-03 19:42:49.043 ProgramInfo(): Updated pathname '':'' -> '2004_20100603192900.mpg'
2010-06-03 19:42:49.220 AFD Error: Could not find decoder for codec (DVB_TELETEXT), ignoring.
2010-06-03 19:42:49.220 AFD: codec MP2 has 2 channels
2010-06-03 19:42:49.220 AFD: Opened codec 0x9bf8f50, id(MP2) type(Audio)
2010-06-03 19:42:49.223 AFD: Opened codec 0x9bf94d0, id(MPEG2VIDEO) type(Video)
2010-06-03 19:42:49.225 Error preparing query: SELECT mark, offset FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
2010-06-03 19:42:49.225 Driver error was [2/144]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/recordedseek' is marked as crashed and last (automatic?) repair failed

2010-06-03 19:42:49.225 Error preparing query: SELECT mark, offset FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
2010-06-03 19:42:49.225 Driver error was [2/144]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/recordedseek' is marked as crashed and last (automatic?) repair failed

2010-06-03 19:42:49.226 Error preparing query: SELECT mark, offset FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
2010-06-03 19:42:49.226 Driver error was [2/144]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/recordedseek' is marked as crashed and last (automatic?) repair failed

2010-06-03 19:42:49.227 NVP(0): GetScreenGrabAtFrame: Recording does not have position map so we will be unable to grab the desired frame.

2010-06-03 19:42:49.227 Run 'mythcommflag --file 2004_20100603192900.mpg --rebuild' to fix.
2010-06-03 19:42:49.227 If that does not work and this is a .mpg file, try 'mythtranscode --mpeg2 --buildindex --allkeys -c 2004 -s 20100603192900'.
2010-06-03 19:42:49.273 PlaybackBoxHelper: Requesting preview for '/myth0/7300_20100603190000.mpg.png'
2010-06-03 19:42:49.273 PlaybackBoxHelper: Requested preview for '/myth0/7300_20100603190000.mpg.png'
2010-06-03 19:42:49.290 Preview: Grabbed preview '/myth1/2004_20100603192900.mpg' 720x576@205s
2010-06-03 19:42:49.446 ~MythContext waiting for threads to exit.
2010-06-03 19:42:49.452 mythbackend version: branches/release-0-23-fixes [24158] www.mythtv.org
2010-06-03 19:42:49.452 Using runtime prefix = /usr
2010-06-03 19:42:49.452 Using configuration directory = /home/mythtv/.mythtv
2010-06-03 19:42:49.453 Empty LocalHostName.
2010-06-03 19:42:49.453 Using localhost value of media
2010-06-03 19:42:49.465 New DB connection, total: 1
2010-06-03 19:42:49.469 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:49.469 Closing DB connection named 'DBManager0'
2010-06-03 19:42:49.470 Connected to database 'mythconverg' at host: 192.168.0.175
2010-06-03 19:42:49.473 Current MythTV Schema Version (DBSchemaVer): 1254
2010-06-03 19:42:49.475 ProgramInfo(): Updated pathname '':'' -> '7300_20100603190000.mpg'
2010-06-03 19:42:49.516 Preview: Preview process returned 0.
2010-06-03 19:42:49.517 Preview: Preview process ran ok.
2010-06-03 19:42:49.517 PlaybackBoxHelper: Preview for '/myth1/2004_20100603192900.mpg' ready
2010-06-03 19:42:49.517 PlaybackBoxHelper: Preview for '/myth1/2004_20100603192900.mpg.png' done
2010-06-03 19:42:49.522 Preview: previewThreadDone took 5ms
2010-06-03 19:42:49.539 [mp3 @ 0x2db3960]Header missing
2010-06-03 19:42:49.800 PlaybackBoxHelper: Not requesting preview as it is already being generated
2010-06-03 19:42:49.970 AFD: Opened codec 0x903e440, id(MPEG2VIDEO) type(Video)
2010-06-03 19:42:49.970 AFD: codec MP2 has 2 channels
2010-06-03 19:42:49.970 AFD: Opened codec 0x9040040, id(MP2) type(Audio)
2010-06-03 19:42:49.970 AFD Error: Could not find decoder for codec (DVB_TELETEXT), ignoring.
2010-06-03 19:42:49.971 Error preparing query: SELECT mark, offset FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
2010-06-03 19:42:49.971 Driver error was [2/144]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/recordedseek' is marked as crashed and last (automatic?) repair failed

2010-06-03 19:42:49.971 Error preparing query: SELECT mark, offset FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
2010-06-03 19:42:49.971 Driver error was [2/144]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/recordedseek' is marked as crashed and last (automatic?) repair failed

2010-06-03 19:42:49.971 Error preparing query: SELECT mark, offset FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
2010-06-03 19:42:49.972 Driver error was [2/144]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/recordedseek' is marked as crashed and last (automatic?) repair failed

2010-06-03 19:42:49.973 NVP(0): GetScreenGrabAtFrame: Recording does not have position map so we will be unable to grab the desired frame.

2010-06-03 19:42:49.973 Run 'mythcommflag --file 7300_20100603190000.mpg --rebuild' to fix.
2010-06-03 19:42:49.973 If that does not work and this is a .mpg file, try 'mythtranscode --mpeg2 --buildindex --allkeys -c 7300 -s 20100603190000'.
2010-06-03 19:42:50.017 Preview: Grabbed preview '/myth0/7300_20100603190000.mpg' 720x576@205s
2010-06-03 19:42:50.064 ~MythContext waiting for threads to exit.
2010-06-03 19:42:50.074 Preview: Preview process returned 0.
2010-06-03 19:42:50.074 Preview: Preview process ran ok.
2010-06-03 19:42:50.074 PlaybackBoxHelper: Preview for '/myth0/7300_20100603190000.mpg' ready
2010-06-03 19:42:50.074 PlaybackBoxHelper: Preview for '/myth0/7300_20100603190000.mpg.png' done
2010-06-03 19:42:50.080 Preview: previewThreadDone took 6ms
2010-06-03 19:42:58.328 PlaybackBox: UpdateUIListItem called with a title unknown to us in m_recordingList
 NCIS Los Angeles:Amerikansk kriminalserie från 2009-10. En kapten dör i vad som ser ut som ett självmord, men NCIS-teamet hittar bevis som indike
2010-06-03 19:43:03.987 PlaybackBox: UpdateUIListItem called with a title unknown to us in m_recordingList
 NCIS Los Angeles:Amerikansk kriminalserie från 2009-10. En kapten dör i vad som ser ut som ett självmord, men NCIS-teamet hittar bevis som indike

Running mythcommflag gives the events below, it appears to try to commflag another recording that´s already being commflag processed.

mythtv@media:/home/henrik$ mythcommflag --file 7300_20100603190000.mpg --rebuild
2010-06-03 19:47:18.059 Using runtime prefix = /usr
2010-06-03 19:47:18.059 Using configuration directory = /home/mythtv/.mythtv
2010-06-03 19:47:18.059 Empty LocalHostName.
2010-06-03 19:47:18.064 New DB connection, total: 1
2010-06-03 19:47:18.067 Closing DB connection named 'DBManager0'
2010-06-03 19:47:18.069 mythcommflag version: 0.23.20100314-1 www.mythtv.org
2010-06-03 19:47:18.070 Enabled verbose msgs: important

MythTV Commercial Flagger, started at Thu Jun  3 19:47:18 2010
Rebuilding SeekTable(s) for:
ChanID  Start Time      Title                                      Status
------  --------------  -----------------------------------------  ------
2010-06-03 19:47:18.071 ProgramInfo(): Updated pathname '':'' -> '7300_20100603190000.mpg'
7300   20100603190000 Ett nytt liv på landet - återbesök        IN USE
                        (the program is already being flagged elsewhere)

Finished commercial break flagging at Thu Jun  3 19:47:18 2010

Running hint number two gives, 
mythtv@media:/home/henrik$ mythtranscode --mpeg2 --buildindex --allkeys -c 7300 -s 20100603190000
2010-06-03 19:53:01.700 Using runtime prefix = /usr
2010-06-03 19:53:01.700 Using configuration directory = /home/mythtv/.mythtv
2010-06-03 19:53:01.701 Empty LocalHostName.
2010-06-03 19:53:01.751 New DB connection, total: 1
2010-06-03 19:53:01.755 Closing DB connection named 'DBManager0'
2010-06-03 19:53:01.756 Enabled verbose msgs: important
2010-06-03 19:53:01.758 ProgramInfo(): Updated pathname '':'' -> '7300_20100603190000.mpg'
2010-06-03 19:53:01.795 Header missing
2010-06-03 19:53:29.109 DB Error (clear position map):
Query was:
DELETE FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
Bindings were:
:CHANID=7300, :STARTTIME=2010-06-03T19:00:00, :TYPE=7
Driver error was [2/1064]:
QMYSQL: Unable to execute query
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':CHANID AND starttime = :STARTTIME AND type = :TYPE' at line 1

2010-06-03 19:53:29.111 DB Error (clear position map):
Query was:
DELETE FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE ;
Bindings were:
:CHANID=7300, :STARTTIME=2010-06-03T19:00:00, :TYPE=6
Driver error was [2/1064]:
QMYSQL: Unable to execute query
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':CHANID AND starttime = :STARTTIME AND type = :TYPE' at line 1

2010-06-03 19:53:29.111 DB Error (position map clear):
Query was:
DELETE FROM recordedseek WHERE chanid = :CHANID AND starttime = :STARTTIME AND type = :TYPE;
Bindings were:
:CHANID=7300, :STARTTIME=2010-06-03T19:00:00, :TYPE=9
Driver error was [2/1064]:
QMYSQL: Unable to execute query
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':CHANID AND starttime = :STARTTIME AND type = :TYPE' at line 1

2010-06-03 19:53:29.112 DB Error (position map insert):
Query was:
INSERT INTO recordedseek (chanid, starttime, mark, type, offset)  VALUES ( :CHANID , :STARTTIME , :MARK , :TYPE , :OFFSET )
Bindings were:
:CHANID=7300, :MARK=0, :OFFSET=376, :STARTTIME=2010-06-03T19:00:00, :TYPE=9
Driver error was [2/1064]:
QMYSQL: Unable to execute query
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':CHANID , :STARTTIME , :MARK , :TYPE , :OFFSET )' at line 1