Author Topic: LiveTV with a generic video capture device  (Read 7098 times)

jrd261

  • Newbie
  • *
  • Posts: 9
    • View Profile
LiveTV with a generic video capture device
« on: April 05, 2010, 05:07:18 am »
Hi all,

I'm trying to setup a dvc100 usb video recording device (has composite and s-video inputs) for live tv with a cable box, i.e. use with xine and input switching.

This is clearly the same thing done with other video capture devices and I've tried to sort through and the templates for things like the pvr-150, but I'm not sure how to set this up. I can add the device in mythtv and it works absolutely fine (v4l on /dev/video0).

It seems like I should create a new usb capture device and add a composite video port to it. I have no idea where to go from there.




tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #1 on: April 05, 2010, 04:38:46 pm »
The other main requirement is that the device should output an MPEG stream when the relevant device file is opened. Does it do this? If not, it will not work with our system.

-Thom

jrd261

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #2 on: April 06, 2010, 12:40:47 am »
Thanks for the reply and all your hard work Thom.

From what I can gather it is in VOB format. I'm confused about the difference between that and mpeg.

I can get video using:

mplayer -fps 15 tv:// -tv  driver=v4l2:device=/dev/video1


which spills out this before it plays...


Selected device: Pinnacle Dazzle DVC 90/100/101/
 Capabilites:  video capture  audio  read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
 inputs: 0 = Composite1; 1 = S-Video;
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================


If I do a cat /dev/video1 > test.mpeg I cannot play the file. Is that an appropriate test?


tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #3 on: April 06, 2010, 12:57:45 am »
that card will not work. Please get a supported card. Mandingo did the work recently for the HVR-1600 for example.

-Thom

electric_flesh

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #4 on: March 17, 2011, 02:47:29 pm »
Hello friends... i need to know if there is a USB device for video capture (to connect my cablebox) wich i can use on Linux MCE. I bouught a cheap EasyCap (wich i saw on a ubuntu machine, working very good) but i didn't work on LMCE, it didnt recognize it.

Is there some USB device for video/audio capture?? (i need a USB one)...

Thanks a lot guys....
« Last Edit: March 17, 2011, 02:56:46 pm by electric_flesh »

gtsupport

  • Veteran
  • ***
  • Posts: 147
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #5 on: March 17, 2011, 03:21:25 pm »
I use the hauppauge HD PVR which is a USB based capture device. It works OOTB with Linuxmce and captures in 1080i HD which is good.  I haven't been able to get it working with myth tv yet, but thats more down to my settings than anything else. It streams live tv to all my media directors which is what it needs to do for now.

Connection wise you have svhs, component, and composite, plus stereo audio connectors.  It comes with a remote control too, but mine is still in the box, as Linuxmce handles all that.

Hope this is of some help.

Matt
LinuxMCE - If it was easy, everybody would be doing it!!

electric_flesh

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #6 on: March 17, 2011, 03:56:01 pm »
OK, i have to buy the Hauppauge one. But my question is.... Do i have to connect this device directly to each MD on my house? or do i have to connect it at the Core server and then share it over th ethernet network?


If i put it on the core, when i change the channel on a MD this will do all the MDs over the house change channel at the same time?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #7 on: March 17, 2011, 03:59:43 pm »
You attach the capture device where the video source is. If it's near your Core/Hybrid, connect it there, if it's connected to your media director, connect it there.

-Thom

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #8 on: March 18, 2011, 12:42:28 am »
I can also confirm the Hauppauge HDPVR works with MythTV inside LMCE (at least on 8.10)     

Dennis

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: LiveTV with a generic video capture device
« Reply #9 on: March 18, 2011, 01:02:07 am »
I can also confirm the Hauppauge HDPVR works with MythTV inside LMCE (at least on 8.10)    

Dennis

The HD-PVR should work with any MythTV 0.23 or 0.24-fixes installation. But you will need to run mythtv-setup on your Core to configure it and add it as a capture device etc.

If your going to use mythtv-setup directly (see Thom's comment below for the alternative) then in setup choose "mpeg-4 AVC Hardware encoder"  as this is encoder option you want to use with the HD-PVR.

See here for more details and info on tweaking the setup to meet your needs (ie what type of material you will be recording)
http://www.mythtv.org/wiki/HDPVR#Steps_to_Add_the_HD-PVR_as_a_Capture_Device_in_MythTV_.280.22_or_later.29

All the best


Andrew
« Last Edit: March 18, 2011, 01:58:49 am by totallymaxed »
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: LiveTV with a generic video capture device
« Reply #10 on: March 18, 2011, 01:06:12 am »
Andrew, Mandingo added a device template for the HD-PVR which can be set up if you have a controllable cable box device template in the setup wizard.

-Thom