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.4k stars 160 forks source link

Second subtitles language not detected in vbi_vanc_smpte_436M (mxf container) unless full parsing is used #596

Open FranceBB opened 2 years ago

FranceBB commented 2 years ago

Hi there, we have XAVC Intra Class 300 files with DolbyE audio and Teletext Subtitles muxed in mxf. Subtitles are muxed as OP47 and they're in the vbi_vanc_smpte_436M track. Italian (language 1) is in 777 and English (language 2) is in 778.

Expected behavior: Mediainfo is supposed to read and display two subtitles tracks, namely:

Text #1 
ID : 8-777 
Format : Teletext Subtitle 
Muxing mode : Ancillary data / OP-47 / SDP 
Duration : 55 min 37 s

Text #2 
ID : 8-778 
Format : Teletext Subtitle 
Muxing mode : Ancillary data / OP-47 / SDP 
Duration : 55 min 37 s

Actual behavior: Mediainfo only displays one subtitles track:

Text 
ID : 7-777 
Format : Teletext Subtitle 
Muxing mode : Ancillary data / OP-47 / SDP 
Duration : 55 min 37 s 

I can share a small sample via Aspera or WeTransfer if required, but only privately.

Full log:

`<TABLE style="BORDER-TOP: navy 1px solid; BORDER-RIGHT: navy 1px solid; BORDER-BOTTOM: navy 1px solid; BORDER-LEFT: navy 1px solid" cellSpacing=2 cellPadding=1 width="100%" border=0>

General

Count : 331 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Count of audio streams : 6 Count of text streams : 1 OtherCount : 3 Video_Format_List : AVC Video_Format_WithHint_List : AVC Codecs Video : AVC Audio_Format_List : Dolby E / Dolby E / Dolby E / Dolby E / PCM / PCM Audio_Format_WithHint_List : Dolby E / Dolby E / Dolby E / Dolby E / PCM / PCM Audio codecs : Dolby E / Dolby E / Dolby E / Dolby E / PCM / PCM Text_Format_List : Teletext Subtitle Text_Format_WithHint_List : Teletext Subtitle Text codecs : Teletext Subtitle Other_Format_List : MXF TC / MXF TC / SMPTE TC Other_Format_WithHint_List : MXF TC / MXF TC / SMPTE TC Other_Codec_List : MXF TC / MXF TC / SMPTE TC Complete name : I:\Scambio\Raw\4IS00666_TTXNUORI.mxf Folder name : I:\Scambio\Raw File name extension : 4IS00666_TTXNUORI.mxf File name : 4IS00666_TTXNUORI File extension : mxf Format : MXF Format : MXF Format/Extensions usually used : mxf Commercial name : MXF Format version : 1.3 Format profile : OP-1a Format settings : Closed / Complete Internet media type : application/mxf File size : 212666352668 File size : 198 GiB File size : 198 GiB File size : 198 GiB File size : 198 GiB File size : 198.1 GiB Duration : 3337900 Duration : 55 min 37 s Duration : 55 min 37 s 900 ms Duration : 55 min 37 s Duration : 00:55:37.900 Duration : 00:55:37:44 Duration : 00:55:37.900 (00:55:37:44) Overall bit rate : 509700956 Overall bit rate : 510 Mb/s Frame rate : 50.000 Frame rate : 50.000 FPS Frame count : 166894 FooterSize : 280 Encoded date : 2022-02-16 13:34:29.040 File creation date : UTC 2022-02-16 13:34:28.702 File creation date (local) : 2022-02-16 14:34:28.702 File last modification date : UTC 2022-02-16 17:11:49.393 File last modification date (local) : 2022-02-16 18:11:49.393 Writing application : Omneon Inc. Omneon Media Subsystem 8.3.0.0.1 Encoded_Application_CompanyName : Omneon Inc. Encoded_Application_Name : Omneon Media Subsystem Encoded_Application_Version : 8.3.0.0.1 Writing library : Omneon Media Api (windows) Encoded_Library_Name : Omneon Media Api (windows)

Video

Count : 381
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 2
ID : 2
Format : AVC
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High 4:2:2@L5.2
Format settings, CABAC : No
Format settings, CABAC : No
Format settings, GOP : N=1
Format settings, wrapping mode : Frame
Internet media type : video/H264
Codec ID : 0D01030102106001-0401020201323001
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37:44
Duration : 00:55:37.880 (00:55:37:44)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 500000000
Bit rate : 500 Mb/s
Width : 3840
Width : 3 840 pixels
Clean aperture width : 166894 / 166894
Clean aperture width : 166 894 pixels / 166 894 pixels
Height : 2160
Height : 2 160 pixels
Sampled_Width : 3840
Sampled_Height : 2160
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Frame rate : 50.000
Frame rate : 50.000 FPS
Frame count : 166894
Color space : YUV
Chroma subsampling : 4:2:2
Chroma subsampling : 4:2:2
Bit depth : 10
Bit depth : 10 bits
Scan type : Progressive
Scan type : Progressive
Bits/(Pixel*Frame) : 1.206
Delay : 36000000
Delay : 10 h 0 min
Delay : 10 h 0 min 0 s 0 ms
Delay : 10 h 0 min
Delay : 10:00:00.000
Delay_DropFrame : No
Delay, origin : Container
Delay, origin : Container
Stream size : 208617500000
Stream size : 194 GiB (98%)
Stream size : 194 GiB
Stream size : 194 GiB
Stream size : 194 GiB
Stream size : 194.3 GiB
Stream size : 194 GiB (98%)
Proportion of this stream : 0.98096
Writing library : x264 - core 164 r3079 d9a19f0
Writing library : x264 core 164 r3079 d9a19f0
Encoded_Library_Name : x264
Encoded_Library_Version : core 164 r3079 d9a19f0
Encoding settings : cabac=0 / ref=1 / deblock=1:-4:-4 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=30 / lookahead_threads=5 / sliced_threads=0 / slices=8 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=1 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=0 / bitrate=500000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / vbv_maxrate=500000 / vbv_bufsize=500000 / nal_hrd=cbr / filler=1 / ip_ratio=1.40 / aq=1:1.00
Buffer size : 500000000
colour_description_present : Yes
colour_description_present_Source : Stream
Color range : Limited
colour_range_Source : Stream
Color primaries : BT.709
colour_primaries_Source : Stream
Transfer characteristics : BT.709
transfer_characteristics_Source : Stream
Matrix coefficients : BT.709
matrix_coefficients_Source : Stream
Delay_SystemScheme1 : 36000000
Format_Profile_Original : High 4:2:2 Intra@L5.2

Audio #1

Count : 288
Count of stream of this kind : 6
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
Stream identifier : 1
StreamOrder : 1
ID : 3-1
ID : 3-1
Format : Dolby E
Format : Dolby E
Commercial name : Dolby E
Format settings : Little
Mode : 24
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100-0402020203021C00
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37.880
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1291000
Bit rate : 1 291 kb/s
Encoded bit rate : 2304000
Encoded bit rate : 2 304 kb/s
Channel(s) : 6
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Channel positions : 3/2/0.1
Channel layout : L C Ls X R LFE Rs X
Samples per frame : 960
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 160218240
Frame rate : 50.000
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20
Bit depth : 20 bits
Delay : 0
Delay : 00:00:00.000
Delay_DropFrame : No
Delay, origin : Stream
Delay, origin : Raw stream
Delay relative to video : -36000000
Delay relative to video : -10 h 0 min
Delay relative to video : -10 h 0 min 0 s 0 ms
Delay relative to video : -10 h 0 min
Delay relative to video : -10:00:00.000
Stream size : 538650385
Stream size : 514 MiB (0%)
Stream size : 514 MiB
Stream size : 514 MiB
Stream size : 514 MiB
Stream size : 513.7 MiB
Stream size : 514 MiB (0%)
Proportion of this stream : 0.00253
Encoded stream size : 961309440
Encoded stream size : 917 MiB (0%)
Encoded stream size : 917 MiB
Encoded stream size : 917 MiB
Encoded stream size : 917 MiB
Encoded stream size : 916.8 MiB
Encoded stream size : 917 MiB (0%)
StreamSize_Encoded_Proportion : 0.00452
GuardBand_Before : 0.000750000
GuardBand_Before : 750
GuardBand_After : 0.001208333
GuardBand_After : 1208
Delay_SystemScheme1 : 36000000
Original frame rate : 25.000
Locked : Yes
BlockAlignment : 6

Audio #2

Count : 287
Count of stream of this kind : 6
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 1
Stream identifier : 2
StreamOrder : 1
ID : 3-2
ID : 3-2
Format : Dolby E
Format : Dolby E
Commercial name : Dolby E
Format settings : Little
Mode : 24
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100-0402020203021C00
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37.880
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 505000
Bit rate : 505 kb/s
Encoded bit rate : 0
Encoded bit rate : 0 b/s
Channel(s) : 2
Channel(s) : 2 channels
Channel positions : Front: L R
Channel positions : 2/0/0
Channel layout : X X X L X X X R
Samples per frame : 960
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 160218240
Frame rate : 50.000
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20
Bit depth : 20 bits
Delay : 0
Delay : 00:00:00.000
Delay_DropFrame : No
Delay, origin : Stream
Delay, origin : Raw stream
Delay relative to video : -36000000
Delay relative to video : -10 h 0 min
Delay relative to video : -10 h 0 min 0 s 0 ms
Delay relative to video : -10 h 0 min
Delay relative to video : -10:00:00.000
Stream size : 210703675
Stream size : 201 MiB (0%)
Stream size : 201 MiB
Stream size : 201 MiB
Stream size : 201 MiB
Stream size : 200.9 MiB
Stream size : 201 MiB (0%)
Proportion of this stream : 0.00099
Encoded stream size : 0
Encoded stream size : 0.00 Byte (0%)
Encoded stream size : Byte0
Encoded stream size : 0.0 Byte
Encoded stream size : 0.00 Byte
Encoded stream size : 0.000 Byte
Encoded stream size : 0.00 Byte (0%)
StreamSize_Encoded_Proportion : 0.00000
GuardBand_Before : 0.000750000
GuardBand_Before : 750
GuardBand_After : 0.001208333
GuardBand_After : 1208
Delay_SystemScheme1 : 36000000
Original frame rate : 25.000
Locked : Yes

Audio #3

Count : 288
Count of stream of this kind : 6
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 2
Stream identifier : 3
StreamOrder : 2
ID : 4-1
ID : 4-1
Format : Dolby E
Format : Dolby E
Commercial name : Dolby E
Format settings : Little
Mode : 24
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100-0402020203021C00
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37.880
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1291000
Bit rate : 1 291 kb/s
Encoded bit rate : 2304000
Encoded bit rate : 2 304 kb/s
Channel(s) : 6
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Channel positions : 3/2/0.1
Channel layout : L C Ls X R LFE Rs X
Samples per frame : 960
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 160218240
Frame rate : 50.000
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20
Bit depth : 20 bits
Delay : 40
Delay : 40 ms
Delay : 40 ms
Delay : 40 ms
Delay : 00:00:00.040
Delay_DropFrame : No
Delay, origin : Stream
Delay, origin : Raw stream
Delay relative to video : -35999960
Delay relative to video : -9 h 59 min
Delay relative to video : -9 h 59 min 59 s 960 ms
Delay relative to video : -9 h 59 min
Delay relative to video : -09:59:59.960
Stream size : 538650385
Stream size : 514 MiB (0%)
Stream size : 514 MiB
Stream size : 514 MiB
Stream size : 514 MiB
Stream size : 513.7 MiB
Stream size : 514 MiB (0%)
Proportion of this stream : 0.00253
Encoded stream size : 961309440
Encoded stream size : 917 MiB (0%)
Encoded stream size : 917 MiB
Encoded stream size : 917 MiB
Encoded stream size : 917 MiB
Encoded stream size : 916.8 MiB
Encoded stream size : 917 MiB (0%)
StreamSize_Encoded_Proportion : 0.00452
GuardBand_Before : 0.000750000
GuardBand_Before : 750
GuardBand_After : 0.001208333
GuardBand_After : 1208
Delay_SystemScheme1 : 36000000
Original frame rate : 25.000
Locked : Yes
BlockAlignment : 6

Audio #4

Count : 287
Count of stream of this kind : 6
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 3
Stream identifier : 4
StreamOrder : 2
ID : 4-2
ID : 4-2
Format : Dolby E
Format : Dolby E
Commercial name : Dolby E
Format settings : Little
Mode : 24
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100-0402020203021C00
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37.880
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 505000
Bit rate : 505 kb/s
Encoded bit rate : 0
Encoded bit rate : 0 b/s
Channel(s) : 2
Channel(s) : 2 channels
Channel positions : Front: L R
Channel positions : 2/0/0
Channel layout : X X X L X X X R
Samples per frame : 960
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 160218240
Frame rate : 50.000
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20
Bit depth : 20 bits
Delay : 40
Delay : 40 ms
Delay : 40 ms
Delay : 40 ms
Delay : 00:00:00.040
Delay_DropFrame : No
Delay, origin : Stream
Delay, origin : Raw stream
Delay relative to video : -35999960
Delay relative to video : -9 h 59 min
Delay relative to video : -9 h 59 min 59 s 960 ms
Delay relative to video : -9 h 59 min
Delay relative to video : -09:59:59.960
Stream size : 210703675
Stream size : 201 MiB (0%)
Stream size : 201 MiB
Stream size : 201 MiB
Stream size : 201 MiB
Stream size : 200.9 MiB
Stream size : 201 MiB (0%)
Proportion of this stream : 0.00099
Encoded stream size : 0
Encoded stream size : 0.00 Byte (0%)
Encoded stream size : Byte0
Encoded stream size : 0.0 Byte
Encoded stream size : 0.00 Byte
Encoded stream size : 0.000 Byte
Encoded stream size : 0.00 Byte (0%)
StreamSize_Encoded_Proportion : 0.00000
GuardBand_Before : 0.000750000
GuardBand_Before : 750
GuardBand_After : 0.001208333
GuardBand_After : 1208
Delay_SystemScheme1 : 36000000
Original frame rate : 25.000
Locked : Yes

Audio #5

Count : 283
Count of stream of this kind : 6
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 4
Stream identifier : 5
StreamOrder : 3
ID : 5
ID : 5
Format : PCM
Format : PCM
Commercial name : PCM
Format settings : Little
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Codec ID : 0D01030102060100
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37:44
Duration : 00:55:37.880 (00:55:37:44)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 2304000
Bit rate : 2 304 kb/s
Channel(s) : 2
Channel(s) : 2 channels
Samples per frame : 960
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 160218240
Frame rate : 50.000
Frame rate : 50.000 FPS (960 SPF)
Frame count : 166894
Bit depth : 24
Bit depth : 24 bits
Delay : 36000000
Delay : 10 h 0 min
Delay : 10 h 0 min 0 s 0 ms
Delay : 10 h 0 min
Delay : 10:00:00.000
Delay_DropFrame : No
Delay, origin : Container
Delay, origin : Container
Delay relative to video : 0
Delay relative to video : 00:00:00.000
Stream size : 961309440
Stream size : 917 MiB (0%)
Stream size : 917 MiB
Stream size : 917 MiB
Stream size : 917 MiB
Stream size : 916.8 MiB
Stream size : 917 MiB (0%)
Proportion of this stream : 0.00452
Delay_SystemScheme1 : 36000000
Locked : Yes
BlockAlignment : 6

Audio #6

Count : 283
Count of stream of this kind : 6
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 5
Stream identifier : 6
StreamOrder : 4
ID : 6
ID : 6
Format : PCM
Format : PCM
Commercial name : PCM
Format settings : Little
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (BWF)
Codec ID : 0D01030102060100
Duration : 3337880
Duration : 55 min 37 s
Duration : 55 min 37 s 880 ms
Duration : 55 min 37 s
Duration : 00:55:37.880
Duration : 00:55:37:44
Duration : 00:55:37.880 (00:55:37:44)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 2304000
Bit rate : 2 304 kb/s
Channel(s) : 2
Channel(s) : 2 channels
Samples per frame : 960
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 160218240
Frame rate : 50.000
Frame rate : 50.000 FPS (960 SPF)
Frame count : 166894
Bit depth : 24
Bit depth : 24 bits
Delay : 36000000
Delay : 10 h 0 min
Delay : 10 h 0 min 0 s 0 ms
Delay : 10 h 0 min
Delay : 10:00:00.000
Delay_DropFrame : No
Delay, origin : Container
Delay, origin : Container
Delay relative to video : 0
Delay relative to video : 00:00:00.000
Stream size : 961309440
Stream size : 917 MiB (0%)
Stream size : 917 MiB
Stream size : 917 MiB
Stream size : 917 MiB
Stream size : 916.8 MiB
Stream size : 917 MiB (0%)
Proportion of this stream : 0.00452
Delay_SystemScheme1 : 36000000
Locked : Yes
BlockAlignment : 6

Text

Count : 239
Count of stream of this kind : 1
Kind of stream : Text
Kind of stream : Text
Stream identifier : 0
ID : 7-777
ID : 7-777
Format : Teletext Subtitle
Format : Teletext Subtitle
Commercial name : Teletext Subtitle
Muxing mode : Ancillary data / OP-47 / SDP
Duration : 3337900
Duration : 55 min 37 s
Duration : 55 min 37 s 900 ms
Duration : 55 min 37 s
Duration : 00:55:37.900
Duration : 00:55:37:45
Duration : 00:55:37.900 (00:55:37:45)
Frame rate : 50.000
Frame rate : 50.000 FPS
Frame count : 166895
Delay : 36000000
Delay : 10 h 0 min
Delay : 10 h 0 min 0 s 0 ms
Delay : 10 h 0 min
Delay : 10:00:00.000
Delay_DropFrame : No
Delay, origin : Container
Delay, origin : Container
Delay relative to video : 0
Delay relative to video : 00:00:00.000
Delay_SystemScheme1 : 36000000

Other #1

Count : 188
Count of stream of this kind : 3
Kind of stream : Other
Kind of stream : Other
Stream identifier : 0
Stream identifier : 1
ID : 1-Material
ID : 1-Material
Type : Time code
Format : MXF TC
Format : MXF TC
Commercial name : MXF TC
Frame rate : 50.000
Frame rate : 50.000 FPS
Time code of first frame : 10:00:00:00
Time code settings : Material Package
Time code, striped : Yes
Time code, striped : Yes

Other #2

Count : 188
Count of stream of this kind : 3
Kind of stream : Other
Kind of stream : Other
Stream identifier : 1
Stream identifier : 2
ID : 1-Source
ID : 1-Source
Type : Time code
Format : MXF TC
Format : MXF TC
Commercial name : MXF TC
Frame rate : 50.000
Frame rate : 50.000 FPS
Time code of first frame : 10:00:00:00
Time code settings : Source Package
Time code, striped : Yes
Time code, striped : Yes

Other #3

Count : 188
Count of stream of this kind : 3
Kind of stream : Other
Kind of stream : Other
Stream identifier : 2
Stream identifier : 3
Type : Time code
Format : SMPTE TC
Format : SMPTE TC
Commercial name : SMPTE TC
Muxing mode : System scheme 1
Time code of first frame : 10:00:00:00

`
FranceBB commented 2 years ago

