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 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
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="FreakyJ" data-source="post: 1170920" data-attributes="member: 106003"><p>No <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>This one is the right one:</p><p><a href="https://github.com/FreakyJ/MediaPortal-2/tree/FEAT_WifiRemoteForMP2" target="_blank">https://github.com/FreakyJ/MediaPortal-2/tree/FEAT_WifiRemoteForMP2</a></p><p>This branch is the most recent one before the MIA rework. You merged this one into your MIA rework branch. So all three branches have the same functionality, they are just a evolution.</p><p>MP2Ext -> MP2Ext + MIA -> MP2Ext + MIA + ASP.Net</p><p>They are very compatible (at least to the ASP.Net Branch) Because the changes are minimal.</p><p></p><p></p><p>That's perfect <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /> So just use the Branch you were using before^^</p><p></p><p></p><p>Puuh, I don't know. [USER=48495]@morpheus_xx[/USER] wrote this code...</p><p></p><p></p><p>You already used it in FFMPegParseMPEG2TSInfo.cs @ Ln 41</p><p>[code]// Impersionation</p><p> using (ServiceRegistration.Get<IImpersonationService>().CheckImpersonationFor(lfsra.CanonicalLocalResourcePath))</p><p> {</p><p> try</p><p> {</p><p> raf = File.OpenRead(lfsra.LocalFileSystemPath);</p><p> byte[] packetBuffer = new byte[193];</p><p> raf.Read(packetBuffer, 0, packetBuffer.Length);</p><p> if (packetBuffer[0] == 0x47) //Sync byte (Standard MPEG2 TS)</p><p> {</p><p> info.Video.TimestampType = Timestamp.None;</p><p> if (Logger != null) Logger.Debug("MediaAnalyzer: Successfully found MPEG2TS timestamp in transport stream: {0}", info.Video.TimestampType);</p><p> }</p><p> else if (packetBuffer[4] == 0x47 && packetBuffer[192] == 0x47) //Sync bytes (BluRay MPEG2 TS)</p><p> {</p><p> if (packetBuffer[0] == 0x00 && packetBuffer[1] == 0x00 && packetBuffer[2] == 0x00 && packetBuffer[3] == 0x00)</p><p> {</p><p> info.Video.TimestampType = Timestamp.Zeros;</p><p> }</p><p> else</p><p> {</p><p> info.Video.TimestampType = Timestamp.Valid;</p><p> }</p><p> if (Logger != null) Logger.Debug("MediaAnalyzer: Successfully found MPEG2TS timestamp in transport stream: {0}", info.Video.TimestampType);</p><p> }</p><p> else</p><p> {</p><p> info.Video.TimestampType = Timestamp.None;</p><p> if (Logger != null) Logger.Error("MediaAnalyzer: Failed to retreive MPEG2TS timestamp for resource '{0}'", info.Metadata.Source);</p><p> }</p><p> }</p><p> finally</p><p> {</p><p> if (raf != null) raf.Close();</p><p> }</p><p> }[/code]</p><p>Hope this helps <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1170920, member: 106003"] No :) This one is the right one: [URL]https://github.com/FreakyJ/MediaPortal-2/tree/FEAT_WifiRemoteForMP2[/URL] This branch is the most recent one before the MIA rework. You merged this one into your MIA rework branch. So all three branches have the same functionality, they are just a evolution. MP2Ext -> MP2Ext + MIA -> MP2Ext + MIA + ASP.Net They are very compatible (at least to the ASP.Net Branch) Because the changes are minimal. That's perfect (y) So just use the Branch you were using before^^ Puuh, I don't know. [USER=48495]@morpheus_xx[/USER] wrote this code... You already used it in FFMPegParseMPEG2TSInfo.cs @ Ln 41 [code]// Impersionation using (ServiceRegistration.Get<IImpersonationService>().CheckImpersonationFor(lfsra.CanonicalLocalResourcePath)) { try { raf = File.OpenRead(lfsra.LocalFileSystemPath); byte[] packetBuffer = new byte[193]; raf.Read(packetBuffer, 0, packetBuffer.Length); if (packetBuffer[0] == 0x47) //Sync byte (Standard MPEG2 TS) { info.Video.TimestampType = Timestamp.None; if (Logger != null) Logger.Debug("MediaAnalyzer: Successfully found MPEG2TS timestamp in transport stream: {0}", info.Video.TimestampType); } else if (packetBuffer[4] == 0x47 && packetBuffer[192] == 0x47) //Sync bytes (BluRay MPEG2 TS) { if (packetBuffer[0] == 0x00 && packetBuffer[1] == 0x00 && packetBuffer[2] == 0x00 && packetBuffer[3] == 0x00) { info.Video.TimestampType = Timestamp.Zeros; } else { info.Video.TimestampType = Timestamp.Valid; } if (Logger != null) Logger.Debug("MediaAnalyzer: Successfully found MPEG2TS timestamp in transport stream: {0}", info.Video.TimestampType); } else { info.Video.TimestampType = Timestamp.None; if (Logger != null) Logger.Error("MediaAnalyzer: Failed to retreive MPEG2TS timestamp for resource '{0}'", info.Metadata.Source); } } finally { if (raf != null) raf.Close(); } }[/code] Hope this helps :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
Top
Bottom