stwood / Microsoft-Media-Platform-Content-Manager

The Microsoft Media Platform Content Manager (MMPCM) is an open source solution that can be used by enterprises, educational institutions and broadcasting companies to manage their video assets. This lightweight and highly-customizable solution is built on Microsoft SharePoint 2010 and Microsoft media-related technologies, including Silverlight 4, IIS Media Services and Expression Encoder 4. The MMPCM infrastructure enables users to: Define, edit and approve or reject video assets, Transcode video into different formats, Broadcast Live Events, Insert Ads on Live Event transmissions, Edit videos online right within MMPCM and Publish videos to external players.
http://www.microsoft.com/download/en/details.aspx?id=26668
12 stars 1 forks source link

When using the product Microsoft Media Platform Content Manager found problems. #2

Open stwood opened 12 years ago

stwood commented 12 years ago

Hi all,

I got this case related to Microsoft Media Platform Content Manager and IIS Transform Manager (beta 1).

Issue Definition: The Microsoft Media Platform Content Manager product is installed on the below servers and meets the requirements as described in the documentation. Installed software:

  1. Server ORIGIN - 1 processor 2 core @2.33 GHz, 7.5 GB of RAM: ∙ Windows Server 2008 R2 Datacenter 64-bit ∙ IIS 7.5,. NET Framework 4 ∙ IIS Media Services 4.0
  2. Server SQL - 1 processor 2 core @2.33 GHz, 7.5 GB of RAM: ∙ Windows Server 2008 R2 Datacenter 64-bit ∙ Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
  3. Server CMS - a processor 2 core @2.33 GHz, 7.5 GB of RAM: ∙ Windows Server 2008 R2 Datacenter 64-bit ∙ SharePoint Server 2010 14.0.4763.1000 ∙ IIS 7.5,. NET Framework 4 ∙ Silverlight plugin 4.0.60831.0
  4. Server TRANSFORM - a processor 2 core @2.33 GHz, 7.5 GB of RAM: ∙ Windows Server 2008 R2 Datacenter 64-bit ∙ IIS 7.5,. NET Framework 4.0 ∙ IIS Media Services 4.0 ∙ Expression Encoder 4 Pro SP1 ∙ IIS Transform Manager (beta 1)

Files are added manually by using the Transform Manager. After download, the video file is displayed in the list of media files in SharePoint 2010. If the customer tries to play the video through a standard Silverlight player, built into the product, he gets an error. Error Silverlight-plugin in the browser: "Unhandled Exception in Silverlight Application Play is not allowed when there is no source set." If the customer inserts a video file URL in the IE browser, the video loads as expected. Files added by default (when installing MMPCM), are getting played without any issues. My questions are 

Thanks in advance! George Bethanis

GuidoPochettino commented 12 years ago

Hi George,

I’m part of the Microsoft Media Platform Content Manager support team.

We are trying to reproduce the error you mentioned, but so far we haven’t been successful.

In order to achieve this, we need more information. It’d be really helpful if you could answer the following questions:

• What kind of Workflow are you using? Was it the File Asset Import workflow or another? • What type of video file are you using? Could you send it to my e-mail account? The following information about the video file would be useful. o Extension o File size o Duration • More detailed repro steps, so we can reproduce it.

Thanks,

GuidoPochettino commented 12 years ago

Adding George's response:

Hi Guido,

This is the customer’s answer:

• We use only workflow to approve added File Asset. And it even can be omitted. File Asset appears in the “Assets” list after manual copying video file to the “magic folder” of the Transform Manager “Sample - MMPCM.Jobs.FileImportWF”, and it can be viewed at “View Item” button. • We’ve used only file from sample videos of Windows 7 - C:\Users\Public\Videos\Sample Videos\Wildlife.wmv Extension - Windows Media Video File (.wmv) File size – 25 MB Duration – 30 seconds

Thank you, George Bethanis

GuidoPochettino commented 12 years ago

Adding George's response:

Hi Guido,

I have found these in the ULS logs after reproducing the issue… Any ideas?

11/03/2011 14:49:11.35 w3wp.exe (0x0908) 0x067C SharePoint Foundation General b9y3 High Failed to open the file 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\Microsoft.MediaPlatform.ContentManager.ProjectSiteTemplate_ListDefinitions\Resources\Resources.en-US.resx'. c2150496-dd6c-496a-96ed-6d5c331e1172

