Changes

MythTV Hardware- Hauppauge USB Live-2

2,533 bytes added, 18:25, 7 March 2015
The following lines were added (+) and removed (-):
== driver and system recognition ===== driver and system recognition ===== testing video input ===== testing video input ===Once in Xfce you can test to see if you are able to receive video from a composite source via the USB Live-2.  For basic testing purposes mplayer serves well.  You will want to make sure that the driver loaded by using lsusb as described earlier.  A device should have been created in /dev as /dev/video0 or if you have other capture cards it could be /dev/video1 or higher.  Confirm which video device belongs to your USB Live 2.  For our example we will assume /dev/video0Once in Xfce you can test to see if you are able to receive video from a composite source via the USB Live-2.  For basic testing purposes [[mplayer]] serves well.  You will want to make sure that the driver loaded by using lsusb as described earlier.  A device should have been created in /dev as /dev/video0 or if you have other capture cards it could be /dev/video1 or higher.  Confirm which video device belongs to your USB Live 2.  For our example we will assume /dev/video0mplayer will complain that there is no TV Tuner (because of the -tv switch) however this will not prevent video from being displayed.  Specifying width= can be substituted with a width you prefer based on your resolution.  You should now see video from your source.  [[mplayer]] will complain that there is no TV Tuner (because of the -tv switch) however this will not prevent video from being displayed.  Specifying width= can be substituted with a width you prefer based on your resolution.  You should now see video from your source.  == testing audio input ===== testing audio input ===== more testing with mplayer ===== more testing with mplayer ===Note: If you see a green picture with flickering lines at the top, then mplayer is attempting to play an NTSC video as PAL.  Again, the dopey kernel driver assumes PAL unless you specify NTSC.  You can see the problem in dmesg:Note: If you see a green picture with flickering lines at the top, then [[mplayer]] is attempting to play an NTSC video as PAL.  Again, the dopey kernel driver assumes PAL unless you specify NTSC.  You can see the problem in dmesg:If you have the ~/.mplayer/config configured for mplayer it will be used by gnome-mplayer also.  You will need to do this because gnome-mplayer won't accept the -tv switch from the command line and will also try to default to PAL.  Now launch gnome-mplayer:If you have the ~/.mplayer/config configured for [[mplayer]] it will be used by gnome-mplayer also.  You will need to do this because gnome-mplayer won't accept the -tv switch from the command line and will also try to default to PAL.  Now launch gnome-mplayer:== Testing with VLC (Video LAN Player) ===== Testing with VLC (Video LAN Player) ===To show the a/v stream using [[VLC]] instead of mplayer execute the command:To show the a/v stream using [[VLC]] instead of [[mplayer]] execute the command:== Adding to MythTV backend configuration ===== Adding to MythTV back-end configuration ===From the MythTV Wiki: Capture CardsMythTV is designed to work with capture devices that have tuners.  [http://www.gossamer-threads.com/lists/mythtv/users/140368 Our device has no tuner] so it has to be configured in an irregular way that is not as well supported by the MythTV devs.  First review pertinent information from their documentation. <small>From the MythTV Wiki: [http://www.mythtv.org/wiki/MythTV-HOWTO_-_0.26#Capture_Cards Capture Cards]From the MythTV Wiki: Video SourcesFrom the MythTV Wiki: [http://www.mythtv.org/wiki/MythTV-HOWTO_-_0.26#Video_Sources Video Sources]From the MythTV Wiki: Input ConnectionsFrom the MythTV Wiki: [http://www.mythtv.org/wiki/MythTV-HOWTO_-_0.26#Input_Connections Input Connections]''On this screen, you will associate the various video sources you defined earlier with a physical input to a encoder card. It's entirely possible that you have multiple tuners, and each tuner has a different input, so on this screen you let MythTV know which device will connect to which input source. Don't add a video source to a hardware input if you don't actually have anything connected there. For example, adding "Cable" to the Tuner and to the Composite inputs without having something connected to Composite will lead to blank recordings.''  ''On this screen, you will associate the various video sources you defined earlier with a physical input to a encoder card. It's entirely possible that you have multiple tuners, and each tuner has a different input, so on this screen you let MythTV know which device will connect to which input source. Don't add a video source to a hardware input if you don't actually have anything connected there. For example, adding "Cable" to the Tuner and to the Composite inputs without having something connected to Composite will lead to blank recordings.'' </small>:*Tuning timeout (ms): 12000:*Tuning timeout (ms): 6000 :* Video source name: CableSatTV:* Video source name: VCR ''(call it what you want, VCR is just an example name)'':* Listings grabber: no grabber:* Listings grabber: ''(choose something temporarily such as North America)'':*Video source: CableSatTV:*Video source: VCRWe left some things blank in Input connections that we will go back and fill later.  Now exit mythtv-setup and DO NOT run mythfilldatabase.  We have to use mysql to add a dummy channel.  Your mysql admin login will be the same as your mythtv user password mysql -p mysql> use mythconverg; mysql> update videosource set xmltvgrabber = NULL where sourceid=1; mysql> insert into channel (chanid, channum, sourceid) VALUES (1001,1,1);What we did here was first inside the "videosource" table we set the xmltvgrabber for our new video source to NULL.  If your sourceid is something other than 1 then adjust accordingly.We also made a dummy or placeholder channel in the channel table so that the MythTV front-end has a channel it believes it is turning to when capturing from the USB Live-2.  This is a hack to deal with the fact that our device has no tuner.  The important fields are chanid, channum and sourceid.  You choose whatever unique channum you want.  The sourceid has to match that in videosouce table.  [http://www.gossamer-threads.com/lists/mythtv/users/44731 The chanid is a calculated field]: (sourceid * 1000) + channum Now you can exit mysql and go back into $ mythtv-setup* Video sources:* Video source name: VCR ''(call it what you want, VCR is just an example name)'':* Listings grabber: '''No grabber''':* Channel frequency table: default:* Network ID: -1* Input connections (choose composite):*Capture device: <nowiki>[MPEG:/dev/video0]</nowiki>:*Input: Composite1:*Display name: VCRSource:*Video source: VCR:*External channel change command::*Preset tuner to channel: '''1''':*Starting channel: '''1'''Exit the backend setup and this time go ahead and let it run mythfilldatabase.Open the MythTV frontend.  You will know we have accomplished something when it confirms that we are connected to the backend.Choose "Watch TV" to test...
Bureaucrat, administrator
16,192
edits