Project

General

Profile

Problem to use TVHeadEnd on NAS Synology DS212j

Added by Inrepublica .fr almost 7 years ago

Hello,

I try to use tvheadend on a synology nas ds212j with a key tnt AverMedia AverTV Volar HD Pro. To install I use the package provided by synocommunity here: http://www.synocommunity.com/packages

Intalle the package correctly, but the software does not work properly.
I did "addDVB by Network Location" and he has found the multiplexes.

Services but channel are "unmapped".

When I click on "mapDVDservice to channel" it nothing happens ...

Thank you in advance for your help, and grieve for my lousy English ...


Replies (13)

RE: Prolem to use TVHeadEnd on NAS Synology DS212j - Added by Christian Brauwers almost 7 years ago

Try to activate "Skip service aviable check when mapping"

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Inrepublica .fr almost 7 years ago

Ok, I put the original configuration, and I manually added a mux that works well. I have checked the option "Skip Service aviable check When mapping" and enabled debug mode in the "system log".
log:
November 22 9:48:04 p.m. web interface: Service started probe on "Afatech AF9033 (DVB-T)"
November 22 9:48:06 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:48:46 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:49:26 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:50:06 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:50:46 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:51:26 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:52:06 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:52:46 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:53:27 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:54:07 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:54:47 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:55:28 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:56:08 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)
November 22 9:56:49 p.m. dvb: "/ dev/dvb/adapter0" tuning to "F: 586.000 kHz" (Autoscan)

Unfortunately, it does not work when I click on "Map DVB services to channels ...".

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Prof Yaffle almost 7 years ago

Check the mux frequencies - I've seen several instances (mostly for me :-) ) where the mux frequencies have changed in the move from analogue to DVB, but the "by location" records haven't kept up. That means you're pointing to the old frequencies - which might still be there, merely not carrying any channels. The fact that you have no Network name and no MuxID is suspicious.

Find out what transmitter you're using, search the Internet for the carrier/mux frequencies and compare them to what you have here. If necessary, add the right ones manually and see if that help.

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Inrepublica .fr almost 7 years ago

Hello, I misspoke. I use the Mux is fully functional on another software like Windows POUCHIN TV Mod ... Besides, if I click Play in "Services" chain displays correctly.

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Prof Yaffle almost 7 years ago

Not sure I understand - are you saying that Pouchin TV Mod on Windows uses exactly the same mux frequencies but finds the channels okay? And that you can stream from tvheadend to a PC via the web interface? If so, you're right, that sounds like the services are there, simply not identified well enough to map to the channels.

Can you make sense of the files in dvbtransports/<adapter>? You should have one per service, as text files, describing each service. This might help confirm whether the problem is in the detection or the mapping - although I'm well out of my knowledge here, I must confess.

I'm planning on plugging my DVB-T stick into my Synology later, so let's see if I get anything similar. It's a different chipset (DiBCom 7000PC) and a different Synology box (211+), but I'll give it a go for you...

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Inrepublica .fr almost 7 years ago

Yes I use 586 Mhz mux that work well in PouchinTV Mod on Windows 7.
I add that mux manually in TvHeadEnd, the log in debug mode:

