home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
How can I tell if a satellite audio stream is 5.1?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Owlsroost" data-source="post: 1155459" data-attributes="member: 83973"><p>The actual audio header parsing starts at - <a href="https://github.com/MediaPortal/MediaPortal-1/blob/EXP-VS2013-DSFilter-Owlsroost/DirectShowFilters/TsReader/source/DeMultiplexer.cpp#L1569" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/EXP-VS2013-DSFilter-Owlsroost/DirectShowFilters/TsReader/source/DeMultiplexer.cpp#L1569</a> (in 'CDeMultiplexer::FillAudio()')</p><p></p><p>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.</p><p></p><p>Note that this is only for the currently active/selected audio stream - it does not parse any inactive audio streams.</p><p></p><p>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 - <a href="https://github.com/MediaPortal/MediaPortal-1/blob/EXP-VS2013-DSFilter-Owlsroost/DirectShowFilters/TsReader/source/AudioPin.cpp#L136" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/EXP-VS2013-DSFilter-Owlsroost/DirectShowFilters/TsReader/source/AudioPin.cpp#L136</a> - when 'GetMediaType()' is called during audio output pin connection is done during graph building.</p><p></p><p>See <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd373394(v=vs.85).aspx" target="_blank">https://msdn.microsoft.com/en-us/library/windows/desktop/dd373394(v=vs.85).aspx</a> , <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd373477(v=vs.85).aspx" target="_blank">https://msdn.microsoft.com/en-us/library/windows/desktop/dd373477(v=vs.85).aspx</a> and <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd390970(v=vs.85).aspx" target="_blank">https://msdn.microsoft.com/en-us/library/windows/desktop/dd390970(v=vs.85).aspx</a> for more info about mediatypes and (for audio) <strong>WAVEFORMATEX</strong> structures.</p><p></p><p>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 ?</p></blockquote><p></p>
[QUOTE="Owlsroost, post: 1155459, member: 83973"] The actual audio header parsing starts at - [URL]https://github.com/MediaPortal/MediaPortal-1/blob/EXP-VS2013-DSFilter-Owlsroost/DirectShowFilters/TsReader/source/DeMultiplexer.cpp#L1569[/URL] (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 - [URL]https://github.com/MediaPortal/MediaPortal-1/blob/EXP-VS2013-DSFilter-Owlsroost/DirectShowFilters/TsReader/source/AudioPin.cpp#L136[/URL] - when 'GetMediaType()' is called during audio output pin connection is done during graph building. See [URL]https://msdn.microsoft.com/en-us/library/windows/desktop/dd373394(v=vs.85).aspx[/URL] , [URL]https://msdn.microsoft.com/en-us/library/windows/desktop/dd373477(v=vs.85).aspx[/URL] and [URL]https://msdn.microsoft.com/en-us/library/windows/desktop/dd390970(v=vs.85).aspx[/URL] for more info about mediatypes and (for audio) [B]WAVEFORMATEX[/B] 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 ? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
How can I tell if a satellite audio stream is 5.1?
Contact us
RSS
Top
Bottom