diff options
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-18 06:55:18 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-18 06:55:18 +0200
commitcfdaff0fe2f11ede4ac57d600d95b2ff945239ca (patch)
parent4833a12e78525e4d1a8c1f5da5f9534b857557be (diff)
dvbv5-zap: add a warning when not recording PMT data
There are several audio formats and at least one video format that are sent using Elementary Stream type 6 (private data). The only way to identify the stream format is by checking some descriptors that come together with the PMT table, being the registration descriptor the most important one, as it contains a FOURCC value that should uniquelly identify the stream type. Due to that, add a note when audio and/or video streams are recorded without PMT data. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index 34f723bb..0b8f98c9 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -1281,6 +1281,12 @@ int main(int argc, char **argv)
goto err;
+ if (((vpid >= 0 && vpid != 0x2000) || apid) && !args.rec_psi) {
+ printf(_("PMT record is disabled.\n"
+ "Please notice that some streams can only be decoded with PMT data.\n"
+ "Use '-p' option to also record PMT.\n"));
+ }
if (!check_frontend(&args, parms)) {

Privacy Policy