[mythtv-users] HDPVR problems

Mark Dryden renegade8040 at gmail.com
Sun Feb 6 05:40:38 UTC 2011


On Sat, Feb 5, 2011 at 6:22 PM, Tom Runner <tomj.runner at gmail.com> wrote:

> Logs are in /var/log/mythtv
>
> you should start without changing script until you have a working
> configuration. So setting /bin/true.
>
>
>
>
> On Sun, Feb 6, 2011 at 4:08 AM, Mark Dryden <renegade8040 at gmail.com>wrote:
>
>>
>>
>> On Sat, Feb 5, 2011 at 5:25 AM, Tom Runner <tomj.runner at gmail.com> wrote:
>>
>>>
>>>
>>> On Sat, Feb 5, 2011 at 9:06 AM, Mark Dryden <renegade8040 at gmail.com>wrote:
>>>
>>>>
>>>>
>>>> On Fri, Feb 4, 2011 at 5:39 PM, Ramin K <ramin-list at badapple.net>wrote:
>>>>
>>>>> On 2/4/2011 4:04 PM, Mark Dryden wrote:
>>>>>
>>>>>> Hi,
>>>>>> I followed the instructions found at http://www.mythtv.org/wiki/HDPVR
>>>>>> and everything goes well until I get to the part where you run the
>>>>>> command "cat /dev/video1 > test.ts".  I get the error message "cat:
>>>>>> write error: Bad address".  I'm not exactly sure why and I have been
>>>>>> trying to figure it out for the past 2 days.  I also can't view live
>>>>>> tv,
>>>>>> it shows up as a black screen.  Any suggestions?
>>>>>>
>>>>>
>>>>>        Are you sure your device is on /dev/video1 instead of
>>>>> /dev/video0 which is usually the default? Do an ls /dev and see which
>>>>> /dev/videoXX you have, then follow the wiki based on that.
>>>>>
>>>>> Ramin
>>>>> _______________________________________________
>>>>> mythtv-users mailing list
>>>>> mythtv-users at mythtv.org
>>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>>
>>>>
>>>>
>>>> My device is on /dev/video0 for sure.  Using Roberts suggestion I ran
>>>> "v4l2-ctl --device=/dev/video0 --set-input=2" to set the video input to be
>>>> composite.  Now I can use the cat command to create a video file that
>>>> actually works.  I have a new problem though.  When I open the mythtv front
>>>> end, the video input is set to 0 which is component.  I think that's why I'm
>>>> getting a black screen when I try to watch live tv from the front end.  I
>>>> have the back end capture card setup to use the composite inputs but that
>>>> doesn't seem to work.  Also I now know that my channel change script doesn't
>>>> work.  Why would the front end switch the video input on me?
>>>>
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users at mythtv.org
>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>
>>>> Hi Mark,
>>>
>>> Normally the command "v4l2-ctl --device=/dev/video0 --set-input=2" will
>>> just set temporarily the input and will not override the mythbackend setup.
>>> During the various test I made, I noticed the HDPVR is touchy with the
>>> cables. I faced sometimes the /dev/video0 being changed to /dev/video1,
>>> simply because I unplugged the usb cable (I'm using ubuntu).
>>> What I would check:
>>> - on the  HDPVR, only having composite cable being plugged, if for
>>> instance you have spdif in but not out, it may not work
>>> - on the backend, cross-check again the card is well set on /dev/video0
>>> - backend input card, making sure you have your source setup on Composite
>>> (3r line normally). I guess your problem is here.
>>> - still backend input card, composite, making sure you have /bin/true in
>>> the "external channel change"
>>>
>>> Finally if all is good, please provide the log error.
>>>
>>>
>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>
>>>
>> I finally figured out why its changing to component and not using the
>> composite.  On the "Input Connections" page, I had set up the component
>> input with the video source and not the composite one.  Once I removed the
>> video source from the component and added it into the composite, it stopped
>> giving me the above problem.  I'm still not getting any video when I go to
>> watch live tv though.  And my channel changing script works when I call it
>> on the command line, but it doesn't work through the live tv page.  I
>> noticed that when I use the cat command the HDPVR lights up blue, but when I
>> try to watch through the live tv page it doesn't.  Anyone have any
>> suggestions.  Also, where is the error log files located?
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
I changed my script to /bin/true and re-ran the front end capturing the
output in a log file.  From what I can tell, there is an LIRC error, which
explains the problem with the channel changing.  The other errors I see are
"AddDevice()" errors, /dev/bdi, /dev/power, /dev/trace are showing these
errors. Everything else looks good.

In /var/log/mythtv There are a few errors in the log file.  A
"LoadFromScheduler()" error and a "Channel(/dev/video0)::Tune()".  Below are
the two log files with everything.  I have highlighted the error lines with
a bunch of *.  Hopefully someone can give me an idea of where to look to
start debugging this.

mythfrontend:
2011-02-05 22:20:11.817 mythfrontend version: exported [Unknown]
www.mythtv.org
2011-02-05 22:20:11.817 Using runtime prefix = /usr
2011-02-05 22:20:11.817 Using configuration directory = /home/mark/.mythtv
2011-02-05 22:20:11.818 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
2011-02-05 22:20:12.310 Empty LocalHostName.
2011-02-05 22:20:12.311 Using localhost value of Domino.site
2011-02-05 22:20:12.311 Testing network connectivity to '192.168.0.238'
2011-02-05 22:20:12.631 New DB connection, total: 1
2011-02-05 22:20:12.651 Connected to database 'mythconverg' at host:
192.168.0.238
2011-02-05 22:20:12.668 Closing DB connection named 'DBManager0'
2011-02-05 22:20:12.682 Connected to database 'mythconverg' at host:
192.168.0.238
2011-02-05 22:20:12.689 Current locale en_US
2011-02-05 22:20:12.689 Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2011-02-05 22:20:13.615 ScreenSaverX11Private: Gnome screen saver support
enabled
2011-02-05 22:20:13.617 DPMS is disabled.
2011-02-05 22:20:13.961 Desktop video mode: 1280x800 59.810 Hz
2011-02-05 22:20:14.889 Enabled verbose msgs:  important general
2011-02-05 22:20:15.136 Loading en_us translation for module mythfrontend
****************2011-02-05 22:20:15.199 LIRC, Error: Failed to connect to
Unix socket '/var/run/lirc/lircd'
            eno: No such file or directory (2)
2011-02-05 22:20:15.200 JoystickMenuThread: Joystick disabled - Failed to
read /home/mark/.mythtv/joystickmenurc
2011-02-05 22:20:15.748 Using Frameless Window
2011-02-05 22:20:15.750 Using Full Screen Window
2011-02-05 22:20:15.985 Using the Qt painter
2011-02-05 22:20:16.665 New DB connection, total: 2
2011-02-05 22:20:16.666 New DB connection, total: 3
2011-02-05 22:20:16.678 Current MythTV Schema Version (DBSchemaVer): 1264
2011-02-05 22:20:16.681 Connected to database 'mythconverg' at host:
192.168.0.238
2011-02-05 22:20:16.693 Connected to database 'mythconverg' at host:
192.168.0.238
2011-02-05 22:20:30.232 Registering Internal as a media playback plugin.
2011-02-05 22:20:30.377 Loading en_us translation for module mytharchive
2011-02-05 22:20:30.401 Registering WebBrowser as a media playback plugin.
2011-02-05 22:20:30.401 Loading en_us translation for module mythbrowser
****************2011-02-05 22:20:30.539 MMUnix::AddDevice() Error: failed to
stat /dev/bdi,
            eno: No such file or directory (2)
****************2011-02-05 22:20:30.550 MMUnix::AddDevice() Error: failed to
stat /dev/power,
            eno: No such file or directory (2)
****************2011-02-05 22:20:30.562 MMUnix::AddDevice() Error: failed to
stat /dev/trace,
            eno: No such file or directory (2)
2011-02-05 22:20:30.576 MonitorRegisterExtensions(0x100, gif,jpg,png)
2011-02-05 22:20:30.577 Loading en_us translation for module mythgallery
2011-02-05 22:20:30.610 Loading en_us translation for module mythgame
2011-02-05 22:20:30.642 Current MythMusic Schema Version (MusicDBSchemaVer):
1017
2011-02-05 22:20:30.861 MonitorRegisterExtensions(0x40,
mp3,mp2,ogg,oga,flac,wma,wav,ac3,oma,omg,atp,ra,dts,aac,m4a,aa3,tta,mka,aiff,swa,wv)
2011-02-05 22:20:30.891 Loading en_us translation for module mythmusic
2011-02-05 22:20:30.900 Loading en_us translation for module mythnetvision
2011-02-05 22:20:30.920 Loading en_us translation for module mythnews
2011-02-05 22:20:30.947 Current MythVideo Schema Version
(mythvideo.DBSchemaVer): 1038
2011-02-05 22:20:31.055 Loading en_us translation for module mythvideo
2011-02-05 22:20:31.088 Loading en_us translation for module mythweather
2011-02-05 22:20:31.103 Loading en_us translation for module mythzoneminder
2011-02-05 22:20:31.292 Found mainmenu.xml for theme 'Terra'
2011-02-05 22:20:31.399 MythCoreContext: Connecting to backend server:
192.168.0.238:6543 (try 1 of 1)
2011-02-05 22:20:31.402 Using protocol version 63
2011-02-05 22:20:31.722 Warning! Time difference between the master backend
and this system is 118 seconds.
2011-02-05 22:20:34.869 TV: Attempting to change from None to WatchingLiveTV
2011-02-05 22:20:34.870 MythCoreContext: Connecting to backend server:
192.168.0.238:6543 (try 1 of 1)
2011-02-05 22:20:34.872 Using protocol version 63
2011-02-05 22:20:34.896 Spawning LiveTV Recorder -- begin
2011-02-05 22:20:35.355 Spawning LiveTV Recorder -- end
2011-02-05 22:20:35.425 We have a playbackURL(myth://
192.168.0.238:6543/1001_20110205222233.mpg) & cardtype(DUMMY)
2011-02-05 22:20:35.425 We have a RingBuffer
2011-02-05 22:20:36.451 VideoOutputXv: XVideo Adaptor Name: 'Intel(R)
Textured Video'
2011-02-05 22:20:36.520 OSD: Base theme size: 1280x720
2011-02-05 22:20:36.520 OSD: Scaling factors: 0.5625x0.8
2011-02-05 22:20:36.725 OSD: Base theme size: 1280x720
2011-02-05 22:20:36.725 OSD: Scaling factors: 0.5625x0.8
2011-02-05 22:20:36.726 OSD: Base theme size: 1280x720
2011-02-05 22:20:36.726 OSD: Scaling factors: 0.5625x0.8
2011-02-05 22:20:36.745 Player(0): Video timing method: USleep with busy
wait
2011-02-05 22:20:36.746 TV: Changing from None to WatchingLiveTV
2011-02-05 22:20:36.746 TV: State is LiveTV & mctx == ctx
2011-02-05 22:20:36.752 TV: UpdateOSDInput done
2011-02-05 22:20:36.752 TV: UpdateLCD done
2011-02-05 22:20:36.752 TV: ITVRestart done
2011-02-05 22:20:36.927 VideoOutput: Created YV12 OSD.
2011-02-05 22:20:48.791 OSD: Base theme size: 1280x720
2011-02-05 22:20:48.791 OSD: Scaling factors: 0.5625x0.8
2011-02-05 22:20:50.109 TV: OSDDialogEvent: result 0 text OK action
DIALOG_INFO_CHANNELLOCK_0
2011-02-05 22:20:52.222 TV: Attempting to change from WatchingLiveTV to None
2011-02-05 22:20:52.263 TV: Changing from WatchingLiveTV to None
2011-02-05 22:20:54.662 Deleting UPnP client...

mythbackend.log:
2011-02-05 22:13:19.675 Already running as 'root'
2011-02-05 22:13:19.751 mythbackend version: exported [0.24-2.fc12 (r27317)]
www.mythtv.org
2011-02-05 22:13:19.901 Using runtime prefix = /usr
2011-02-05 22:13:20.442 Read conf dir = /home/mythtv
2011-02-05 22:13:20.475 Using configuration directory = /home/mythtv
2011-02-05 22:13:20.539 Unable to read configuration file mysql.txt
2011-02-05 22:13:20.567 Empty LocalHostName.
2011-02-05 22:13:20.609 Using localhost value of Blue-Beetle
2011-02-05 22:13:20.667 New DB connection, total: 1
2011-02-05 22:13:20.787 Connected to database 'mythconverg' at host:
localhost
2011-02-05 22:13:21.292 Closing DB connection named 'DBManager0'
2011-02-05 22:13:21.318 Connected to database 'mythconverg' at host:
localhost
2011-02-05 22:13:21.372 Current locale en_US
2011-02-05 22:13:21.408 Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2011-02-05 22:13:21.447 Current MythTV Schema Version (DBSchemaVer): 1264
2011-02-05 22:13:21.478 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
2011-02-05 22:13:21.527 Enabling Upnpmedia rebuild thread.
2011-02-05 22:13:22.761 MythBackend: Starting up as the master server.
2011-02-05 22:13:22.836 New DB connection, total: 2
2011-02-05 22:13:22.872 Connected to database 'mythconverg' at host:
localhost
2011-02-05 22:13:23.006 New DB connection, total: 3
2011-02-05 22:13:23.022 Connected to database 'mythconverg' at host:
localhost
****************2011-02-05 22:13:23.124 Channel(/dev/video0)::Tune(): Error
-1 while setting frequency (v2): Invalid argument
2011-02-05 22:13:23.239 New DB scheduler connection
2011-02-05 22:13:23.247 Connected to database 'mythconverg' at host:
localhost
2011-02-05 22:13:23.299 Main::Registering HttpStatus Extension
2011-02-05 22:13:23.320 Enabled verbose msgs:  important general
2011-02-05 22:13:23.373 AutoExpire: CalcParams(): Max required Free Space:
1.0 GB w/freq: 15 min
2011-02-05 22:13:26.298 Reschedule requested for id -1.
2011-02-05 22:13:26.885 Scheduled 0 items in 0.6 = 0.35 match + 0.24 place
2011-02-05 22:13:26.898 Seem to be woken up by USER
2011-02-05 22:13:31.622 UPnpMedia: BuildMediaMap VIDEO scan starting in
:/var/lib/mythvideo:
2011-02-05 22:13:31.657 UPnpMedia: BuildMediaMap Done. Found 0 objects
2011-02-05 22:14:43.304 AutoExpire: CalcParams(): Max required Free Space:
1.0 GB w/freq: 15 min
2011-02-05 22:22:29.374 MainServer::ANN Monitor
2011-02-05 22:22:29.380 adding: Domino.site as a client (events: 0)
2011-02-05 22:22:29.390 MainServer::ANN Monitor
2011-02-05 22:22:29.396 adding: Domino.site as a client (events: 1)
2011-02-05 22:22:32.843 MainServer::ANN Playback
2011-02-05 22:22:32.853 adding: Domino.site as a client (events: 0)
2011-02-05 22:22:32.880 TVRec(1): Changing from None to WatchingLiveTV
2011-02-05 22:22:32.892 TVRec(1): HW Tuner: 1->1
****************2011-02-05 22:22:32.938 LoadFromScheduler(): Error, called
from backend.
2011-02-05 22:22:32.943 AutoExpire: CalcParams(): Max required Free Space:
3.0 GB w/freq: 15 min
****************2011-02-05 22:22:33.310 Channel(/dev/video0)::Tune(): Error
-1 while setting frequency (v2): Invalid argument
2011-02-05 22:22:50.207 TVRec(1): Changing from WatchingLiveTV to None
2011-02-05 22:22:50.227 Finished recording Local Origination: channel 1001
2011-02-05 22:24:43.358 Expiring 0 MB for 1001 at 2011-02-05T22:22:33 =>
"Local Origination"
2011-02-05 22:29:43.384 AutoExpire: CalcParams(): Max required Free Space:
1.0 GB w/freq: 15 min
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20110205/ed7a1e35/attachment.htm>


More information about the mythtv-users mailing list