<br><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 6:22 PM, Tom Runner <span dir="ltr"><<a href="mailto:tomj.runner@gmail.com">tomj.runner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Logs are in /var/log/mythtv<br><br>you should start without changing script until you have a working configuration. So setting /bin/true.<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Sun, Feb 6, 2011 at 4:08 AM, Mark Dryden <span dir="ltr"><<a href="mailto:renegade8040@gmail.com" target="_blank">renegade8040@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><br><div class="gmail_quote"><div><div></div><div>On Sat, Feb 5, 2011 at 5:25 AM, Tom Runner <span dir="ltr"><<a href="mailto:tomj.runner@gmail.com" target="_blank">tomj.runner@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div><br><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 9:06 AM, Mark Dryden <span dir="ltr"><<a href="mailto:renegade8040@gmail.com" target="_blank">renegade8040@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div><br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 5:39 PM, Ramin K <span dir="ltr"><<a href="mailto:ramin-list@badapple.net" target="_blank">ramin-list@badapple.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div>On 2/4/2011 4:04 PM, Mark Dryden wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
I followed the instructions found at <a href="http://www.mythtv.org/wiki/HDPVR" target="_blank">http://www.mythtv.org/wiki/HDPVR</a><br>
and everything goes well until I get to the part where you run the<br>
command "cat /dev/video1 > test.ts". I get the error message "cat:<br>
write error: Bad address". I'm not exactly sure why and I have been<br>
trying to figure it out for the past 2 days. I also can't view live tv,<br>
it shows up as a black screen. Any suggestions?<br>
</blockquote>
<br></div></div>
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.<br>
<br>
Ramin<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><br><br></div></div>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?<br>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div></div></div>Hi Mark,<br><br>Normally the command "v4l2-ctl --device=/dev/video0 --set-input=2" will just set temporarily the input and will not override the mythbackend setup.<br>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).<br>
What I would check:<br>- on the HDPVR, only having composite cable being plugged, if for instance you have spdif in but not out, it may not work<br>- on the backend, cross-check again the card is well set on /dev/video0 <br>
- backend input card, making sure you have your source setup on Composite (3r line normally). I guess your problem is here.<br>- still backend input card, composite, making sure you have /bin/true in the "external channel change"<br>
<br>Finally if all is good, please provide the log error.<br><br><br>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div></div><div><br>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?<br>
<br></div></div><br>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></blockquote><div><br>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. <br>
<br>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.<br>
<br>mythfrontend: <br>2011-02-05 22:20:11.817 mythfrontend version: exported [Unknown] <a href="http://www.mythtv.org">www.mythtv.org</a><br>2011-02-05 22:20:11.817 Using runtime prefix = /usr<br>2011-02-05 22:20:11.817 Using configuration directory = /home/mark/.mythtv<br>
2011-02-05 22:20:11.818 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000<br>2011-02-05 22:20:12.310 Empty LocalHostName.<br>2011-02-05 22:20:12.311 Using localhost value of Domino.site<br>2011-02-05 22:20:12.311 Testing network connectivity to '192.168.0.238'<br>
2011-02-05 22:20:12.631 New DB connection, total: 1<br>2011-02-05 22:20:12.651 Connected to database 'mythconverg' at host: 192.168.0.238<br>2011-02-05 22:20:12.668 Closing DB connection named 'DBManager0'<br>
2011-02-05 22:20:12.682 Connected to database 'mythconverg' at host: 192.168.0.238<br>2011-02-05 22:20:12.689 Current locale en_US<br>2011-02-05 22:20:12.689 Reading locale defaults from /usr/share/mythtv//locales/en_us.xml<br>
2011-02-05 22:20:13.615 ScreenSaverX11Private: Gnome screen saver support enabled<br>2011-02-05 22:20:13.617 DPMS is disabled.<br>2011-02-05 22:20:13.961 Desktop video mode: 1280x800 59.810 Hz<br>2011-02-05 22:20:14.889 Enabled verbose msgs: important general<br>
2011-02-05 22:20:15.136 Loading en_us translation for module mythfrontend<br>****************2011-02-05 22:20:15.199 LIRC, Error: Failed to connect to Unix socket '/var/run/lirc/lircd'<br> eno: No such file or directory (2)<br>
2011-02-05 22:20:15.200 JoystickMenuThread: Joystick disabled - Failed to read /home/mark/.mythtv/joystickmenurc<br>2011-02-05 22:20:15.748 Using Frameless Window<br>2011-02-05 22:20:15.750 Using Full Screen Window<br>2011-02-05 22:20:15.985 Using the Qt painter<br>
2011-02-05 22:20:16.665 New DB connection, total: 2<br>2011-02-05 22:20:16.666 New DB connection, total: 3<br>2011-02-05 22:20:16.678 Current MythTV Schema Version (DBSchemaVer): 1264<br>2011-02-05 22:20:16.681 Connected to database 'mythconverg' at host: 192.168.0.238<br>
2011-02-05 22:20:16.693 Connected to database 'mythconverg' at host: 192.168.0.238<br>2011-02-05 22:20:30.232 Registering Internal as a media playback plugin.<br>2011-02-05 22:20:30.377 Loading en_us translation for module mytharchive<br>
2011-02-05 22:20:30.401 Registering WebBrowser as a media playback plugin.<br>2011-02-05 22:20:30.401 Loading en_us translation for module mythbrowser<br>****************2011-02-05 22:20:30.539 MMUnix::AddDevice() Error: failed to stat /dev/bdi, <br>
eno: No such file or directory (2)<br>****************2011-02-05 22:20:30.550 MMUnix::AddDevice() Error: failed to stat /dev/power, <br> eno: No such file or directory (2)<br>****************2011-02-05 22:20:30.562 MMUnix::AddDevice() Error: failed to stat /dev/trace, <br>
eno: No such file or directory (2)<br>2011-02-05 22:20:30.576 MonitorRegisterExtensions(0x100, gif,jpg,png)<br>2011-02-05 22:20:30.577 Loading en_us translation for module mythgallery<br>2011-02-05 22:20:30.610 Loading en_us translation for module mythgame<br>
2011-02-05 22:20:30.642 Current MythMusic Schema Version (MusicDBSchemaVer): 1017<br>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)<br>
2011-02-05 22:20:30.891 Loading en_us translation for module mythmusic<br>2011-02-05 22:20:30.900 Loading en_us translation for module mythnetvision<br>2011-02-05 22:20:30.920 Loading en_us translation for module mythnews<br>
2011-02-05 22:20:30.947 Current MythVideo Schema Version (mythvideo.DBSchemaVer): 1038<br>2011-02-05 22:20:31.055 Loading en_us translation for module mythvideo<br>2011-02-05 22:20:31.088 Loading en_us translation for module mythweather<br>
2011-02-05 22:20:31.103 Loading en_us translation for module mythzoneminder<br>2011-02-05 22:20:31.292 Found mainmenu.xml for theme 'Terra'<br>2011-02-05 22:20:31.399 MythCoreContext: Connecting to backend server: <a href="http://192.168.0.238:6543">192.168.0.238:6543</a> (try 1 of 1)<br>
2011-02-05 22:20:31.402 Using protocol version 63<br>2011-02-05 22:20:31.722 Warning! Time difference between the master backend and this system is 118 seconds.<br>2011-02-05 22:20:34.869 TV: Attempting to change from None to WatchingLiveTV<br>
2011-02-05 22:20:34.870 MythCoreContext: Connecting to backend server: <a href="http://192.168.0.238:6543">192.168.0.238:6543</a> (try 1 of 1)<br>2011-02-05 22:20:34.872 Using protocol version 63<br>2011-02-05 22:20:34.896 Spawning LiveTV Recorder -- begin<br>
2011-02-05 22:20:35.355 Spawning LiveTV Recorder -- end<br>2011-02-05 22:20:35.425 We have a playbackURL(myth://<a href="http://192.168.0.238:6543/1001_20110205222233.mpg">192.168.0.238:6543/1001_20110205222233.mpg</a>) & cardtype(DUMMY)<br>
2011-02-05 22:20:35.425 We have a RingBuffer<br>2011-02-05 22:20:36.451 VideoOutputXv: XVideo Adaptor Name: 'Intel(R) Textured Video'<br>2011-02-05 22:20:36.520 OSD: Base theme size: 1280x720<br>2011-02-05 22:20:36.520 OSD: Scaling factors: 0.5625x0.8<br>
2011-02-05 22:20:36.725 OSD: Base theme size: 1280x720<br>2011-02-05 22:20:36.725 OSD: Scaling factors: 0.5625x0.8<br>2011-02-05 22:20:36.726 OSD: Base theme size: 1280x720<br>2011-02-05 22:20:36.726 OSD: Scaling factors: 0.5625x0.8<br>
2011-02-05 22:20:36.745 Player(0): Video timing method: USleep with busy wait<br>2011-02-05 22:20:36.746 TV: Changing from None to WatchingLiveTV<br>2011-02-05 22:20:36.746 TV: State is LiveTV & mctx == ctx<br>2011-02-05 22:20:36.752 TV: UpdateOSDInput done<br>
2011-02-05 22:20:36.752 TV: UpdateLCD done<br>2011-02-05 22:20:36.752 TV: ITVRestart done<br>2011-02-05 22:20:36.927 VideoOutput: Created YV12 OSD.<br>2011-02-05 22:20:48.791 OSD: Base theme size: 1280x720<br>2011-02-05 22:20:48.791 OSD: Scaling factors: 0.5625x0.8<br>
2011-02-05 22:20:50.109 TV: OSDDialogEvent: result 0 text OK action DIALOG_INFO_CHANNELLOCK_0<br>2011-02-05 22:20:52.222 TV: Attempting to change from WatchingLiveTV to None<br>2011-02-05 22:20:52.263 TV: Changing from WatchingLiveTV to None<br>
2011-02-05 22:20:54.662 Deleting UPnP client...<br></div></div><br>mythbackend.log:<br>2011-02-05 22:13:19.675 Already running as 'root'<br>2011-02-05 22:13:19.751 mythbackend version: exported [0.24-2.fc12 (r27317)] <a href="http://www.mythtv.org">www.mythtv.org</a><br>
2011-02-05 22:13:19.901 Using runtime prefix = /usr<br>2011-02-05 22:13:20.442 Read conf dir = /home/mythtv<br>2011-02-05 22:13:20.475 Using configuration directory = /home/mythtv<br>2011-02-05 22:13:20.539 Unable to read configuration file mysql.txt<br>
2011-02-05 22:13:20.567 Empty LocalHostName.<br>2011-02-05 22:13:20.609 Using localhost value of Blue-Beetle<br>2011-02-05 22:13:20.667 New DB connection, total: 1<br>2011-02-05 22:13:20.787 Connected to database 'mythconverg' at host: localhost<br>
2011-02-05 22:13:21.292 Closing DB connection named 'DBManager0'<br>2011-02-05 22:13:21.318 Connected to database 'mythconverg' at host: localhost<br>2011-02-05 22:13:21.372 Current locale en_US<br>2011-02-05 22:13:21.408 Reading locale defaults from /usr/share/mythtv//locales/en_us.xml<br>
2011-02-05 22:13:21.447 Current MythTV Schema Version (DBSchemaVer): 1264<br>2011-02-05 22:13:21.478 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000<br>2011-02-05 22:13:21.527 Enabling Upnpmedia rebuild thread.<br>2011-02-05 22:13:22.761 MythBackend: Starting up as the master server.<br>
2011-02-05 22:13:22.836 New DB connection, total: 2<br>2011-02-05 22:13:22.872 Connected to database 'mythconverg' at host: localhost<br>2011-02-05 22:13:23.006 New DB connection, total: 3<br>2011-02-05 22:13:23.022 Connected to database 'mythconverg' at host: localhost<br>
****************2011-02-05 22:13:23.124 Channel(/dev/video0)::Tune(): Error -1 while setting frequency (v2): Invalid argument<br>2011-02-05 22:13:23.239 New DB scheduler connection<br>2011-02-05 22:13:23.247 Connected to database 'mythconverg' at host: localhost<br>
2011-02-05 22:13:23.299 Main::Registering HttpStatus Extension<br>2011-02-05 22:13:23.320 Enabled verbose msgs: important general<br>2011-02-05 22:13:23.373 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min<br>
2011-02-05 22:13:26.298 Reschedule requested for id -1.<br>2011-02-05 22:13:26.885 Scheduled 0 items in 0.6 = 0.35 match + 0.24 place<br>2011-02-05 22:13:26.898 Seem to be woken up by USER<br>2011-02-05 22:13:31.622 UPnpMedia: BuildMediaMap VIDEO scan starting in :/var/lib/mythvideo:<br>
2011-02-05 22:13:31.657 UPnpMedia: BuildMediaMap Done. Found 0 objects<br>2011-02-05 22:14:43.304 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min<br>2011-02-05 22:22:29.374 MainServer::ANN Monitor<br>
2011-02-05 22:22:29.380 adding: Domino.site as a client (events: 0)<br>2011-02-05 22:22:29.390 MainServer::ANN Monitor<br>2011-02-05 22:22:29.396 adding: Domino.site as a client (events: 1)<br>2011-02-05 22:22:32.843 MainServer::ANN Playback<br>
2011-02-05 22:22:32.853 adding: Domino.site as a client (events: 0)<br>2011-02-05 22:22:32.880 TVRec(1): Changing from None to WatchingLiveTV<br>2011-02-05 22:22:32.892 TVRec(1): HW Tuner: 1->1<br>****************2011-02-05 22:22:32.938 LoadFromScheduler(): Error, called from backend.<br>
2011-02-05 22:22:32.943 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min<br>****************2011-02-05 22:22:33.310 Channel(/dev/video0)::Tune(): Error -1 while setting frequency (v2): Invalid argument<br>
2011-02-05 22:22:50.207 TVRec(1): Changing from WatchingLiveTV to None<br>2011-02-05 22:22:50.227 Finished recording Local Origination: channel 1001<br>2011-02-05 22:24:43.358 Expiring 0 MB for 1001 at 2011-02-05T22:22:33 => "Local Origination"<br>
2011-02-05 22:29:43.384 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min<br><br>