Changes

MythTV Hardware- Hauppauge USB Live-2

152 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 ===MythTV is designed to work with capture devices that have tuners.  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.MythTV 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.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.  The chanid is a calculated field: (sourceid * 1000) + channum  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  
Bureaucrat, administrator
16,192
edits