Nov 25 16:09:14 dvb: "/dev/dvb/adapter0" tuning to "586,000 kHz" (Initial autoscan)
Nov 25 16:09:14 uk_freesat: install table handlers
Nov 25 16:09:14 eit: install table handlers
Nov 25 16:09:14 eit: begin processing
Nov 25 16:09:14 dvb: Add service "_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0101" on "586,000 kHz" 
Nov 25 16:09:14 dvb: Add service "_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0104" on "586,000 kHz" 
Nov 25 16:09:14 dvb: Add service "_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0105" on "586,000 kHz" 
Nov 25 16:09:14 dvb: Add service "_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0106" on "586,000 kHz" 
Nov 25 16:09:14 dvb: Add service "_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0120" on "586,000 kHz" 
Nov 25 16:09:14 dvb: Add service "_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0171" on "586,000 kHz" 
Nov 25 16:09:14 PSI: Service "Afatech AF9033 (DVB-T)/586,000 kHz" PMT (version 2) updated, PCR PID changed, New elementary stream, Language changed, Composition ID changed, Ancillary ID changed, PIDs reordered
Nov 25 16:09:14 PSI: Service "Afatech AF9033 (DVB-T)/586,000 kHz" PMT (version 24) updated, PCR PID changed, New elementary stream, Language changed, Composition ID changed, Ancillary ID changed, PIDs reordered
Nov 25 16:09:14 PSI: Service "Afatech AF9033 (DVB-T)/586,000 kHz" PMT (version 3) updated, PCR PID changed, New elementary stream, Language changed, Composition ID changed, Ancillary ID changed, PIDs reordered
Nov 25 16:09:14 PSI: Service "Afatech AF9033 (DVB-T)/586,000 kHz" PMT (version 12) updated, PCR PID changed, New elementary stream, Language changed, PIDs reordered
Nov 25 16:09:14 PSI: Service "Afatech AF9033 (DVB-T)/586,000 kHz" PMT (version 27) updated, PCR PID changed, New elementary stream, Language changed, Composition ID changed, Ancillary ID changed, PIDs reordered
Nov 25 16:09:14 PSI: Service "Afatech AF9033 (DVB-T)/586,000 kHz" PMT (version 26) updated, PCR PID changed, New elementary stream, Language changed, Composition ID changed, Ancillary ID changed, PIDs reordered
Nov 25 16:09:15 dvb: "F: 586,000 kHz" on adapter "Afatech AF9033 (DVB-T)", status changed to OK
Nov 25 16:09:34 eit: processing cancelled
Nov 25 16:09:54 dvb: "/dev/dvb/adapter0" tuning to "F: 586,000 kHz" (Autoscan)
Nov 25 16:09:54 uk_freesat: install table handlers
Nov 25 16:09:54 eit: install table handlers
Nov 25 16:09:55 eit: begin processing
Nov 25 16:10:14 eit: processing cancelled
Nov 25 16:10:34 dvb: "/dev/dvb/adapter0" tuning to "F: 586,000 kHz" (Autoscan)
Nov 25 16:10:34 uk_freesat: install table handlers
Nov 25 16:10:34 eit: install table handlers
Nov 25 16:10:34 eit: begin processing
Nov 25 16:10:54 eit: processing cancelled
Nov 25 16:11:14 dvb: "/dev/dvb/adapter0" tuning to "F: 586,000 kHz" (Autoscan)
Nov 25 16:11:14 uk_freesat: install table handlers
Nov 25 16:11:14 eit: install table handlers
Nov 25 16:11:14 eit: begin processing

Ok, in the "services" tab:

If I click on "mapDVDservice to channel" it nothing happens.

With putty, I'm connect on the synology DS212j: cd /usr/local/tvheadend/var/dvbtransports/_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000/

_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0101
_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0104
_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0105
_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0106
_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0120
_dev_dvb_adapter0_Afatech_AF9033__DVB_T_586000000_0171

dev_dvb_adapter0_Afatech_AF9033_DVB_T_586000000_0101:
{
        "service_id": 257,
        "pmt": 110,
        "stype": 0,
        "scrambled": 0,
        "channel": 0,
        "dvb_eit_enable": 1,
        "pcr": 120,
        "disabled": 0,
        "stream": {
                "pid": 120,
                "type": "MPEG2VIDEO",
                "position": 0
        },
        "stream": {
                "pid": 130,
                "type": "MPEG2AUDIO",
                "position": 1,
                "language": "fre" 
        },
        "stream": {
                "pid": 131,
                "type": "MPEG2AUDIO",
                "position": 2,
                "language": "qaa" 
        },
        "stream": {
                "pid": 132,
                "type": "MPEG2AUDIO",
                "position": 3,
                "language": "qaa" 
        },
        "stream": {
                "pid": 140,
                "type": "DVBSUB",
                "position": 4,
                "language": "fre", 
                "compositionid": 1,
                "ancillartyid": 1
        },
        "stream": {
                "pid": 141,
                "type": "DVBSUB",
                "position": 5,
                "language": "fre",
                "compositionid": 2,
                "ancillartyid": 2
        }

Thanks a lot for your help! :)

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Eric L almost 7 years ago

