Mailing List Archive

Ticket #13121: Sat>IP client support
#13121: Sat>IP client support
--------------------------------------+--------------------------
Reporter: cg@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+--------------------------
The changes in the branch at
https://github.com/cguedel/mythtv/tree/devel/satip add Sat>IP support to
the backend. This allows the backend to use Sat>IP compliant networked
tuners to record DVB-C/DVB-S/DVB-T programs.

This works relatively stable for me, however I can only test DVB-C on one
network. Also, the channel scanner seems to be broken for this network, so
I can't really test that.

EIT scanning is also working.

Support for DVB-S is certainly lacking, as the Diseqc configuration is
missing altogether.

Also, this only implements the "Unicast Only Profile" as per the Sat>IP
spec found at
http://www.satip.info/sites/satip/files/resource/satip_specification_version_1_2_2.pdf.
Multicast is not supported.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+------------------------------
Reporter: cg@… | Owner: jyavenard
Type: Patch - Feature | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Recording | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+------------------------------
Changes (by pbennett):

* owner: => jyavenard
* type: Bug Report - General => Patch - Feature
* component: MythTV - General => MythTV - Recording


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - Recording | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by Klaas de Waal):

* owner: JYA => Klaas de Waal
* status: new => assigned


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by Klaas de Waal):

* severity: medium => low
* milestone: needs_triage => 32.0


Comment:

Thanks for supplying the patch; it is now in v32/master.

The patch has been updated for today's master and there have been some
issues fixed.

Testing has been done with minisatip connnected to a DVB-S2 card in the
same machine as the mythbackend and with a Telestar Digibit R1 box.

Satellite LNB selection via DiSeqC is defined in the Sat>IP protocol but
is not yet implemented.

It is possible to use the same Video Source for a /dev/dvb tuner and for a
Sat>IP tuner when they are connected to the same source.

The Sat>IP support is still a new and relatively untested feature; if
anybody finds problems when testing this please add comments to this
ticket.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

build from source on Xubuntu 18.04 fails:

{{{
make[2]: Entering directory '/srv/mike/build/mythtv/mythtv/libs/libmythtv'
ccache g++ -c -pipe -D_FILE_OFFSET_BITS=64 -DPIC -std=c++17 -faligned-new
-DNDEBUG -fomit-frame-pointer -fPIC
-DQT_DISABLE_DEPRECATED_BEFORE=0x050700 -msse -pthread -g -Wall -Wextra
-Wpointer-arith -fvisibility-inlines-hidden -Wdouble-promotion
-Wduplicated-cond -Wlogical-op -Wmissing-declarations -Wnull-dereference
-Woverloaded-virtual -Wshadow -funit-at-a-time -Wzero-as-null-pointer-
constant -Wsuggest-override -I/usr/include/freetype2
-I/usr/include/libpng16 -isystem ../../external/libmythdvdnav/dvdnav
-isystem ../../external/libmythdvdnav/dvdread -fvisibility=hidden
-D_REENTRANT -fPIC -DMMX -Dusing_libcec -D_GNU_SOURCE -DUSING_LIBCRYPTO
-DUSING_LIBASS -DUSING_V4L2PRIME -DUSING_VDPAU -DUSING_VAAPI -DUSING_NVDEC
-DFFTW3_SUPPORT -DUSING_X11 -DUSING_OPENGL -DUSING_EGL -DUSING_AIRPLAY
-DUSING_MHEG -DUSING_FRONTEND -DUSING_ALSA -DUSING_OSS -DUSING_V4L2
-DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_IPTV -DUSING_HDHOMERUN
-DHDHOMERUN_HEADERFILE=\"libhdhomerun/hdhomerun.h\" -DHDHOMERUN_V2
-DUSING_SATIP -DUSING_VBOX -DUSING_CETON -DUSING_IVTV -DUSING_HDPVR
-DUSING_DVB -DUSING_BACKEND -DMTV_API -DQT_WIDGETS_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -isystem
/usr/include/libxml2 -isystem /usr/include/X11 -I.. -I../.. -I../..
-I../../external/FFmpeg -I. -I../libmyth -I../libmyth/audio
-I../libmythbase -Impeg -Ichannelscan -Ivisualisations -Imheg -Idecoders
-Iopengl -Iio -Icaptions -Irecorders -Irecorders/dvbdev -Irecorders/rtp
-Irecorders/vbitext -Irecorders/HLS
-I../libmythlivemedia/BasicUsageEnvironment/include
-I../libmythlivemedia/BasicUsageEnvironment
-I../libmythlivemedia/groupsock/include -I../libmythlivemedia/groupsock
-I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/liveMedia
-I../libmythlivemedia/UsageEnvironment/include
-I../libmythlivemedia/UsageEnvironment -I../libmythbase -I../libmythui
-I../libmythupnp -I../libmythservicecontracts
-I../../external/libmythdvdnav/dvdnav
-I../../external/libmythdvdnav/dvdread -I../../external/nv-codec-
headers/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64
-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork
-isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/x86_64
-linux-gnu/qt5/QtCore -Imoc -isystem /usr/include/libdrm -I/usr/lib/x86_64
-linux-gnu/qt5/mkspecs/linux-g++ -o obj/satipstreamhandler.o
recorders/satipstreamhandler.cpp
recorders/satipstreamhandler.cpp: In member function ‘virtual void
SatIPStreamHandler::run()’:
recorders/satipstreamhandler.cpp:184:14: error: ‘std::this_thread’ has not
been declared
std::this_thread::sleep_for(std::chrono::milliseconds(40));
^~~~~~~~~~~
Makefile:18961: recipe for target 'obj/satipstreamhandler.o' failed
make[2]: *** [obj/satipstreamhandler.o] Error 1
make[2]: Leaving directory '/srv/mike/build/mythtv/mythtv/libs/libmythtv'
Makefile:265: recipe for target 'sub-libmythtv-make_first' failed
make[1]: *** [sub-libmythtv-make_first] Error 2
make[1]: Leaving directory '/srv/mike/build/mythtv/mythtv/libs'
Makefile:66: recipe for target 'libs' failed
make: *** [libs] Error 2

}}}

