Project

General

Profile

Recording and multiple adapters

Added by Anthony Swan almost 13 years ago

I have a dual adapter USB card that exports two DVB adapters:
Device path:
/dev/dvb/adapter0 (and adapter1)
Device name:
Afatech AF9013 DVB-T

I'm having no problems watching or seeing the channel list. The only problem that I'm having is that I can't schedule 2 recordings at the same time. I get the message: "Adapter in use by other subscription"

Is there a setup trick to getting the PVR to pick a free adapter? I've gone through all the settings on the DVR tab and on the adapter but cannot find anything.

Update: I changed added "2" to one of the adapters:

/dev/dvb/adapter0: "Afatech AF9013 DVB-T"
/dev/dvb/adapter1: "Afatech AF9013 DVB-T 2"

I enabled debug logging and noticed something interesting (or the logs may be lying) it picks one adapter at random (for this recording it picked adapter1) but then it looks like it gets confused as to which adapter it's talking to:

Jan 13 23:33:01 subscription: "DVR: U.S. Marshals (1998)" subscribing on "Nine Digital", weight: 300, adapter: "Afatech AF9013 DVB-T 2", network: "Nine Network Australia", mux: "Nine Network Australia: 564,500 kHz", provider: "Nine Network Australia", service: "Nine Digital", quality: 100
Jan 13 23:33:02 Service: Afatech AF9013 DVB-T/SBS Sydney: 564,500 kHz/Nine Digital: Status changed to [Hardware input]

http://pastebin.com/P47aw0em


Replies (7)

RE: Recording and multiple adapters - Added by Anthony Swan almost 13 years ago

edit: It's still not working after upgrading from commit fbea5df to ba5fe2a.

Will continue to poke around

RE: Recording and multiple adapters - Added by Anthony Swan almost 13 years ago

Ok I think I have it though the solution was very surprising:

I deleted all muxes and stations then I only added back the muxes and stations to the first adapter. I can now record two streams simultaneously.

If I add back the muxes and stations to the second adapter I get the Adapter in use message.

Perhaps this is a bug and perhaps this is the way it's meant to be (I could find no mention of a master/slave setup or anything like that in the documentation).

RE: Recording and multiple adapters - Added by Hein Rigolo almost 13 years ago

Can you use both adapters at the same time using the dvb-apps tools via the command line?
Try to open two command prompts and try to tune both adapters at the same time to different stations on different transponders.

Hein

RE: Recording and multiple adapters - Added by Anthony Swan almost 13 years ago

The machine is running openElec which means my package selection is essentially zero and they don't ship with dvb-apps. :(

It's working perfectly now. Here's two simultaneous recordings on two different muxes. You can see it's picked the different adapters (so the log above wasn't lying) and they both are recording perfectly. There is a little noise in the first 30 seconds of PopAsia which I think is the other tuner causing interference. I've also watched two programs (one via HTSP on another machine). I'll schedule a bit of time next weekend where I can retrace my steps and I will let you know for sure if it was the tvheadend package change, the openElec kernel change or the config change.

Jan 15 09:55:22 dvr: PopAsia from adapter: "Afatech AF9013 DVB-T 2", network: "ABC Sydney", mux: "ABC Sydney: 571,500 kHz", provider: "SBS", service: "SBS 4"
Jan 15 09:55:27 dvr: The World This Week from adapter: "Afatech AF9013 DVB-T", network: "ABC Sydney", mux: "ABC Sydney: 543,500 kHz", provider: "ABC", service: "ABC1"

Full version: http://pastebin.com/UKf4BySM

I couldn't be more happy with this setup. It was so much easier than Myth to setup (before I moved to openElec) and the channel switch actions are unbelievably fast.

RE: Recording and multiple adapters - Added by Anthony Swan almost 13 years ago

Hi Hein,

I don't know what to tell you. I reformatted the box and redid the whole install and it all just worked -- even with the older version. I must have changed my steps along the way but for the life of me I can't recall doing anything different.

I'm a complete convert to tvheadend -- the web interface is amazing. The one thing I wished it did (master/slave boxes) is moot with the PVR addon for XBMC. Multiple backends are seamless with the PVR plugin. And apparently timeshifting on the XBMC side will be coming in the next 6 months.

RE: Recording and multiple adapters - Added by Martin Amberg over 12 years ago

I had the same problem today running 2.13 together with xbmc. A scheduled show was beeing recorded and I tried to watch live-tv but got the message "Adapter in use by other subscription". I checked the tvheadend webpage and it only showed that it was recording one show. So I stopped tvheadend and tried to scan with both adapters at the same time using czap which worked without any problem. After starting tvheadend again I could record with one adapter and watch live-tv with the other. Havn't been using tvheadend for more than a week so I'm not sure if this was a one time thing or if the same problem will occur again.

RE: Recording and multiple adapters - Added by Joachim Hoss almost 12 years ago

Seems I have the exact same problem, but the solution (removing all muxes from the second adapter) does not work for me.

I use OpenELEC 3 RC 1 (2.99.1) with TvHeadEnd 3.2.18 and always get "Adapter in use by other subscription" when I record a program and try to watch a program on another transponder.
I have two TT S2-1600 DVB-S2 cards that work flawlessly under VDR and the like.

Any ideas/tips?

Thanks

    (1-7/7)