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
Development
General Development (no feature request here!)
Need help to find bug in sourcecode
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="sover" data-source="post: 516602" data-attributes="member: 72242"><p>Hi. </p><p>in this <a href="https://forum.team-mediaportal.com/mediaportal-1-1-0-beta-1-454/audio-lang-properties-bug-69985/" target="_blank">Audio lang properties bug</a> thread i post a small bug.</p><p>So i found this strings in sourcecode (<a href="https://sources.team-mediaportal.com...oPlayerVMR7.cs" target="_blank">https://sources.team-mediaportal.com...oPlayerVMR7.cs</a>)</p><p>----------------------------------------------------------------</p><p>/// <summary></p><p>/// Property to get/set the name for a subtitle stream</p><p>/// </summary></p><p>public override string SubtitleLanguage(int iStream)</p><p>{</p><p>string streamName = SubEngine.GetInstance().GetLanguage(iStream);</p><p>if (streamName == null)</p><p>{</p><p>return Strings.Unknown;</p><p>}</p><p>// Sometimes underline engine returns Haali mkv streams as: "S: trackname [language]"</p><p>Regex regex = new Regex(@"\[([^\]]+)\]");</p><p>Match result = regex.Match(streamName);</p><p>if (result.Success)</p><p>{</p><p>streamName = result.Groups[1].Value;</p><p>}</p><p></p><p>return streamName;</p><p>}</p><p>...................</p><p>Log.Debug("VideoPlayer: FoundStreams: Type={0}; Name={1}, Filter={2}, Id={3}, PDWGroup={4}",</p><p>FSInfos.Type.ToString(), FSInfos.Name, FSInfos.Filter, FSInfos.Id.ToString(),</p><p>sPDWGroup.ToString());</p><p>--------------------------------------------------------</p><p>This code is work because i see in my log:</p><p></p><p>2009-09-29 12:28:32.156250 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Video; Name=V: The Matrix Reloaded (2003) [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=0, PDWGroup=0</p><p>2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: AC3 5.1 384 Kbps [Russian], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=1, PDWGroup=1</p><p>2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: DTS 5.1 @ 1.5 Mbps [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=2, PDWGroup=1</p><p>2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Commentary 1 [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=3, PDWGroup=1</p><p>2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Commentary 2 [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=4, PDWGroup=1</p><p>2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle; Name=S: English [Undetermined], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=5, PDWGroup=2</p><p>2009-09-29 12:28:32.218750 [Info.][3]: planesceneresentImage() frame:0 enabled:False allowed:True</p><p>2009-09-29 12:28:32.265625 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle; Name=S: [Russian], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=6, PDWGroup=2</p><p>2009-09-29 12:28:32.265625 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle_hidden; Name=No subtitles, Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=7, PDWGroup=2</p><p></p><p>log says that MP is correctly found all streams with all properties but then i go to audio lang menu i see only name of the languages.</p><p>I want to find where in sources of MP audio lang section and subtitles menus are situated. I just want to try fix it and need your help. </p><p>I know that this is a small issue but it`s very annoying to watch movies with many languages and not to know what lang you play. </p><p>Hope for someone of devs support.</p></blockquote><p></p>
[QUOTE="sover, post: 516602, member: 72242"] Hi. in this [URL="https://forum.team-mediaportal.com/mediaportal-1-1-0-beta-1-454/audio-lang-properties-bug-69985/"]Audio lang properties bug[/URL] thread i post a small bug. So i found this strings in sourcecode ([url]https://sources.team-mediaportal.com...oPlayerVMR7.cs[/url]) ---------------------------------------------------------------- /// <summary> /// Property to get/set the name for a subtitle stream /// </summary> public override string SubtitleLanguage(int iStream) { string streamName = SubEngine.GetInstance().GetLanguage(iStream); if (streamName == null) { return Strings.Unknown; } // Sometimes underline engine returns Haali mkv streams as: "S: trackname [language]" Regex regex = new Regex(@"\[([^\]]+)\]"); Match result = regex.Match(streamName); if (result.Success) { streamName = result.Groups[1].Value; } return streamName; } ................... Log.Debug("VideoPlayer: FoundStreams: Type={0}; Name={1}, Filter={2}, Id={3}, PDWGroup={4}", FSInfos.Type.ToString(), FSInfos.Name, FSInfos.Filter, FSInfos.Id.ToString(), sPDWGroup.ToString()); -------------------------------------------------------- This code is work because i see in my log: 2009-09-29 12:28:32.156250 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Video; Name=V: The Matrix Reloaded (2003) [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=0, PDWGroup=0 2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: AC3 5.1 384 Kbps [Russian], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=1, PDWGroup=1 2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: DTS 5.1 @ 1.5 Mbps [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=2, PDWGroup=1 2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Commentary 1 [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=3, PDWGroup=1 2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Audio; Name=A: Commentary 2 [English], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=4, PDWGroup=1 2009-09-29 12:28:32.171875 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle; Name=S: English [Undetermined], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=5, PDWGroup=2 2009-09-29 12:28:32.218750 [Info.][3]: planesceneresentImage() frame:0 enabled:False allowed:True 2009-09-29 12:28:32.265625 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle; Name=S: [Russian], Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=6, PDWGroup=2 2009-09-29 12:28:32.265625 [Debug][MPMain]: VideoPlayer: FoundStreams: Type=Subtitle_hidden; Name=No subtitles, Filter=D:\1\The Matrix.Reloaded.1080p.HDDVD.x264-Sample.mkv, Id=7, PDWGroup=2 log says that MP is correctly found all streams with all properties but then i go to audio lang menu i see only name of the languages. I want to find where in sources of MP audio lang section and subtitles menus are situated. I just want to try fix it and need your help. I know that this is a small issue but it`s very annoying to watch movies with many languages and not to know what lang you play. Hope for someone of devs support. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Need help to find bug in sourcecode
Contact us
RSS
Top
Bottom