buildbot for master ubuntu 18.04 is also showing failure
https://code.mythtv.org/buildbot/#/builders/22/builds/713

build from source on Xubuntu 20.04 is ok.

Mike

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"c56ac71e6a9851376326249b12f84d7d38385b1e/mythtv"
c56ac71e6a/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="c56ac71e6a9851376326249b12f84d7d38385b1e"
Fix compiler warning

Fixed compiler warning about use of NULL instead of nullptr.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal):

There is an issue with Multirec and EIT on the SatIP tuner. This can be
avoided by disabling Multirec. To do that set the "Max Recordings" to 1
and uncheck the "Schedule as Group" in the Input Connections dialog of
mythtv-setup.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

Klaas,

In mythtv-setup Capture Card for Sat>IP I think an "Enable/Disable EIT"
checkbox is required. I ran a quick test with 4 x DVB/S2 tuners setup in
minisatip and EIT processing was continuously running on all 4 tuners.

Whilst on the subject of eit, does "SATIP" need to be added in
https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/tv_rec.cpp

{{{
void TVRec::CloseChannel(void)
{
if (m_channel &&
((m_genOpt.m_inputType == "DVB" && m_dvbOpt.m_dvbOnDemand) ||
m_genOpt.m_inputType == "FREEBOX" ||
m_genOpt.m_inputType == "VBOX" ||
m_genOpt.m_inputType == "HDHOMERUN" ||
CardUtil::IsV4L(m_genOpt.m_inputType)))
{
m_channel->Close();
}
}
}}}

Mike

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

Klaas,


Just tried DVB-T/T2 UK Freeview and it basically worked, although the
"SETUP" messages are out of specification (minisatip does not seem to
care), a couple of examples:

{{{
Jul 16 13:34:13 2004-satip mythbackend: mythbackend[6844]: D CoreContext
recorders/satiprtsp.cpp:233 (sendMessage) SatIPRTSP[2]: sendMessage write:
SETUP
rtsp://192.168.0.221:554/?freq=498.00&bw=8&msys=dvbt&tmode=auto&mtype=unknownqam&gi=132&fec=auto
RTSP/1.0

Jul 16 13:38:08 2004-satip mythbackend: mythbackend[6844]: D TVRecEvent
recorders/satiprtsp.cpp:233 (sendMessage) SatIPRTSP[2]: sendMessage write:
SETUP
rtsp://192.168.0.221:554/?freq=474.00&bw=8&msys=dvbt2&tmode=auto&mtype=unknownqam&gi=132&fec=auto
RTSP/1.0

}}}

Here are contents of dtv_multiplex table after channel scan:


