How can I tell if a satellite audio stream is 5.1? (1 Viewer)

regeszter

Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Just for info. I have an own TvPlugin with support of signal length and quality on TV OSD. ;)

    tvosd-png.166828.png
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,392
    1,173
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    how often will it be populated? once after tuning? every change for thiese values? or every call of channel information screen?
    surely we can publish this information to skin, and then skin creator can decide whether he wants to show this info and where.
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    how often will it be populated? once after tuning? every change for thiese values? or every call of channel information screen?
    surely we can publish this information to skin, and then skin creator can decide whether he wants to show this info and where.

    I do not remember but about 5-10 secs. It needs TvPlugin update...
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,539
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom

    Vasilich

    Portal Pro
    August 30, 2009
    3,392
    1,173
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    My current dev versions of TsReader.ax do parse the actual audio stream to extract the audio channel count (so it can generate the mediatype information on the output pin correctly). It also logs the information (and detects changes to channel count during play).
    as i was forced to upgrade to MP 1.12, @Owlsroost please can you point me to the places where you do this parsing, or, better, where shoud we insert this additional function with audio information? So i can spare some time understanding the complete TSReader logic
     
    Last edited:

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,539
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    The actual audio header parsing starts at - https://github.com/MediaPortal/Medi...lters/TsReader/source/DeMultiplexer.cpp#L1569 (in 'CDeMultiplexer::FillAudio()')

    This is then used to fill out the internal 'm_mpegPesParser->basicAudioInfo' structure which other things use to get info about the current audio stream.

    Note that this is only for the currently active/selected audio stream - it does not parse any inactive audio streams.

    If you call 'CDeMultiplexer::GetAudioStreamType()' it fills out a standard DirectShow 'mediatype' structure with all the information - this is what AudioPin.cpp calls, for example here - https://github.com/MediaPortal/Medi...ShowFilters/TsReader/source/AudioPin.cpp#L136 - when 'GetMediaType()' is called during audio output pin connection is done during graph building.

    See https://msdn.microsoft.com/en-us/library/windows/desktop/dd373394(v=vs.85).aspx , https://msdn.microsoft.com/en-us/library/windows/desktop/dd373477(v=vs.85).aspx and https://msdn.microsoft.com/en-us/library/windows/desktop/dd390970(v=vs.85).aspx for more info about mediatypes and (for audio) WAVEFORMATEX structures.

    What do you actually want to do here - just provide the audio equivalent to the video 'OnVideoFormatChanged()' or 'OnBitRateChanged()' callbacks to MP player for the audio side of things ?
     

    Users who are viewing this thread

    Similar threads

    I regret to say that MP no longer has an expert in EPG transmission formats, so unless the change is trivial, this may not be fixed for some considerable time. One workaround would be to use "Schedules Direct". It is a paid service (around 30 US dollars per year), and they do provide EPG info for New Zealand. Schedules Direct...
    I regret to say that MP no longer has an expert in EPG transmission formats, so unless the change is trivial, this may not be fixed...
    Satellite TV in New Zealand is now broadcast from Koreasat 6, which has trundled round from 116E to 160E. Can we have an updated...
    Replies
    10
    Views
    3K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    818
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV Server Config". I have tried MP2 only a couple of times, and have never used it seriously. I don't know what MP2 supports with regard to adjusting audio delay, but I do know that all of the adjustments of...
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV...
    Hi. I recently upgraded my home cinema AVR which also meant changed from sending audio from my HTPC as 5.1 using optical to 7.1...
    Replies
    5
    Views
    3K
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
    Replies
    2
    Views
    405
    MP1 MP2 .mpd stream link DE
    I have a stream link for IPTV that is a .mpd. I can play the link in VLC and MPC-BE, but when I search for it in the TV servers it can not find it. The stream is HEVC with AAC audio. Does mediaportal not support .mpd streams?
    I have a stream link for IPTV that is a .mpd. I can play the link in VLC and MPC-BE, but when I search for it in the TV servers it...
    I have a stream link for IPTV that is a .mpd. I can play the link in VLC and MPC-BE, but when I search for it in the TV servers it...
    Replies
    0
    Views
    2K
    Top Bottom