Forcing "Full Parsing" shows two tracks, so the idea here is to improve Mediainfo's reliability in detecting the second track, perhaps increasing the parsing whenever it detects the vbi_vanc_smpte_436M track.

Full Parsing result:

<TABLE style="BORDER-TOP: navy 1px solid; BORDER-RIGHT: navy 1px solid; BORDER-BOTTOM: navy 1px solid; BORDER-LEFT: navy 1px solid" cellSpacing=2 cellPadding=1 width="100%" border=0>

General

Complete name : I:\Scambio\Raw\4IS00666_TTXNUORI_BBC_BMX.mxf Format : MXF Format version : 1.3 Format profile : OP-1a Format settings : Closed / Complete File size : 198 GiB Duration : 55 min 37 s Overall bit rate : 509 Mb/s Encoded date : 2022-02-16 21:08:13.608 Writing application : BBC bmx 0.1.3.0.2 Writing library : libMXF (Win32) 1.0.3.0.2

Video

ID : 1001
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 4:2:2 Intra@L5.2
Format settings, CABAC : No
Format settings, GOP : N=1
Format settings, wrapping mode : Frame
Codec ID : 0D01030102106001-0401020201323001
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 500 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 50.000 FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 10 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 1.206
Stream size : 194 GiB (98%)
Title : V1
Writing library : x264 core 164 r3079 d9a19f0
Encoding settings : cabac=0 / ref=1 / deblock=1:-4:-4 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=30 / lookahead_threads=5 / sliced_threads=0 / slices=8 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=1 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=0 / bitrate=500000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / vbv_maxrate=500000 / vbv_bufsize=500000 / nal_hrd=cbr / filler=1 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1