{{{
------+---------+---------------+-----------+--------------+---------+---------+------------+----------------+---------------------+-------------------+
| mplexid | sourceid | transportid | networkid | frequency | inversion |
symbolrate | fec | polarity | modulation | bandwidth | lp_code_rate |
transmission_mode | guard_interval | visible | constellation | hierarchy |
hp_code_rate | mod_sys | rolloff | sistandard | serviceversion |
updatetimestamp | default_authority |
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+---------+---------+------------+----------------+---------------------+-------------------+
| 1 | 1 | 16515 | 9018 | 474000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T2 | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
| 2 | 1 | 8194 | 9018 | 498000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
| 3 | 1 | 4173 | 9018 | 522000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
| 4 | 1 | 12294 | 9018 | 570000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
| 5 | 1 | 20544 | 9018 | 594000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
| 6 | 1 | 24640 | 9018 | 690000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
| 7 | 1 | 40960 | 9018 | 746000000 | 0 |
0 | auto | v | auto | 8 | auto | a
| 1/32 | 0 | auto | n | auto |
DVB-T2 | 0.35 | dvb | 33 | 2020-07-16 12:40:44 |
|
+---------+----------+-------------+-----------+-----------+-----------+------------+------+----------+------------+-----------+--------------+-------------------+----------------+---------+---------------+-----------+--------------+---------+---------+------------+----------------+---------------------+-------------------+
7 rows in set (0.00 sec)

}}}

Test Configuration:

MythTV Version : v32.0~master.202007151913.b76dbf4~ubuntu20.04.1 combined
FE/Backend

UK Freeview from SandyHeath transmitter

tuner is TBS 6280 Dual DVB-T/T2 PCI-e using TBS drivers with kernel Linux
2004-satip 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux under Xubuntu 20.04

Minisatip Version: 1.0.3-e8bb03b running on same hardware as mythbackend

Mike

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"8cf47d3c2cdb475ad195445c7c37869c1b70fa04/mythtv"
8cf47d3c2c/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="8cf47d3c2cdb475ad195445c7c37869c1b70fa04"
Sat>IP client support

First version of Sat>IP client support.
Tested with DVB-S/S2 but not with DVB-C and DVB-T/T2.
DVB-S/S2 is tested with minisatip and TELESTAR Digibit box.
LNB selection with DiSEqC is not yet supported, only direct LNB
connections.
Channel scanning works although less reliable than with /dev/dvb tuners.
EIT does work and making recordings does work. Live TV can be an issue.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:9>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"18e7ec7227b0305d406cdd04f0ad425881b776ab/mythtv"
18e7ec722/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="18e7ec7227b0305d406cdd04f0ad425881b776ab"
Add missing C++ include

Added C++ include <thread> for std::this_thread.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:10>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

Klaas,



mythconverg database schema update is required to add SatIP Recorder to
profilegroups with associated entries in recordingprofiles otherwise
mythbackend reports errors like :


{{{
Jul 17 11:20:53 2004-satip mythbackend: mythbackend[5769]: E Scheduler
tv_rec.cpp:4159 (LoadProfile) TVRec[1]: Profile 'Default' not found, and
unable to load fallback profile 'Default'. Results may be unpredicable
Jul 17 11:20:53 2004-satip mythbackend: mythbackend[5769]: E TVRecEvent
tv_rec.cpp:4159 (LoadProfile) TVRec[1]: Profile 'Live TV' not found, and
unable to load fallback profile 'Default'. Results may be unpredicable
Jul 17 11:20:55 2004-satip mythbackend: mythbackend[5769]: E TVRecEvent
tv_rec.cpp:4159 (LoadProfile) TVRec[1]: Profile 'Default' not found, and
unable to load fallback profile 'Default'. Results may be unpredicable

}}}

Manually adding the following to the database stopped the error messages
above.


{{{
direct to database INSERT INTO profilegroups SET name = 'SatIP Recorder',
cardtype = 'SATIP', is_default = 1;
Note the id created in this case 19
INSERT INTO recordingprofiles SET name = "Default", profilegroup = 19;
INSERT INTO recordingprofiles SET name = "Live TV", profilegroup = 19;
INSERT INTO recordingprofiles SET name = "High Quality", profilegroup =
19;
INSERT INTO recordingprofiles SET name = "Low Quality", profilegroup = 19;
}}}

see dbcheck.cpp dbver == "1339" for an example using Vbox

$SCHEMA_VERSION in mythtv/binding/perl/MythTV.pm and
mythtv/bindings/python/MythTV/static.py will also need updating to next
schema version.