Failed to read resource file "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\Microsoft.MediaPlatform.ContentManager.ProjectSiteTemplate_ListDefinitions\Resources\Resources.en-US.resx" from feature id "e953debc-8ea7-4e07-ada6-dc28edbd2eeb".

Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before. Stack trace:
at Microsoft.SharePoint.SPListCollection.ItemByInternalName(String strInternalName, Boolean bThrowException)
at Microsoft.SharePoint.SPList.get_RootFolderUrl()
at Microsoft.SharePoint.SPList.AddItem()
at Microsoft.MediaPlatform.ContentManager.ProjectSiteTemplate.EventReceivers.CategoryAdd.WebProvisioned(SPWebEventProperties properties)
at Microsoft.SharePoint.SPEventManager.RunWebEventReceiver(SPWebEventReceiver receiver, SPUserCodeInfo userCodeInfo, SPWebEventProperties properties, String receiverData)
at Microsoft.SharePoint.SPEventManager.RunWebEventReceiverHelper(Object receiver, SPUserCodeInfo userCodeInfo, Object properties, SPEventContext context, String receiverData)
at Microsoft.SharePoint.SPEventManager.<>cDisplayClassc`1.b6()
at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, Guid tranLockerId, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)
at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[] userTokenBytes, Guid tranLockerId, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)
at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData)
at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

http://cms/test/SitePages/Manage Approvals.aspx - An unexpected error has been encountered in this Web Part. Type: Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Error: An error has occurred., DesignText: /WebPartPages:XsltListViewWebPart, SourcePreamble: VSMARKUP Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c Microsoft.SharePoint.WebPartPages WebPartPages

11/03/2011 14:57:58.05 w3wp.exe (0x0908) 0x07DC SharePoint Foundation Runtime tkau Unexpected System.Runtime.InteropServices.COMException: Item does not exist. The page you selected contains an item that does not exist. It may have been deleted by another user. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) 6b4d3c3b-5afd-4f27-bf43-43154fd50ad9

at Microsoft.SharePoint.SPModule.ActivateFromFeature(SPFeatureDefinition featdef, XmlNode xnModule, SPWeb web)
at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionModules(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)
at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce)
at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)
at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, String featureName, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedCore(SPSite site, SPWeb web, String sFeatures, Boolean fMarkOnly)
at Microsoft.SharePoint.SPFeatureManager.<>cDisplayClass7.b6()
at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedAtWeb(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, String sFeatures)
at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String& bstrWebTemplate, Int32& plWebTemplateId)
at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String& bstrWebTemplate, Int32& plWebTemplateId)
at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
at Microsoft.SharePoint.Solutions.AddGallery.AddGalleryWebPart.CreateSite()
at Microsoft.SharePoint.Solutions.AddGallery.AddGalleryWebPart.RenderControl(HtmlTextWriter writer)
at Microsoft.SharePoint.WebPartPages.SPChrome.RenderPartContents(HtmlTextWriter output, WebPart part)
at Microsoft.SharePoint.WebPartPages.SPChrome.RenderWebPart(HtmlTextWriter output, WebPart part)
at Microsoft.SharePoint.WebPartPages.WebPartZone.RenderZoneCell(HtmlTextWriter output, Boolean bMoreParts, WebPart part)
at Microsoft.SharePoint.WebPartPages.WebPartZone.RenderWebParts(HtmlTextWriter output, ArrayList webParts)
at Microsoft.SharePoint.WebPartPages.WebPartZone.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at Microsoft.SharePoint.Solutions.AddGallery.AddGalleryPage.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP._layouts_addgallery_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

Regards, George Bethanis

GuidoPochettino commented 12 years ago

Hi George,

Regarding the ULS logs that you sent me, we need more detailed repro steps, so we can reproduce your issue and be able to better understand those logs. Could you provide me with this information?

Using the information you sent us earlier, we performed several tests using the same video file you used. So far we are still unable to reproduce the issue.

It’d be really helpful if you could answer the following questions:

• Which version of the Silverlight player have you installed? • Which version of Silverlight plugin have you installed?

Thanks,

georgebeth commented 12 years ago

Silverlight plugin 4.0.60831.0

GuidoPochettino commented 12 years ago

Hi George,

I’m including the detailed steps we followed when trying to reproduce the issue, so as to ensure that we are on the same page. Could you reproduce the following steps? Please let us know if these steps differ from yours, or if you get any issue along the way.

1- Log in to the Transform (or Transcoder) server 2- Open the Internet Information Services (IIS) Manager 3- In the IIS Manager window, look for the Sample – MMPCM.Jobs.FileImportWF watch folder 4- The associated Job template must be Sample – MMPCM.Jobs.FileImport

Image

5- In the Actions Menu, click on Explore Watch Folder…

Image

6- Paste your video file into the watch folder. It will disappear after a few seconds.

Image

7- The Encoding process will be displayed on the Job Monitor

Image

8- Wait until the Encoding and Hosting jobs finish. After that, you will see them in the Finished jobs.

Image

9- Open the SharePoint site and search for the Assets List. In this example, we’ll open: http://mmpcm.contoso.com/

Image

10- Click on your recently added video

Image

11- Play the video

Image

Please let us know if you have any concerns about these steps.

I hope you find this useful.

Regards,

georgebeth commented 12 years ago

Hi again,

These are the exact steps.... Only in step 11, the video cannot be played... pressing the Play button, do nothing.

Any suggestions?

GuidoPochettino commented 12 years ago

Hi George,

We were able to reproduce your issue, it happens when there are missing information in the host file. Could you try the following steps?

1- Open Notepad as Administrator 2- Search for the Host file, it’s located at C:\Windows\System32\drivers\etc\hosts 3- Add the following lines to the file as shown in the image below, take into account that in our example our SharePoint site is named “mmpcm.contoso.com”. You must change it according to your SharePoint site name.

Image

4- Save the changes 5- Restart your browser 6- Try to play the video

Please let us know if you have any questions about the steps above.

I hope you find this useful.

Regards,

georgebeth commented 12 years ago

Thank you very much!

I will let you know how it goes.

George

comaor commented 12 years ago

hi, I have the same issue. I am also succeed the all steps but only in step 11, the video cannot be played. I get the same javascript error. I install the sharepoint and the transform and the rce and the origin in the same server so i think the last suggestion cant help me. Maybe it could be a problem with the cofiguration between the sharepoint and the origin sites maybe we need to change some settings in the iis manager?

please help us. It's a beautiful solution and i want to use it soon.

thank you, Maor.

GuidoPochettino commented 12 years ago

Hi Maor,

This problem arises when IIS sites aren't referenced correctly in the Host file. In your case, all the sites in your host file must be pointing to localhost. Below you can find an example.

Image

You can check this kind of problem reproducing the following steps,

  1. Open your SharePoint project site
  2. Go to the Content list
  3. Click on the URL of your recently uploaded video
  4. Check that you're able to see the Smooth Streaming XML corresponding to the video

Image

If you can't see the Smooth Streaming XML, then you have a routing problem between SharePoint and IIS.

If you’re not able to solve the problem with the aforementioned method, it’d be really helpful if you send us your hosts file. Also please answer the following questions:

Thanks,

comaor commented 12 years ago

My host file is:

127.0.0.1 localhost 127.0.0.1 origin.spssn 127.0.0.1 rce.spssn 127.0.0.1 http://spssn

I can see the smooth streaming XML. My XML created with experssion encoder version 4.0.3205 and yours in 4.0.1630.

The workflow that I use is the file asset import file. The type is wmv. The file size is 31,470KB. The duration is 3 min.

GuidoPochettino commented 12 years ago

Hi,

The error that you mentioned arises whenever the Video Player doesn’t have any source file to play. We think that the problem is generated in the configuration of the Origin site at IIS. Could you check the following is correctly configured?

If everything is correctly configured, maybe the problem that you’re experiencing is due to an MMPCM installation error. We weren’t able to reproduce it so far. If you wish to reinstall the MMPCM we can provide guidance in order to help you solve this issue.

I hope you find this helpful.

Thanks,

comaor commented 12 years ago

Everything is correctly configured. maybe it is a security problem of the Sharepoint website can not access to the origin website. but I dont know which. I dont know what to say.

Thank you for your help.

comaor commented 12 years ago

I am running fiddler for the request to the page with the silverlight player and i see that i get 404 when the page try to get the file from c:/origin/crossdomain.xml and the file really is not there. what is this file? I will upload the picture from the fiddler soon.

comaor commented 12 years ago

I solve the problem. I add the file c:/origin/crossdomain.xml with this content: --<?xml version="1.0" ?> -- -- --

I thank u all.

vazgenu commented 12 years ago

Many thanks to all the guys on the forum!!!!!

MuKeySSH commented 12 years ago

I'm having the same problem like others, I'm also able to see the Smooth Streaming XML corresponding to the video. Have also checked all the settings mentioned by Guido also have created the c:/origin/crossdomain.xml as mentioned by Comaor. But still i'm not able to play the video. Tho, if I go to the following url http://origin.mmpcm.contoso.com/20b68846-f14c-4039-972c-7a9a97b50d1a/7c4ee4d1-6221-491b-9432-207123f1eb32/Default.html The video just plays\streams just fine in the browser.

But within SharePoint its not and it gives the following warning

Message: Unhandled Error in Silverlight Application Play is not allowed when there is no source set. at Microsoft.Web.Media.SmoothStreaming.SmoothStreamingMediaElement.Play() at Microsoft.SilverlightMediaFramework.Plugins.SmoothStreaming.SmoothStreamingMediaPlugin.Play() at Microsoft.SilverlightMediaFramework.Core.SMFPlayer.Play() at Microsoft.SilverlightMediaFramework.Core.SMFPlayer.PlayElement_Click(Object sender, RoutedEventArgs e) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) Line: 1 Char: 1 Code: 0 URI: http://spd/Sample/Lists/Assets/DispForm.aspx?ID=3&Source=http%3A%2F%2Fspd%2FSample%2FLists%2FAssets%2FAllItems%2Easpx&ContentTypeId=0x0100B618612216A4432D9588CB51A91BBFEF002585906659204B8488EDD2ABF26A3871001458BBE16A89644DA89B816A0135D0A4

Again the thumbnail of the video is generated and the same can be seen in the assets list other metadata like time is also shown, the origin path in the content list is also as per my environment, I'm able to see the Smooth Streaming XML corresponding to the video on the following URL

http://origin.mmpcm.contoso.com/20b68846-f14c-4039-972c-7a9a97b50d1a/7c4ee4d1-6221-491b-9432-207123f1eb32/Wildlife.ism/Manifest

Please, let me know if you require any further details or info on the same.

Thanks for your support -Mukesh

jerhiggs commented 11 years ago

So there are several of us out there with the same result. I've configured this and reinstalled many different times all with the same result.

Is there anyone available who can help with this?