ID : 2001-1
Format : Dolby E
Format settings : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 1 291 kb/s
Channel(s) : 6 channels
Channel layout : L C Ls X R LFE Rs X
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20 bits
Delay relative to video : -10 h 0 min
Stream size : 514 MiB (0%)
Title : UAT20530-AES1-fatto_Prog0
Original frame rate : 25.000
Locked : Yes

Audio #2

ID : 2001-2
Format : Dolby E
Format settings : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 505 kb/s
Channel(s) : 2 channels
Channel layout : X X X L X X X R
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20 bits
Delay relative to video : -10 h 0 min
Stream size : 201 MiB (0%)
Title : UAT20530-AES1-fatto_Prog1
Original frame rate : 25.000
Locked : Yes

Audio #3

ID : 2002-1
Format : Dolby E
Format settings : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 1 291 kb/s
Channel(s) : 6 channels
Channel layout : L C Ls X R LFE Rs X
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20 bits
Delay relative to video : -9 h 59 min
Stream size : 514 MiB (0%)
Title : UAT20530-AES2-fatto_Prog0
Original frame rate : 25.000
Locked : Yes

Audio #4

ID : 2002-2
Format : Dolby E
Format settings : Little
Format settings, wrapping mode : Frame (BWF)
Muxing mode : SMPTE ST 337
Codec ID : 0D01030102060100
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 505 kb/s
Channel(s) : 2 channels
Channel layout : X X X L X X X R
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 20 bits
Delay relative to video : -9 h 59 min
Stream size : 201 MiB (0%)
Title : UAT20530-AES2-fatto_Prog1
Original frame rate : 25.000
Locked : Yes

