Normal
No This one is the right one:https://github.com/FreakyJ/MediaPortal-2/tree/FEAT_WifiRemoteForMP2This 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.NetThey are very compatible (at least to the ASP.Net Branch) Because the changes are minimal.That's perfect 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
No
This one is the right one:
https://github.com/FreakyJ/MediaPortal-2/tree/FEAT_WifiRemoteForMP2
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 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.Error("MediaAnalyzer: Failed to retreive MPEG2TS timestamp for resource '{0}'", info.Metadata.Source);
finally
if (raf != null) raf.Close();
}[/code]
Hope this helps