Like explained here. I have the exact same problem https://www.lonelycoder.com/redmine/boards/4/topics/6613

No service name and can't map to channels :(

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Prof Yaffle almost 7 years ago

Apologies, I didn't get a chance to test it last night - I will look this week, though, and see if I get the same issue on my 211+.

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Prof Yaffle almost 7 years ago

Interesting journey, but I'm not sure any of this will help you...!

1. Installed Video Station. Plugged in USB tuner. Scanned for channels. Waited a lifetime (man, that's slow)

Detected channels, confirmed that I can record. So the USB tuner is working fine with the Synology

2. Shut down Video Station, started tvheadend

No tuners visible

3. Rebooted

Still can't see the tuner

4. Checked dmesg - permission problem?

Nov 26 14:11:57 tvheadend[7842]: dvb: Unable to open /dev/dvb/adapter0/frontend0 -- Permission denied
Nov 26 14:11:57 tvheadend[7842]: dvb: Unable to open /dev/dvb/adapter1/frontend0 -- Permission denied
Nov 26 14:11:57 tvheadend[7842]: dvb: Unable to open /dev/dvb/adapter2/frontend0 -- Permission denied

Ran find /dev/dvb -type c -exec chmod 666 {} \; to force the permissions (actually, I tried 777 beforehand, but with no difference); restarted tvheadend

nothing

5. Uninstalled Video Station to see if it was clashing; restarted tvheadend

nothing

6. Rebooted

nothing

7. Reinstalled Video Station and started it, then restarted tvheadend

success, I can now see the tuner (I think you need Video Station running to load the tuner firmware?)

I also note that the permissions are now 777, which may be related

8. Manually added muxes

All identified and named correctly, all scanned and services identified

Network was correctly identified as Gloucestershire (not blank as you have); mux IDs were identified for all but the HD/DVB-T2 mux (it's a DVB-T stick, so that's expected).

A thought here - all I set was the base frequency and the bandwidth (8MHz) for each mux; everything else was set to Auto. I notice you've set QAM64 and 8k-mode. Have you tried adding them as auto?

9. Map DVB services to channels

117 service turned into 50+ channels (I wouldn't expect to get them all, although this may be lower than intended).


Comparing my files to yours... in /usr/local/tvheadend/var/dvbtransports:

_dev_dvb_adapter0_DiBcom_7000PC474200000
_dev_dvb_adapter0_DiBcom_7000PC498000000
_dev_dvb_adapter0_DiBcom_7000PC506000000
_dev_dvb_adapter0_DiBcom_7000PC522000000
_dev_dvb_adapter0_DiBcom_7000PC530000000

... so one per active mux. Changing into the first of these:

_dev_dvb_adapter0_DiBcom_7000PC474200000_3280
_dev_dvb_adapter0_DiBcom_7000PC474200000_32c0
_dev_dvb_adapter0_DiBcom_7000PC474200000_32e0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3340
_dev_dvb_adapter0_DiBcom_7000PC474200000_37c0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3824
_dev_dvb_adapter0_DiBcom_7000PC474200000_38a2
_dev_dvb_adapter0_DiBcom_7000PC474200000_38c4
_dev_dvb_adapter0_DiBcom_7000PC474200000_3960
_dev_dvb_adapter0_DiBcom_7000PC474200000_3980
_dev_dvb_adapter0_DiBcom_7000PC474200000_39a0
_dev_dvb_adapter0_DiBcom_7000PC474200000_39c0
_dev_dvb_adapter0_DiBcom_7000PC474200000_39d0
_dev_dvb_adapter0_DiBcom_7000PC474200000_39e0
_dev_dvb_adapter0_DiBcom_7000PC474200000_39f0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3a10
_dev_dvb_adapter0_DiBcom_7000PC474200000_3a40
_dev_dvb_adapter0_DiBcom_7000PC474200000_3a50
_dev_dvb_adapter0_DiBcom_7000PC474200000_3a60
_dev_dvb_adapter0_DiBcom_7000PC474200000_3a80
_dev_dvb_adapter0_DiBcom_7000PC474200000_3ad0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3ae0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3af0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3b60
_dev_dvb_adapter0_DiBcom_7000PC474200000_3b80
_dev_dvb_adapter0_DiBcom_7000PC474200000_3c90
_dev_dvb_adapter0_DiBcom_7000PC474200000_3cc0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3e50
_dev_dvb_adapter0_DiBcom_7000PC474200000_3ea0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3eb0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3ee0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3f10
_dev_dvb_adapter0_DiBcom_7000PC474200000_3f60
_dev_dvb_adapter0_DiBcom_7000PC474200000_3fa0
_dev_dvb_adapter0_DiBcom_7000PC474200000_3fa4
_dev_dvb_adapter0_DiBcom_7000PC474200000_3fac

... so one per service. Opening the first of these:

Primary> more *3280*
{
        "service_id": 12928,
        "pmt": 275,
        "stype": 1,
        "scrambled": 0,
        "channel": 0,
        "provider": "",
        "servicename": "5*",
        "channelname": "5*",
        "mapped": 1,
        "dvb_eit_enable": 1,
        "default_authority": "www.five.tv",
        "pcr": 6673,
        "disabled": 0,
        "stream": {
                "pid": 6673,
                "type": "MPEG2VIDEO",
                "position": 0
        },
        "stream": {
                "pid": 6674,
                "type": "MPEG2AUDIO",
                "position": 1,
                "language": "eng" 
        },
        "stream": {
                "pid": 6675,
                "type": "MPEG2AUDIO",
                "position": 2,
                "language": "eng" 
        },
        "stream": {
                "pid": 6678,
                "type": "DVBSUB",
                "position": 3,
                "language": "eng",
                "compositionid": 2,
                "ancillartyid": 2
        }
}

The major difference I see is that my services are named - but you'd spotted this earlier, so nothing new there!

What I haven't done, and what you might try if you have another Linux box around, was to copy the services and/or channels over from a different TVH installation. The same tuner, the same muxes, the same transmitter... the files should be identical. So you could at least compare and, if they're more promising on a different machine, maybe try using those instead?

Sorry, though, I'm not sure that's really much help (beyond me now knowing how to get tvheadend running on a Synology...!).

EDIT

Another random thought - what if you shut down tvh, and then manually name the service in these files before restarting?

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Inrepublica .fr almost 7 years ago

Thanks for your post. Unfortunately, it does not solve my problem! :)

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Prof Yaffle almost 7 years ago

Doesn't solve, no - hey, I tried! - but have a think about copying the files from somewhere else, or manually editing them.

I don't know why services are discovered with no names, but almost certainly that's the problem.

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Eric L almost 7 years ago

Yeah it is the problem but not the only one I think because I named the 27 services found with names from 1 to 27, and then they were added as channels but couldn't tune those channels so there is still something broken I think.. and.. I dont know what name each frequency is.. I can't guess!!

RE: Problem to use TVHeadEnd on NAS Synology DS212j - Added by Prof Yaffle almost 7 years ago

I don't know if it's relevant, but I was looking again at the screenshots above. There are 7 muxes listed, but only one has a muxID (3) and network (F) - 778,000kHz. This then has 0% signal quality.

Looking on the next picture, that's the only mux that's returning services. That's confirmed on the next image: 7 muxes, 11 services.

Is the quality related? Is this genuinely a real mux that's broadcasting a format that the USB stick/driver/tvheadend can understand?

And what about the other 6 muxes, what's on those? If those are DVB muxes, using QAM64 and 8k mode, then why are they not identified? The only equivalent I've seen is when tvheadend picks up analogue muxes - on my system, it identifies them but (of course) can't pick any DVB information up, so leaves them un-named and finds no services.

Woth double-checking the mux frequencies again to ensure they're all carrying DVB signals, and also the settings (modulation, etc.)?

    (1-13/13)