Audio #5

ID : 2003
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (BWF)
Codec ID : 0D01030102060100
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 24 bits
Stream size : 917 MiB (0%)
Title : A3
Locked : Yes

Audio #6

ID : 2004
Format : PCM
Format settings : Little
Format settings, wrapping mode : Frame (BWF)
Codec ID : 0D01030102060100
Duration : 55 min 37 s
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Bit depth : 24 bits
Stream size : 917 MiB (0%)
Title : A4
Locked : Yes

Text #1

ID : 3001-777
Format : Teletext Subtitle
Muxing mode : Ancillary data / OP-47 / SDP
Duration : 55 min 37 s
Title : D1

Text #2

ID : 3001-778
Format : Teletext Subtitle
Muxing mode : Ancillary data / OP-47 / SDP
Duration : 55 min 37 s
Title : D1

Other #1

ID : 901-Material
Type : Time code
Format : MXF TC
Frame rate : 50.000 FPS
Time code of first frame : 10:00:00:00
Time code settings : Material Package
Time code, striped : Yes
Title : TC1

Other #2

ID : 901-Source
Type : Time code
Format : MXF TC
Frame rate : 50.000 FPS
Time code of first frame : 10:00:00:00
Time code settings : Source Package
Time code, striped : Yes
Title : TC1

