tsMuxer icon indicating copy to clipboard operation
tsMuxer copied to clipboard

Can't detect stream type when trying to read TS without PAT and PMT

Open cd4053 opened this issue 4 years ago • 4 comments

tsMuxeR fails to detect the streams from this file.

File recorded from a set top box for ISDB-Tb/ISDB-T International system.

General
Complete name                  : D:\isdb4.ts
Format                         : MPEG-TS
Format profile                 : No PAT/PMT
File size                      : 92.6 MiB
Duration                       : 50 s 858 ms
Overall bit rate mode          : Variable
Overall bit rate               : 15.3 Mb/s

Video
ID                             : 273 (0x111)
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4
Format settings                : CABAC / 2 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 2 frames
Format settings, GOP           : M=3, N=15
Duration                       : 50 s 317 ms
Bit rate mode                  : Variable
Maximum bit rate               : 24.0 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate                     : 29.970 (30000/1001) FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Interlaced
Scan type, store method        : Separated fields
Scan order                     : Top Field First
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709

Audio #1
ID                             : 274 (0x112)
Format                         : AAC LC SBR
Format/Info                    : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                : HE-AAC
Format settings                : NBC
Muxing mode                    : LATM
Codec ID                       : 5
Duration                       : 50 s 816 ms
Bit rate mode                  : Variable
Channel(s)                     : 2 channels
Channel layout                 : L R
Sampling rate                  : 48.0 kHz / 24.0 kHz
Frame rate                     : 23.438 FPS (1024 SPF)
Compression mode               : Lossy
Delay relative to video        : -293 ms

Audio #2
ID                             : 275 (0x113)
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Muxing mode                    : LATM
Codec ID                       : 2
Duration                       : 50 s 858 ms
Bit rate mode                  : Variable
Channel(s)                     : 2 channels
Channel layout                 : L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Delay relative to video        : -345 ms

Audio #3
ID                             : 276 (0x114)
Format                         : AAC LC SBR
Format/Info                    : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                : HE-AAC
Format settings                : NBC
Muxing mode                    : LATM
Codec ID                       : 5
Duration                       : 50 s 816 ms
Bit rate mode                  : Variable
Channel(s)                     : 2 channels
Channel layout                 : L R
Sampling rate                  : 48.0 kHz / 24.0 kHz
Frame rate                     : 23.438 FPS (1024 SPF)
Compression mode               : Lossy
Delay relative to video        : -293 ms

Audio #4
ID                             : 277 (0x115)
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Muxing mode                    : LATM
Codec ID                       : 2
Duration                       : 50 s 837 ms
Bit rate mode                  : Variable
Channel(s)                     : 6 channels
Channel layout                 : C L R Ls Rs LFE
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Delay relative to video        : -345 ms

Text
ID                             : 278 (0x116)-1
Format                         : ARIB STD B24/B37
Duration                       : 49 s 978 ms
Bit rate mode                  : Constant
Delay relative to video        : 13 h 15 min
Stream size                    : 0.00 Byte (0%)
Language                       : Portuguese

cd4053 avatar Nov 14 '21 06:11 cd4053

tsMuxer requires Transport Streams to have a PAT and PMT. As far as I'm aware, there's no "autodetection" of PIDs where video/audio streams might exist.

lighterowl avatar Nov 14 '21 16:11 lighterowl

As far as I'm aware, there's no "autodetection" of PIDs where video/audio streams might exist.

Hi, sorry. I'm just reporting.

Regarding autodetection, are you aware of mpegts_demux? It detects and demux all streams it can find inside the TS, handbrake also can detect the streams, don't know how it does it, this is the handbrake log.

I hope it helps. handbrake.log

cd4053 avatar Nov 14 '21 22:11 cd4053

Sure, I'm well aware that this can be done technically - question is whether tsMuxer should do this as well. I'm going to leave this question open for people much more involved with transport streams to answer. Maybe @jcdr428 ?

lighterowl avatar Nov 15 '21 02:11 lighterowl

@cd4053 tsMuxer does not detect multiplexed (LATM) AAC, nor ARIB captions. Maybe somebody interested will work on including these codecs later on.

jcdr428 avatar Dec 04 '21 14:12 jcdr428