MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.32k stars 158 forks source link

StreamOrder coherence understanding ? #186

Open Sami32 opened 6 years ago

Sami32 commented 6 years ago

You see, finally i opened it :wink: But as i don't think there is really issue here, i've tried to avoid open an issue for that.

From what i understood, i'm still perplex with MediaInfo display results, perhaps because i don't know much about TS file structure. What you explained me, clarify why the StreamOrder results have a different display structure for TS and MP4 or others, and also the difference between EIA captions and DVD Subtitles, but i still hang on Teletext case. In that case, no StreamOrder is displayed at all for Teletext (Other) in TS: Why ?

General
Count                                    : 327
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
ID                                       : 2061
ID                                       : 2061 (0x80D)
Count of video streams                   : 1
Count of audio streams                   : 1
OtherCount                               : 1
Count of menu streams                    : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Audio_Format_List                        : AC-3
Audio_Format_WithHint_List               : AC-3
Audio codecs                             : AC3
Audio_Language_List                      : English
Other_Format_List                        : Teletext
Other_Format_WithHint_List               : Teletext
Other_Language_List                      : English
Menu_Format_List                         : AVC / MPEG Audio / Teletext / AC-3
Menu_Format_WithHint_List                : AVC / MPEG Audio / Teletext / AC-3
Menu codecs                              : AVC /  / Teletext / AC3
Menu_Language_List                       :  /  / English / English
Complete name                            : F:\!MEDIA_TEST_FILES\UMS Video Testing Suite (20150121)\TESTS\INTERNAL SUBTITLES\BBC4HD_Teletext.TS
Folder name                              : F:\!MEDIA_TEST_FILES\UMS Video Testing Suite (20150121)\TESTS\INTERNAL SUBTITLES
File name                                : BBC4HD_Teletext
File extension                           : TS
Format                                   : MPEG-TS
Format                                   : MPEG-TS
Format/Extensions usually used           : ts m2t m2s m4t m4s tmf ts tp trp ty
Commercial name                          : MPEG-TS
Internet media type                      : video/MP2T
Codec                                    : MPEG-TS
Codec                                    : MPEG-TS
Codec/Extensions usually used            : ts m2t m2s m4t m4s tmf ts tp trp ty
File size                                : 71408148
File size                                : 68.1 MiB
File size                                : 68 MiB
File size                                : 68 MiB
File size                                : 68.1 MiB
File size                                : 68.10 MiB
Duration                                 : 113610.046875
Duration                                 : 1 min 53 s
Duration                                 : 1 min 53 s 610 ms
Duration                                 : 1 min 53 s
Duration                                 : 00:01:53.610
Duration                                 : 00:01:53:05
Duration                                 : 00:01:53.610 (00:01:53:05)
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 5018812
Overall bit rate                         : 5 019 kb/s
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 2830
Stream size                              : 3918090
Stream size                              : 3.74 MiB (5%)
Stream size                              : 4 MiB
Stream size                              : 3.7 MiB
Stream size                              : 3.74 MiB
Stream size                              : 3.737 MiB
Stream size                              : 3.74 MiB (5%)
Proportion of this stream                : 0.05487
File creation date                       : UTC 2017-07-10 21:25:58.250
File creation date (local)               : 2017-07-10 23:25:58.250
File last modification date              : UTC 2017-07-10 21:26:49.620
File last modification date (local)      : 2017-07-10 23:26:49.620
OverallBitRate_Precision_Min             : 5018790
OverallBitRate_Precision_Max             : 5018834

