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
[Jira MP1-4730] MKV multiple video track support
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="Sebastiii" data-source="post: 1166100" data-attributes="member: 60104"><p>I'm not really good with regex but the culprit part is there : </p><p>public override string VideoType(int iStream)</p><p></p><p>[CODE=C#]if (resultLAVF.Success)</p><p> // check for LAVF response format, e.g.:</p><p> // S: Title [Lang] (Info) when only Language in stream -> answer is S: Lang -> start to detect if [lang] is present if not replace Lang by ""</p><p> {</p><p> string lang_or_title = resultLAVF.Groups[1].Value;</p><p> string lang = resultLAVF.Groups[2].Value;</p><p> string info = resultLAVF.Groups[3].Value;</p><p> if (!string.IsNullOrEmpty(info))</p><p> {</p><p> if (!string.IsNullOrEmpty(lang))</p><p> {</p><p> streamName = "" + lang_or_title + " [" + info + "]";</p><p> }</p><p> else</p><p> {</p><p> streamName = info;</p><p> }</p><p> }</p><p> else if (string.IsNullOrEmpty(info))</p><p> {</p><p> streamName = regex.Replace(streamName, "").Trim();</p><p> }</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1166100, member: 60104"] I'm not really good with regex but the culprit part is there : public override string VideoType(int iStream) [CODE=C#]if (resultLAVF.Success) // check for LAVF response format, e.g.: // S: Title [Lang] (Info) when only Language in stream -> answer is S: Lang -> start to detect if [lang] is present if not replace Lang by "" { string lang_or_title = resultLAVF.Groups[1].Value; string lang = resultLAVF.Groups[2].Value; string info = resultLAVF.Groups[3].Value; if (!string.IsNullOrEmpty(info)) { if (!string.IsNullOrEmpty(lang)) { streamName = "" + lang_or_title + " [" + info + "]"; } else { streamName = info; } } else if (string.IsNullOrEmpty(info)) { streamName = regex.Replace(streamName, "").Trim(); } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
[Jira MP1-4730] MKV multiple video track support
Contact us
RSS
Top
Bottom