Keithamus
April 4th, 2009, 10:46 AM
I have issues with my mythbackend. I re-set-up all of my tuners and channels because the local (Rowridge) transmitter retune was causing me jip. Now mythbackend won't load, complaining about the DVB card being busy.
I've already posted this in a separate thread - but figured it is best off on its own, being a separate issue. Here is all the logs and outputs I can think of that may help:
$ dmesg | grep -i dvb
[ 12.145017] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in cold state, will try to load a firmware
[ 12.145022] firmware: requesting dvb-usb-dib0700-1.10.fw
[ 13.497857] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.10.fw'
[ 14.204044] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in warm state.
[ 14.204171] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 14.835330] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 15.452185] dvb-usb: schedule remote query interval to 150 msecs.
[ 15.452191] dvb-usb: Hauppauge Nova-T 500 Dual DVB-T successfully initialized and connected.
[ 15.452473] usbcore: registered new interface driver dvb_usb_dib0700
$ mythbackend -d >> log.txt
$ cat log.txt
2009-04-03 20:42:31.026 Using runtime prefix = /usr
2009-04-03 20:42:31.027 Empty LocalHostName.
2009-04-03 20:42:31.027 Using localhost value of cerberus
2009-04-03 20:42:31.034 New DB connection, total: 1
2009-04-03 20:42:31.038 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.038 Closing DB connection named 'DBManager0'
2009-04-03 20:42:31.039 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.040 New DB connection, total: 2
2009-04-03 20:42:31.040 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.041 Current Schema Version: 1214
2009-04-03 20:42:31.187 New DB connection, total: 3
2009-04-03 20:42:31.187 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.580 TVRec(2) Error: Problem finding starting channel, setting to default of '3'.
2009-04-03 20:42:31.590 ChannelBase(2) Error: InitializeInputs():
Could not get inputs for the capturecard.
Perhaps you have forgotten to bind video
sources to your card's inputs?
$ cat .mythtv/Default.xmltv
encoding=utf-8
cachedir=/home/pundit/.xmltv/cache
title-processing=enabled
postcode=#CENSORED#
platform=freeview
channel=4music.channel4.com
channel=bbcfour.bbc.co.uk
channel=news.bbc.co.uk
channel=south.bbc1.bbc.co.uk
channel=parliament.bbc.co.uk
channel=interactive.sport.bbc.co.uk
channel=bbcthree.bbc.co.uk
channel=south.bbc2.bbc.co.uk
channel=bid.tv
channel=cbbc.bbc.co.uk
channel=cbeebies.bbc.co.uk
channel=channel4.com
channel=tsod.plus-1.channel4.com
channel=citv.itv.co.uk
channel=freeview.europe.cnn.com
channel=freeview.communitychannel.org
channel=dave.uktv.co.uk
channel=tsod.plus-1.dave.uktv.co.uk
channel=e4.channel4.com
channel=tsod.plus-1.e4.channel4.com
channel=filmfour.channel4.com
channel=channel5.co.uk
channel=fiveusa.channel5.co.uk
channel=fiver.channel5.co.uk
channel=idealworld.tv
channel=meridian.itv1.itv.co.uk
channel=itv2.itv.co.uk
channel=tsod.plus-1.itv2.itv.co.uk
channel=itv3.itv.co.uk
channel=itv4.itv.co.uk
channel=more4.channel4.com
channel=qvcuk.com
channel=sky-news.sky.com
channel=news.sports.sky.com
channel=sky-three.sky.com
channel=dvb.teachers.tv
channel=tmf.nl
channel=freeview.1.virginmedia.com
channel=freeview.yesterday.uktv.co.uk
If this helps at all, these are my relevant SQL tables:
mysql> SELECT * FROM capturecard;
+--------+-------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+------------+----------------+------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+
| cardid | videodevice | audiodevice | vbidevice | cardtype | defaultinput | audioratelimit | hostname | dvb_swfilter | dvb_sat_type | dvb_wait_for_seqstart | skipbtaudio | dvb_on_demand | dvb_diseqc_type | firewire_speed | firewire_model | firewire_connection | dbox2_port | dbox2_httpport | dbox2_host | signal_timeout | channel_timeout | dvb_tuning_delay | contrast | brightness | colour | hue | diseqcid | dvb_eitscan |
+--------+-------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+------------+----------------+------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+
| 1 | 0 | | | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | NULL | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | NULL | NULL | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | 0 | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
| 3 | 1 | | | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | NULL | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
| 4 | 1 | NULL | NULL | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | 0 | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
+--------+-------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+------------+----------------+------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+
4 rows in set (0.00 sec)
mysql> SELECT * FROM cardinput;
+-------------+--------+----------+-----------+-----------------+-----------+----------+-----------+---------------+-------------+---------------+-------------+-------------+-----------+
| cardinputid | cardid | sourceid | inputname | externalcommand | shareable | tunechan | startchan | freetoaironly | displayname | radioservices | dishnet_eit | recpriority | quicktune |
+-------------+--------+----------+-----------+-----------------+-----------+----------+-----------+---------------+-------------+---------------+-------------+-------------+-----------+
| 1 | 1 | 1 | DVBInput | NULL | N | NULL | 1 | 1 | Tuner 1 | 1 | 0 | 0 | 1 |
| 2 | 3 | 1 | DVBInput | NULL | N | NULL | 1 | 1 | Tuner 2 | 1 | 0 | 0 | 1 |
+-------------+--------+----------+-----------+-----------------+-----------+----------+-----------+---------------+-------------+---------------+-------------+-------------+-----------+
2 rows in set (0.00 sec)
mysql> SELECT * FROM dtv_multiplex;
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+------------+----------------+---------------------+
| mplexid | sourceid | transportid | networkid | frequency | inversion | symbolrate | fec | polarity | modulation | bandwidth | lp_code_rate | transmission_mode | guard_interval | visible | constellation | hierarchy | hp_code_rate | sistandard | serviceversion | updatetimestamp |
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+------------+----------------+---------------------+
| 1 | 1 | 24576 | 9018 | 570166670 | a | NULL | NULL | NULL | NULL | 8 | 3/4 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 0 | 2009-04-03 19:28:37 |
| 2 | 1 | 4099 | 9018 | 578166670 | a | NULL | NULL | NULL | NULL | 8 | 3/4 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 1 | 2009-04-03 19:28:53 |
| 3 | 1 | 8206 | 9018 | 562000000 | a | NULL | NULL | NULL | NULL | 8 | 1/2 | 2 | 1/32 | 0 | qam_64 | n | 2/3 | dvb | 0 | 2009-04-03 19:28:42 |
| 4 | 1 | 12290 | 9018 | 545833330 | a | NULL | NULL | NULL | NULL | 8 | 1/2 | 2 | 1/32 | 0 | qam_64 | n | 2/3 | dvb | 2 | 2009-04-03 19:28:33 |
| 5 | 1 | 16384 | 9018 | 530000000 | a | NULL | NULL | NULL | NULL | 8 | 3/4 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 15 | 2009-04-03 19:28:23 |
| 6 | 1 | 20480 | 9018 | 602000000 | a | 0 | auto | v | qam_16 | 8 | 1/2 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 15 | 2009-04-03 19:28:58 |
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+------------+----------------+---------------------+
6 rows in set (0.05 sec)
mysql> SELECT * FROM inputgroup;
+-------------+--------------+----------------+
| cardinputid | inputgroupid | inputgroupname |
+-------------+--------------+----------------+
| 1 | 1 | DVB0 |
| 2 | 2 | DVB1 |
+-------------+--------------+----------------+
2 rows in set (0.00 sec)
More stuff from googling around for stuff:
$ lsof /dev/dvb/adapter0/frontend0
$
$ lsof /dev/dvb/adapter1/frontend0
$
$ scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-Rowridge > .tzap/channels.conf
scanning /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-Rowridge
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2247: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 16 Device or resource busy
As I stated in the other thread - Kaffeine works fine to scan and playback all my freeview channels - where Mythbackend bluntly refuses to. It was working pre-march 25th (when the Rowridge transmitter was retuned).
Please help! WAF has dropped exponentially...
I've already posted this in a separate thread - but figured it is best off on its own, being a separate issue. Here is all the logs and outputs I can think of that may help:
$ dmesg | grep -i dvb
[ 12.145017] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in cold state, will try to load a firmware
[ 12.145022] firmware: requesting dvb-usb-dib0700-1.10.fw
[ 13.497857] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.10.fw'
[ 14.204044] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in warm state.
[ 14.204171] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 14.835330] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 15.452185] dvb-usb: schedule remote query interval to 150 msecs.
[ 15.452191] dvb-usb: Hauppauge Nova-T 500 Dual DVB-T successfully initialized and connected.
[ 15.452473] usbcore: registered new interface driver dvb_usb_dib0700
$ mythbackend -d >> log.txt
$ cat log.txt
2009-04-03 20:42:31.026 Using runtime prefix = /usr
2009-04-03 20:42:31.027 Empty LocalHostName.
2009-04-03 20:42:31.027 Using localhost value of cerberus
2009-04-03 20:42:31.034 New DB connection, total: 1
2009-04-03 20:42:31.038 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.038 Closing DB connection named 'DBManager0'
2009-04-03 20:42:31.039 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.040 New DB connection, total: 2
2009-04-03 20:42:31.040 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.041 Current Schema Version: 1214
2009-04-03 20:42:31.187 New DB connection, total: 3
2009-04-03 20:42:31.187 Connected to database 'mythconverg' at host: localhost
2009-04-03 20:42:31.580 TVRec(2) Error: Problem finding starting channel, setting to default of '3'.
2009-04-03 20:42:31.590 ChannelBase(2) Error: InitializeInputs():
Could not get inputs for the capturecard.
Perhaps you have forgotten to bind video
sources to your card's inputs?
$ cat .mythtv/Default.xmltv
encoding=utf-8
cachedir=/home/pundit/.xmltv/cache
title-processing=enabled
postcode=#CENSORED#
platform=freeview
channel=4music.channel4.com
channel=bbcfour.bbc.co.uk
channel=news.bbc.co.uk
channel=south.bbc1.bbc.co.uk
channel=parliament.bbc.co.uk
channel=interactive.sport.bbc.co.uk
channel=bbcthree.bbc.co.uk
channel=south.bbc2.bbc.co.uk
channel=bid.tv
channel=cbbc.bbc.co.uk
channel=cbeebies.bbc.co.uk
channel=channel4.com
channel=tsod.plus-1.channel4.com
channel=citv.itv.co.uk
channel=freeview.europe.cnn.com
channel=freeview.communitychannel.org
channel=dave.uktv.co.uk
channel=tsod.plus-1.dave.uktv.co.uk
channel=e4.channel4.com
channel=tsod.plus-1.e4.channel4.com
channel=filmfour.channel4.com
channel=channel5.co.uk
channel=fiveusa.channel5.co.uk
channel=fiver.channel5.co.uk
channel=idealworld.tv
channel=meridian.itv1.itv.co.uk
channel=itv2.itv.co.uk
channel=tsod.plus-1.itv2.itv.co.uk
channel=itv3.itv.co.uk
channel=itv4.itv.co.uk
channel=more4.channel4.com
channel=qvcuk.com
channel=sky-news.sky.com
channel=news.sports.sky.com
channel=sky-three.sky.com
channel=dvb.teachers.tv
channel=tmf.nl
channel=freeview.1.virginmedia.com
channel=freeview.yesterday.uktv.co.uk
If this helps at all, these are my relevant SQL tables:
mysql> SELECT * FROM capturecard;
+--------+-------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+------------+----------------+------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+
| cardid | videodevice | audiodevice | vbidevice | cardtype | defaultinput | audioratelimit | hostname | dvb_swfilter | dvb_sat_type | dvb_wait_for_seqstart | skipbtaudio | dvb_on_demand | dvb_diseqc_type | firewire_speed | firewire_model | firewire_connection | dbox2_port | dbox2_httpport | dbox2_host | signal_timeout | channel_timeout | dvb_tuning_delay | contrast | brightness | colour | hue | diseqcid | dvb_eitscan |
+--------+-------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+------------+----------------+------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+
| 1 | 0 | | | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | NULL | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | NULL | NULL | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | 0 | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
| 3 | 1 | | | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | NULL | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
| 4 | 1 | NULL | NULL | DVB | DVBInput | NULL | cerberus | 0 | 0 | 1 | 0 | 1 | 0 | 0 | NULL | 0 | 31338 | 80 | NULL | 500 | 3000 | 25 | 0 | 0 | 0 | 0 | 0 | 0 |
+--------+-------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+------------+----------------+------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+
4 rows in set (0.00 sec)
mysql> SELECT * FROM cardinput;
+-------------+--------+----------+-----------+-----------------+-----------+----------+-----------+---------------+-------------+---------------+-------------+-------------+-----------+
| cardinputid | cardid | sourceid | inputname | externalcommand | shareable | tunechan | startchan | freetoaironly | displayname | radioservices | dishnet_eit | recpriority | quicktune |
+-------------+--------+----------+-----------+-----------------+-----------+----------+-----------+---------------+-------------+---------------+-------------+-------------+-----------+
| 1 | 1 | 1 | DVBInput | NULL | N | NULL | 1 | 1 | Tuner 1 | 1 | 0 | 0 | 1 |
| 2 | 3 | 1 | DVBInput | NULL | N | NULL | 1 | 1 | Tuner 2 | 1 | 0 | 0 | 1 |
+-------------+--------+----------+-----------+-----------------+-----------+----------+-----------+---------------+-------------+---------------+-------------+-------------+-----------+
2 rows in set (0.00 sec)
mysql> SELECT * FROM dtv_multiplex;
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+------------+----------------+---------------------+
| mplexid | sourceid | transportid | networkid | frequency | inversion | symbolrate | fec | polarity | modulation | bandwidth | lp_code_rate | transmission_mode | guard_interval | visible | constellation | hierarchy | hp_code_rate | sistandard | serviceversion | updatetimestamp |
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+------------+----------------+---------------------+
| 1 | 1 | 24576 | 9018 | 570166670 | a | NULL | NULL | NULL | NULL | 8 | 3/4 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 0 | 2009-04-03 19:28:37 |
| 2 | 1 | 4099 | 9018 | 578166670 | a | NULL | NULL | NULL | NULL | 8 | 3/4 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 1 | 2009-04-03 19:28:53 |
| 3 | 1 | 8206 | 9018 | 562000000 | a | NULL | NULL | NULL | NULL | 8 | 1/2 | 2 | 1/32 | 0 | qam_64 | n | 2/3 | dvb | 0 | 2009-04-03 19:28:42 |
| 4 | 1 | 12290 | 9018 | 545833330 | a | NULL | NULL | NULL | NULL | 8 | 1/2 | 2 | 1/32 | 0 | qam_64 | n | 2/3 | dvb | 2 | 2009-04-03 19:28:33 |
| 5 | 1 | 16384 | 9018 | 530000000 | a | NULL | NULL | NULL | NULL | 8 | 3/4 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 15 | 2009-04-03 19:28:23 |
| 6 | 1 | 20480 | 9018 | 602000000 | a | 0 | auto | v | qam_16 | 8 | 1/2 | 2 | 1/32 | 0 | qam_16 | n | 3/4 | dvb | 15 | 2009-04-03 19:28:58 |
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+------------+----------------+---------------------+
6 rows in set (0.05 sec)
mysql> SELECT * FROM inputgroup;
+-------------+--------------+----------------+
| cardinputid | inputgroupid | inputgroupname |
+-------------+--------------+----------------+
| 1 | 1 | DVB0 |
| 2 | 2 | DVB1 |
+-------------+--------------+----------------+
2 rows in set (0.00 sec)
More stuff from googling around for stuff:
$ lsof /dev/dvb/adapter0/frontend0
$
$ lsof /dev/dvb/adapter1/frontend0
$
$ scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-Rowridge > .tzap/channels.conf
scanning /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-Rowridge
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2247: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 16 Device or resource busy
As I stated in the other thread - Kaffeine works fine to scan and playback all my freeview channels - where Mythbackend bluntly refuses to. It was working pre-march 25th (when the Rowridge transmitter was retuned).
Please help! WAF has dropped exponentially...