Mike

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:11>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"379584c73afe6c70385a20bb1017bbcb707a3a75/mythtv"
379584c73a/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="379584c73afe6c70385a20bb1017bbcb707a3a75"
Sat>IP Multirec support

Added Multirec to the Sat>IP client support, along the lines on how it is
done for HDHomeRun. Tested with minisatip on Astra-2 satellite.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:12>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal):

Mike,

Thanks for the testing and for the tips. Expect fixes in the near future.

Issues not solved yet:
- DVB-T2 tuning parameters
- Recording profiles (was this not something from the PVR150/500 days,
setting MPEG encoding parameters?)
- MPTS full TS recording; described in the Sat>IP protocol but not yet
implemented.
As yet untested:
- DVB-C with minisatip

There are also still some stability issues with the TELESTAR Digibit
satellite box.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:13>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

Hi Klaas,


I am seeing a mythbackend seg fault on exit from LiveTV

Attached are gdb.txt and mythbackend log relating to the backtrace. I
suspect it has something to do with the change that added SATIP to void
TVRec::CloseChannel(void) in tv_rec.cpp


{{{
Please attach all output as a file in bug reports.
MythTV Version : v32-Pre-699-g0db4df0b2f
MythTV Branch : master
Network Protocol : 91
Library API : 32.20200101-1
QT Version : 5.9.5
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_dvb using_firewire using_frontend using_hdhomerun
using_satip using_vbox using_ceton using_hdpvr using_ivtv
using_joystick_menu using_libcec using_libcrypto using_gnutls
using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg
using_opengl using_egl using_qtwebkit using_qtscript using_qtdbus
using_taglib using_v4l2 using_v4l2prime using_x11 using_libbluray_external
using_xrandr using_profiletype using_systemd_notify using_systemd_journal
using_drm using_bindings_perl using_bindings_python using_bindings_php
using_freetype2 using_mythtranscode using_opengl using_egl using_drm
using_vaapi using_nvdec using_vdpau using_ffmpeg_threads using_mheg
using_libass using_libxml2

}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:14>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by Mike Bibbings):

* Attachment "gdb.txt" added.

gdb.txt backtrace seg fault

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by Mike Bibbings):

* Attachment "mythbackend.20200719123309.24920.log" added.

mythbackend log

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

At end of mythbackend.log there are some suspicious messages relating to
QT timers and socket operations.