JeromeMartinez commented 2 years ago

perhaps increasing the parsing whenever it detects the vbi_vanc_smpte_436M track.

The issue here is not detecting the vbi_vanc_smpte_436M track, it is detected in your file (you get the first Teletext page), the issue is to read enough data for reaching all available Teletext pages without parsing the whole file. There is no index of the available Teletext pages AFAIK. In practice you can't be sure to have all Teletext pages without parsing the whole file (whatever is your algorithm, if you parse 99% of the file but there is a Teletext page only is the non parsed 1%, you miss it).

We have implemented a balance between parsing time (and storage read) and luck to get all, for Teletext or CEA-708 (same problem), for MXF we have implemented at the request of a sponsor the parsing in the middle of the file in addition to the beginning, it works well for him, for TS we added some options for manual setting of the maximum scanned duration (IIRC default is 30 seconds), but the only way to be sure you get all is to use the full parsing.

What alternative method would you see there that would fit your needs for sure? Scanning more? We can set an option for scanning 5 minutes instead of 30 seconds but if your second Teletext page appears at 5 minutes and 1 second you'll still miss it... Do I miss something in Teletext format about an index? (I am sure about the lack of index in CEA-608/708, less sure about Teletext)

FranceBB commented 2 years ago

Unfortunately Teletext is just as painful as CEA 608/708 in the sense that there isn't an index. I also tried to dump the container header with mxfdump (I mean mxfdump.exe --no-limit-entries %sourcefile% > %sourcefile%.mxfdump.txt) but there was no hint about the content of the 436m track in the header. In other words, you're right, one would need to parse the whole file in order to guarantee correct detection. Currently, 30 seconds are parsed at the beginning and in the middle, right? Scanning a third part or indeed increasing the scanned part a bit would definitely help. Of course, no one is ever gonna be sure to find subtitles every time, but it would be nice to be able to scan multiple points instead of just 30 seconds at the beginning and 30 seconds in the end. Speaking of which, is it actually seconds or frames? 'Cause the thing that caught my attention is that the very same file encoded at 25fps and subtitles synced at 25fps doesn't have any issues and mediainfo - when it performs the detection - detects both languages, however when the file is encoded at 50p with subtitles synced at 50p, mediainfo doesn't recognize it. If it's really parsing 30 seconds of the file, given that timecodes are basically the same, it should have been able to detect the two languages in both, so maybe it's actually counting frames and therefore it's counting just as little as 15 seconds in a 50p stream? I don't know.

