[Finished] MP1-4777 Additional info for video and audio (1 Viewer)

CyberSimian

Test Group
  • Team MediaPortal
  • June 10, 2013
    2,849
    1,771
    Southampton
    Home Country
    United Kingdom United Kingdom
    Could you present a small sample to check?
    I think that recent series of "The Simpsons" have a multichannel soundtrack, and there is an episode starting in 10 minutes (at 18:00). I have scheduled it to record. It will start at 17:59 (I use one minute of pre-padding), but I will stop the recording at 18:05. As well as the pre-padding, the programme may start a minute or two late, but stopping it at 18:05 should ensure that part of the actual Simpsons episode is recorded. I don't know how big the TS file will be (it's HD!).

    --- from CyberSimian in the UK
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,849
    1,771
    Southampton
    Home Country
    United Kingdom United Kingdom
    Could you present a small sample to check?
    "Small" may be difficult. :(

    I checked the info display on my Sony TV. Prior to the start of "The Simpsons", the audio type was displayed as English HE-AAC 2/0. This changed to English HE-AAC 3/2.1 after "The Simsons" had started. I stopped the recording even earlier than I said previously, but the TS file is still 121MB in size :eek:.

    Where do we go from here? o_O

    -- from CyberSimian in the UK
     

    yartat

    Portal Pro
    October 1, 2007
    71
    115
    Kjiv, Ukraine
    Home Country
    Ukraine Ukraine
    It is a complicated to understand. In you case may be next things:
    1. there are 3 different PATs with different audio PID on each PAT
    2. there is 1 PAT and 3 different audio PID with offsets
    so, I need a sample to understand what kind of solution should analyze.
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,849
    1,771
    Southampton
    Home Country
    United Kingdom United Kingdom
    It is a complicated to understand. In you case may be next things:
    1. there are 3 different PATs with different audio PID on each PAT
    2. there is 1 PAT and 3 different audio PID with offsets
    I don't know anything about how the data is stored in a TS file, so the following is just guesswork.

    When TV Server is recording a channel, it simply writes to disk the data that it receives from the tuner. If the recording crosses the boundary between two programmes (as it does when pre-padding is used), TV Server does not know at the start of the recording what properties will change at the boundary between those programmes. So, the recording may start with audio=two-channel-sound, but later change to audio=five-channel-sound.

    My guess is that every few seconds there is a header block in the data stream that defines the properties of the data that follows (until the next header block is encountered). So the audio will change at one of these header blocks.

    So I think that the processing should probably be something like this:

    (1) If the invoker of MediaInfo specifies offset=0, return the properties from the header block at the start of the file.

    (2) If the invoker specifies (say) offset=5 minutes, find the first header block following the offset of 5 minutes from the start, and return the properties specified in that header block.

    Perhaps @Owlsroost knows more about this?

    -- from CyberSimian in the UK
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    Seems work :)
    Code:
    [2019-05-19 16:17:58,607] [Log    ] [MPMain   ] [DEBUG] - Analyzing media M:\Video\Movies\Власть - Vice (2018).mkv.
    [2019-05-19 16:17:58,614] [Log    ] [MPMain   ] [DEBUG] - Check MediaInfo.dll from .\x86.
    [2019-05-19 16:18:05,171] [Log    ] [MPMain   ] [DEBUG] - Process file M:\Video\Movies\Власть - Vice (2018).mkv was completed successfully
    [2019-05-19 16:18:05,182] [Log    ] [MPMain   ] [INFO ] - Inspecting media    : M:\Video\Movies\Власть - Vice (2018).mkv
    [2019-05-19 16:18:05,189] [Log    ] [MPMain   ] [DEBUG] - DLL version         : MediaInfoLib - v18.12
    [2019-05-19 16:18:05,197] [Log    ] [MPMain   ] [DEBUG] - Media duration      : 02:12:26.5640000
    [2019-05-19 16:18:05,206] [Log    ] [MPMain   ] [DEBUG] - Has audio           : True
    [2019-05-19 16:18:05,214] [Log    ] [MPMain   ] [DEBUG] - Has video           : True
    [2019-05-19 16:18:05,233] [Log    ] [MPMain   ] [DEBUG] - Has subtitles       : True
    [2019-05-19 16:18:05,246] [Log    ] [MPMain   ] [DEBUG] - Has chapters        : False
    [2019-05-19 16:18:05,251] [Log    ] [MPMain   ] [DEBUG] - Is DVD              : False
    [2019-05-19 16:18:05,257] [Log    ] [MPMain   ] [DEBUG] - Is Blu-Ray disk     : False
    [2019-05-19 16:18:05,262] [Log    ] [MPMain   ] [DEBUG] - Video duration      : 02:12:26.5640000
    [2019-05-19 16:18:05,267] [Log    ] [MPMain   ] [DEBUG] - Video frame rate    : 23,976
    [2019-05-19 16:18:05,273] [Log    ] [MPMain   ] [DEBUG] - Video width         : 1920
    [2019-05-19 16:18:05,278] [Log    ] [MPMain   ] [DEBUG] - Video height        : 804
    [2019-05-19 16:18:05,283] [Log    ] [MPMain   ] [DEBUG] - Video aspect ratio  : widescreen
    [2019-05-19 16:18:05,289] [Log    ] [MPMain   ] [DEBUG] - Video codec         : AVC High@L4.1
    [2019-05-19 16:18:05,294] [Log    ] [MPMain   ] [DEBUG] - Video scan type     : progressive
    [2019-05-19 16:18:05,300] [Log    ] [MPMain   ] [DEBUG] - Is video interlaced : False
    [2019-05-19 16:18:05,305] [Log    ] [MPMain   ] [DEBUG] - Video resolution    : 1080P
    [2019-05-19 16:18:05,312] [Log    ] [MPMain   ] [DEBUG] - Video 3D mode       : Mono
    [2019-05-19 16:18:05,318] [Log    ] [MPMain   ] [DEBUG] - Video HDR standard  : None
    [2019-05-19 16:18:05,324] [Log    ] [MPMain   ] [DEBUG] - Audio duration      : 02:12:27.4890000
    [2019-05-19 16:18:05,330] [Log    ] [MPMain   ] [DEBUG] - Audio rate          : 1509000
    [2019-05-19 16:18:05,336] [Log    ] [MPMain   ] [DEBUG] - Audio channels      : 5.1
    [2019-05-19 16:18:05,341] [Log    ] [MPMain   ] [DEBUG] - Audio codec         : DTS
    [2019-05-19 16:18:05,347] [Log    ] [MPMain   ] [DEBUG] - Audio bit depth     : 24
    [2019-05-19 16:18:05,353] [Log    ] [MPMain   ] [DEBUG] - Subtitles count     : 3
    [2019-05-19 16:18:05,460] [Log    ] [MPMain   ] [INFO ] - VideoDatabase media info scanning file: M:\Video\Movies\Власть - Vice (2018).mkv
    [2019-05-19 16:18:05,466] [Log    ] [MPMain   ] [INFO ] - Inspecting media    : M:\Video\Movies\Власть - Vice (2018).mkv
    [2019-05-19 16:18:05,472] [Log    ] [MPMain   ] [DEBUG] - DLL version         : MediaInfoLib - v18.12
    [2019-05-19 16:18:05,477] [Log    ] [MPMain   ] [DEBUG] - Media duration      : 02:12:26.5640000
    [2019-05-19 16:18:05,482] [Log    ] [MPMain   ] [DEBUG] - Has audio           : True
    [2019-05-19 16:18:05,488] [Log    ] [MPMain   ] [DEBUG] - Has video           : True
    [2019-05-19 16:18:05,493] [Log    ] [MPMain   ] [DEBUG] - Has subtitles       : True
    [2019-05-19 16:18:05,498] [Log    ] [MPMain   ] [DEBUG] - Has chapters        : False
    [2019-05-19 16:18:05,504] [Log    ] [MPMain   ] [DEBUG] - Is DVD              : False
    [2019-05-19 16:18:05,510] [Log    ] [MPMain   ] [DEBUG] - Is Blu-Ray disk     : False
    [2019-05-19 16:18:05,515] [Log    ] [MPMain   ] [DEBUG] - Video duration      : 02:12:26.5640000
    [2019-05-19 16:18:05,521] [Log    ] [MPMain   ] [DEBUG] - Video frame rate    : 23,976
    [2019-05-19 16:18:05,526] [Log    ] [MPMain   ] [DEBUG] - Video width         : 1920
    [2019-05-19 16:18:05,532] [Log    ] [MPMain   ] [DEBUG] - Video height        : 804
    [2019-05-19 16:18:05,538] [Log    ] [MPMain   ] [DEBUG] - Video aspect ratio  : widescreen
    [2019-05-19 16:18:05,543] [Log    ] [MPMain   ] [DEBUG] - Video codec         : AVC High@L4.1
    [2019-05-19 16:18:05,548] [Log    ] [MPMain   ] [DEBUG] - Video scan type     : progressive
    [2019-05-19 16:18:05,554] [Log    ] [MPMain   ] [DEBUG] - Is video interlaced : False
    [2019-05-19 16:18:05,559] [Log    ] [MPMain   ] [DEBUG] - Video resolution    : 1080P
    [2019-05-19 16:18:05,565] [Log    ] [MPMain   ] [DEBUG] - Video 3D mode       : Mono
    [2019-05-19 16:18:05,574] [Log    ] [MPMain   ] [DEBUG] - Video HDR standard  : None
    [2019-05-19 16:18:05,581] [Log    ] [MPMain   ] [DEBUG] - Audio duration      : 02:12:27.4890000
    [2019-05-19 16:18:05,586] [Log    ] [MPMain   ] [DEBUG] - Audio rate          : 1509000
    [2019-05-19 16:18:05,592] [Log    ] [MPMain   ] [DEBUG] - Audio channels      : 5.1
    [2019-05-19 16:18:05,597] [Log    ] [MPMain   ] [DEBUG] - Audio codec         : DTS
    [2019-05-19 16:18:05,603] [Log    ] [MPMain   ] [DEBUG] - Audio bit depth     : 24
    [2019-05-19 16:18:05,609] [Log    ] [MPMain   ] [DEBUG] - Subtitles count     : 3
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    @yartat
    New MediaInfo put in DB VideoCodec like AVC High@L4.1 instead AVC :(
    Code:
    rowid    idFile    videoCodec    videoResolution    aspectRatio    hasSubtitles    audioCodec    audioChannels
    6038    6038    AVC    1080P    widescreen    True    AC-3    5.1
    6039    6039    AVC High@L4.1    1080P    widescreen    True    DTS    5.1
     

    Users who are viewing this thread

    Top Bottom