The github and Ubuntu versions looked the same and I used the version from the Ubuntu repository. Successfully changed the v4l.c file. Sudo ./configure worked without errors. Successfully built the program with sudo checkinstall. Changed to the built.linux folder and ran tvheadend. There is an error during startup:
Dec 25 23:27:30.054 [WARNING]:v4l: /dev/video0: Device lacks MPEG encoder, device skipped
Dec 25 23:27:30.061 [ INFO]:v4l: /dev/video1: cx88_blackbird Leadtek PVR 2000 PCI:0000:01:06.2 capabilities: 0x05010001
Dec 25 23:27:30.061 [ INFO]:v4l: /dev/video1: Standard #0: 0000000000001000 NTSC-M, frameperiod: 1001/30000, 525 lines
Dec 25 23:27:30.061 [ INFO]:v4l: /dev/video1: Standard #1: 0000000000002000 NTSC-M-JP, frameperiod: 1001/30000, 525 lines
Dec 25 23:27:30.061 [ INFO]:v4l: /dev/video1: Standard #2: 0000000000004000 NTSC-443, frameperiod: 1001/30000, 525 l
This is a Leadtek PVR2000 tuner/capture card and it has an mpeg encoder which the software doesn't see on /dev/video0 which is the analog NTSC tuner. TVheadend is running because the address for
http://localhost:9981/extjs.html produces the configuration screen but without the analog tuner. Is there anyway to fix the problem with /dev/video0?