P.s Since you, the author himself, replied, I'm taking the chance to say "thank you for everything you've done", Jerome and for giving birth to one of the most amazing free open source software ever. I've been using mediainfo since 2006, when I encoded my first files long time ago (way before I got into broadcasting). As an Avisynth developer and contributor, I couldn't be more thankful and I think everyone on Doom9 is forever gonna be grateful. I've been using mediainfo both privately and professionally in every company I've ever worked (Crunchyroll, Viewster, Sky) and it's also at the heart of many Avisynth based automatisation I made and thinking that something like this is open source really shows how good the community can be and I'll always be an advocate of open source software. ;)

JeromeMartinez commented 2 years ago

Currently, 30 seconds are parsed at the beginning and in the middle, right?

I wrote too quickly. Checking the code, it is more hard coded and arbitrary 512 AVC frames and/or 64 MiB at the beginning and 64 MiB in the middle. There are a couple of other checks which need to be clarified at some point.

Scanning a third part or indeed increasing the scanned part a bit would definitely help.

But where would be the limit, if the third part does not fit your needs? There a pro and cons for that. Maybe an option for the duration/bytecount/etc so you can tweak yourself. But yet another option... Not soon (I am already late on paid support so free support is a bit on hold :( ...)

so maybe it's actually counting frames and therefore it's counting just as little as 15 seconds in a 50p stream? I don't know.

Right.

I'm taking the chance to say "thank you for everything you've done"

😊