Opened 10 years ago

Closed 10 years ago

#7721 closed defect (invalid)

Can't share video source between differen recorders (2nd try)

Reported by: stefan.becker@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.22
Severity: medium Keywords: iptv mythbackend input source
Cc: Ticket locked: no

Description

[Sorry for the duplicate report. My brain is fried after trying so long to get IPTV working with MythTV :-( As I don't have any login I can't reopen the original ticket]

My DVB-C provider has started to offer the same channels also via IPTV (UDP multicast). I'm trying to enable that in mythtvsetup:

  • existing setup:

capture card: DVB-C (/dev/dvb/adapter0/frontend0)

video source: SSP (via xmltv grabber tv_grab_fi & www.telkku.com)

input connection: DVB -> SSP channels: 501 - ...

  • added setup:

capture card: Network Recorder (FREEBOX)

M3U URL: http://localhost/test.m3u

contents:

#EXTM3U
#EXTINF:0,601 - YLE1
#EXTMYTHTV:xmltvid=0.telkku.com
udp://224.10.1.1:1111

input connection: FREEBOX -> SSP

-> scan channels

channels: 601 (YLE1)

from mythvconverg.channel:

mysql> select chanid,channum,callsign,name,sourceid,xmltvid,freqid from channel where name = 'YLE1';
+--------+---------+----------+------+----------+--------------+-----------+
| chanid | channum | callsign | name | sourceid | xmltvid      | freqid    |
+--------+---------+----------+------+----------+--------------+-----------+
|   1000 | 501     | YLE TV1  | YLE1 |        1 | 0.telkku.com | 170000000 | 
|   1601 | 601     | YLE TV1  | YLE1 |        1 | 0.telkku.com | NULL      | 
+--------+---------+----------+------+----------+--------------+-----------+

Now I try to tune to channel 601 in the frontend and get a "unrecoverable recorder error" and this in the mythbackend log:

2009-12-07 20:20:36.568 TVRec(1): Changing from None to Watching WatchingLiveTV
2009-12-07 20:20:36.575 TVRec(1): HW Tuner: 1->1
2009-12-07 20:20:36.668 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2009-12-07 20:20:36.978 Finished recording Rillit huurussa: channel 1004
2009-12-07 20:20:36.998 recording already exists...
2009-12-07 20:20:37.022 Finished recording Rillit huurussa: channel 1004
2009-12-07 20:20:37.053 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2009-12-07 20:20:38.850 RecBase(1:/dev/dvb/adapter0/frontend0): GetKeyframePositions(1,9223372036854775807,#3) out of 4
2009-12-07 20:20:38.987 RecBase(1:/dev/dvb/adapter0/frontend0): GetKeyframePositions(1,9223372036854775807,#3) out of 4
2009-12-07 20:20:50.198 TVRec(1): HW Tuner: 1->1
2009-12-07 20:20:50.234 DVBChan(1:/dev/dvb/adapter0/frontend0) Error: SetChannelByString(601): Failed to initialize multiplex options
2009-12-07 20:20:50.235 TVRec(1) Error: Failed to set channel to 601. Reverting to kState_None
2009-12-07 20:20:50.235 TVRec(1): Changing from Watching WatchingLiveTV to None

i.e. it is trying to tune channel 601 with the DVB recorder instead of the network recorder.

If I add another input source everything works (well at least I don't get the recorder error anymore). It would be nice not to have run the xmltv grabber twice for the same data.

Change History (1)

comment:1 Changed 10 years ago by sphery

Resolution: invalid
Status: newclosed

Feature request without a patch.

Channels which require different tuning information must be unique (MythTV) channels (where here I mean the MythTV data describing the channel) and, therefore, must exist in different video sources. So, "It would be nice not to have run the xmltv grabber twice for the same data," becomes a feature request for caching support for XMLTV data.

MythTV's Schedules Direct code currently has caching support (provided by Daniel K. as part of the Schedules Direct rework in #3842--specifically [14231] and [14232], which closed #3299). No one has written support for caching of XMLTV data, but the foundation is there from the Schedules Direct code.

However, XMLTV provides tools that allow you to gain the same benefits without modifying MythTV. See http://www.gossamer-threads.com/lists/mythtv/dev/264796#264796 (and, likely, other threads on the lists).

It sounds like you have figured out how to properly define the channels with multiple video sources, but if you have any additional questions (such as about configuring XMLTV so you only run the grabber once) please follow up on the mythtv-users mailing list.

Note: See TracTickets for help on using tickets.