Video
Count                                    : 338
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 4-0
ID                                       : 5300
ID                                       : 5300 (0x14B4)
Menu ID                                  : 8952
Menu ID                                  : 8952 (0x22F8)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4
Format settings, RefFrames               : 4 frames
Internet media type                      : video/H264
Codec ID                                 : 27
Codec                                    : AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : http://developers.videolan.org/x264.html
Codec profile                            : High@L4
Codec settings                           : CABAC / 4 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 4
Duration                                 : 113200
Duration                                 : 1 min 53 s
Duration                                 : 1 min 53 s 200 ms
Duration                                 : 1 min 53 s
Duration                                 : 00:01:53.200
Duration                                 : 00:01:53:05
Duration                                 : 00:01:53.200 (00:01:53:05)
Bit rate                                 : 4576883
Bit rate                                 : 4 577 kb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Stored_Height                            : 1088
Sampled_Width                            : 1920
Sampled_Height                           : 1080
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 2830
Standard                                 : Component
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan type                                : MBAFF
Scan type, store method                  : InterleavedFields
Scan type, store method                  : Interleaved fields
Scan order                               : TFF
Scan order                               : Top Field First
Interlacement                            : MBAFF
Interlacement                            : MBAFF
Bits/(Pixel*Frame)                       : 0.088
Delay                                    : 5000.000
Delay                                    : 5 s 0 ms
Delay                                    : 5 s 0 ms
Delay                                    : 5 s 0 ms
Delay                                    : 00:00:05.000
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 64762890
Stream size                              : 61.8 MiB (91%)
Stream size                              : 62 MiB
Stream size                              : 62 MiB
Stream size                              : 61.8 MiB
Stream size                              : 61.76 MiB
Stream size                              : 61.8 MiB (91%)
Proportion of this stream                : 0.90694
Color range                              : Limited
colour_description_present               : Yes
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
Count                                    : 291
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 4-3
ID                                       : 5301
ID                                       : 5301 (0x14B5)
Menu ID                                  : 8952
Menu ID                                  : 8952 (0x22F8)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : AC-3
Format settings, Endianness              : Big
Codec ID                                 : 6
Codec                                    : AC3
Codec                                    : AC3
Duration                                 : 113632
Duration                                 : 1 min 53 s
Duration                                 : 1 min 53 s 632 ms
Duration                                 : 1 min 53 s
Duration                                 : 00:01:53.632
Duration                                 : 00:01:54:17
Duration                                 : 00:01:53.632 (00:01:54:17)
Bit rate mode                            : CBR
Bit rate mode                            : Constant
Bit rate                                 : 192000
Bit rate                                 : 192 kb/s
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
ChannelLayout                            : L R
Samples per frame                        : 1536
Sampling rate                            : 48000
Sampling rate                            : 48.0 kHz
Samples count                            : 5454336
Frame rate                               : 31.250
Frame rate                               : 31.250 FPS (1536 SPF)
Frame count                              : 3551
Resolution                               : 16
Resolution                               : 16 bits
Bit depth                                : 16
Bit depth                                : 16 bits
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 4287.767
Delay                                    : 4 s 288 ms
Delay                                    : 4 s 288 ms
Delay                                    : 4 s 288 ms
Delay                                    : 00:00:04.288
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : -712
Delay relative to video                  : -712 ms
Delay relative to video                  : -712 ms
Delay relative to video                  : -712 ms
Delay relative to video                  : -00:00:00.712
Video0 delay                             : -712
Video0 delay                             : -712 ms
Video0 delay                             : -712 ms
Video0 delay                             : -712 ms
Video0 delay                             : -00:00:00.712
Stream size                              : 2727168
Stream size                              : 2.60 MiB (4%)
Stream size                              : 3 MiB
Stream size                              : 2.6 MiB
Stream size                              : 2.60 MiB
Stream size                              : 2.601 MiB
Stream size                              : 2.60 MiB (4%)
Proportion of this stream                : 0.03819
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Service kind                             : CM
Service kind                             : Complete Main
bsid                                     : 6
dialnorm                                 : -23
dialnorm                                 : -23 dB
compr                                    : -0.28
compr                                    : -0.28 dB
dsurmod                                  : 1
dsurmod                                  : Not Dolby Surround encoded
acmod                                    : 2
lfeon                                    : 0
dialnorm_Average                         : -23
dialnorm_Average                         : -23 dB
dialnorm_Minimum                         : -23
dialnorm_Minimum                         : -23 dB
dialnorm_Maximum                         : -23
dialnorm_Maximum                         : -23 dB
dialnorm_Count                           : 1846

Other
Count                                    : 113
Count of stream of this kind             : 1
Kind of stream                           : Other
Kind of stream                           : Other
Stream identifier                        : 0
ID                                       : 5303-888
ID                                       : 5303 (0x14B7)-888
Menu ID                                  : 8952
Menu ID                                  : 8952 (0x22F8)
Format                                   : Teletext
Commercial name                          : Teletext
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en

Menu
Count                                    : 94
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
StreamOrder                              : 4
ID                                       : 259
ID                                       : 259 (0x103)
Menu ID                                  : 8952
Menu ID                                  : 8952 (0x22F8)
Format                                   : AVC / MPEG Audio / Teletext / AC-3
Commercial name                          : AVC / MPEG Audio / Teletext / AC-3
Codec                                    : AVC /  / Teletext / AC3
Codec                                    : AVC /  / Teletext / AC3
Duration                                 : 113610.046875
Duration                                 : 1 min 53 s
Duration                                 : 1 min 53 s 610 ms
Duration                                 : 1 min 53 s
Duration                                 : 00:01:53.610
Duration                                 : 00:01:53.610
Delay                                    : 4216.194667
Delay                                    : 4 s 216 ms
Delay                                    : 4 s 216 ms
Delay                                    : 4 s 216 ms
Delay                                    : 00:00:04.216
List_StreamKind                          : 1 /  / 4 / 2
List_StreamPos                           : 0 /  / 0 / 0
List                                     : 5300 / 5302 / 5303-888 / 5301
List                                     : 5300 (0x14B4) (AVC) / 5302 (0x14B6) (MPEG Audio) / 5303 (0x14B7)-888 (Teletext, en) / 5301 (0x14B5) (AC-3, English)
Language                                 :  /  / en / en
Language                                 :  /  / English / English
Language                                 :  /  / English / English
Language                                 :  /  / en / en
Language                                 :  /  / eng / eng
Language                                 :  /  / en / en
pointer_field                            : 0
section_length                           : 126
JeromeMartinez commented 6 years ago

What you explained me, clarify why the StreamOrder results have a different display structure for TS and MP4 or others

MP4 does not have option for several programs. MediaInfo provides common display, but adapted to the features of a format. For TS, there is a program table (first value) and a list of streams per program (second value), that's all.

and also the difference between EIA captions and DVD Subtitles,

Technically different, one is embedded in the video stream, the other in a dedicated stream.

In that case, no StreamOrder is displayed at all for Teletext (Other) in TS: Why ?

I guess it is a bug.

Sami32 commented 6 years ago

Thank you for confirming, after having clarified, explained it :+1:

Learning every day ;)