{{{
2020-07-19 13:33:57.375449 D [24920/24937] TVRecEvent
recorders/streamhandler.cpp:155 (Stop) - SH[1](uuid:11223344-9999-0000
-b7ae-c8600014a53d:DVBS2:0): Stopping
2020-07-19 13:33:57.375451 D [24920/24937] TVRecEvent
recorders/streamhandler.cpp:158 (Stop) - SH[1](uuid:11223344-9999-0000
-b7ae-c8600014a53d:DVBS2:0): Stopped
2020-07-19 13:33:57.375459 I [24920/24937] TVRecEvent
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Socket
notifiers cannot be enabled or disabled from
another thread
2020-07-19 13:33:57.375472 I [24920/24937] TVRecEvent
mythcommandlineparser.cpp:2643 (operator()) - Qt: QObject::~QObject:
Timers cannot be stopped from another thread
2020-07-19 13:33:57.375474 I [24920/24937] TVRecEvent
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Socket
notifiers cannot be enabled or disabled from
another thread
2020-07-19 13:33:57.375516 I [24920/24937] TVRecEvent tv_rec.cpp:3638
(TuningShutdowns) - TVRec[1]: Tearing down RingBuffer
2020-07-19 13:33:57.375602 I [24920/24937] TVRecEvent tv_rec.cpp:4438
(ClearFlags) - TVRec[1]: ClearFlags(PENDINGACTIONS,) ->
RunMainLoop,RingBufferReady, @ tv_rec.cpp:3644
2020-07-19 13:33:57.375602 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
2020-07-19 13:33:57.375609 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 25 and type 'Read', disabling...
2020-07-19 13:33:57.375626 D [24920/24948] ProcessRequest
livetvchain.cpp:34 (~LiveTVChain) - LiveTVChain(live-mike-
GL62-7QF-2020-07-19T12:33:48Z): dtor
2020-07-19 13:33:57.375689 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
2020-07-19 13:33:57.375692 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 25 and type 'Read', disabling...
2020-07-19 13:33:57.375710 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
2020-07-19 13:33:57.375713 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 25 and type 'Read', disabling...
2020-07-19 13:33:57.375718 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
2020-07-19 13:33:57.375720 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 25 and type 'Read', disabling...
2020-07-19 13:33:57.375723 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
2020-07-19 13:33:57.375724 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 25 and type 'Read', disabling...
2020-07-19 13:33:57.375728 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
2020-07-19 13:33:57.375729 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 25 and type 'Read', disabling...
2020-07-19 13:33:57.375733 I [24920/24920] CoreContext
mythcommandlineparser.cpp:2643 (operator()) - Qt: QSocketNotifier: Invalid
socket 24 and type 'Read', disabling...
:
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:15>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"55432fdd42860637810e4ac4d0659b08141b6e63/mythtv"
55432fdd4/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="55432fdd42860637810e4ac4d0659b08141b6e63"
Sat>IP add EIT checkbox

Add EIT checkbox to enable/disable EIT scanning.
Add tuner type SATIP to TVRec::CloseChannel.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:16>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"0448b6f9e0b4d7df637c227b963441702517b70a/mythtv"
0448b6f9e/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="0448b6f9e0b4d7df637c227b963441702517b70a"
Add profile group for Sat>IP recorder

Add profile group and recording profiles for the Sat>IP recorder.
Increase database version to 1364.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:17>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Klaas de Waal <kdewaal@…>):

In [changeset:"1d56b04ef76a6ed37fd0c76596e85e09c5b8d40d/mythtv"
1d56b04ef7/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="1d56b04ef76a6ed37fd0c76596e85e09c5b8d40d"
Sat>IP DVB-T2 tuning parameters

Completed the DVB-T2 tuning parameter string representations.
Use "auto" for all parameters that are not known.
This is not specified in the Sat>IP specification but it does
specify that all unknown values are to be ignored in which
case the server can do what it thinks best.

Refs #13121
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:18>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

TEARDOWN is sending extraneous ? character after stream identifier:

{{{
2020-07-25 17:08:02.306141 D [27761/27801] Scanner
recorders/satiprtsp.cpp:235 (sendMessage) - SatIPRTSP[1]: sendMessage
write: TEARDOWN rtsp://192.168.0.202:554/stream=1? RTSP/1.0
}}}

Change in satiprtsp.cpp see 20200726_satip_teardown.patch

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:19>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------
Changes (by Mike Bibbings):

* Attachment "20200726_satip_teardown.patch" added.

Teardown patch

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings <mike.bibbings@…>):

In [changeset:"45ed62ad9c001061b201de6de9d68ddc1c5f6978/mythtv"
45ed62ad9c/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="45ed62ad9c001061b201de6de9d68ddc1c5f6978"
Remove extraneous ? character in Sat>IP TEARDOWN message

Refs #13121

Signed-off-by: Klaas de Waal <kdewaal@mythtv.org>
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:20>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13121: Sat>IP client support [ In reply to ]
#13121: Sat>IP client support
--------------------------------+-------------------------------
Reporter: cg@… | Owner: Klaas de Waal
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: 32.0
Component: MythTV - Recording | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------

Comment (by Mike Bibbings):

I am seeing on occasion mythtv-setup seg faulting whilst channel scanning
on DVB-T/T2 (UK Freeview)

Attached are gdb backtrace and mythtv-setup log.

In this case minisatip is running remote to mythtvbackend on a Raspberry
Pi3 with TVHAT tuner which has the following capabilities:


{{{
pi@pi3-20200724:~/build/w_scan2 $ dvb-fe-tool
Device Sony CXD2880 (/dev/dvb/adapter0/frontend0) capabilities:
CAN_2G_MODULATION
CAN_FEC_1_2
CAN_FEC_2_3
CAN_FEC_3_4
CAN_FEC_4_5
CAN_FEC_5_6
CAN_FEC_7_8
CAN_FEC_AUTO
CAN_GUARD_INTERVAL_AUTO
CAN_INVERSION_AUTO
CAN_MUTE_TS
CAN_QAM_16
CAN_QAM_32
CAN_QAM_64
CAN_QAM_128
CAN_QAM_256
CAN_QAM_AUTO
CAN_QPSK
CAN_RECOVER
CAN_TRANSMISSION_MODE_AUTO
DVB API Version 5.11, Current v5 delivery system: DVBT2
Supported delivery systems:
DVBT
[DVBT2]
Frequency range for the current standard:
From: 174 MHz
To: 862 MHz
Step: 1.00 kHz
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13121#comment:21>
MythTV <http://www.mythtv.org>
MythTV Media Center

1 2 3 4  View All