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

Help required on Media Platform Content Manager #4

Open GuidoPochettino opened 12 years ago

GuidoPochettino commented 12 years ago

Hi,

Below is a query from a partner trying to implement Media Platform Content Manager on SharePoint 2010 for a customer in the Media & Advertising industry. They are stuck with some technical issues & looking for help.


Requirement Customer wants to create a central repository for all their creative work done by them from the year 1950 till date which includes various media files i.e. assorted type of Video files (avi, mpg, mpeg etc..) & image files (jpg).

The solution should have the following features:

  1. Auto generation of preview thumbnails for media files once the media files are uploaded in the system.
  2. Users should only be able to view/play the media files in the browser itself and cannot download the same. [Stream the videos in the browser itself]
  3. The media files should be searchable with search refinements, the search results should have a thumbnail preview view. As a solution we are using opted for Media Platform Content Manager with SharePoint 2010 as a solution. So far we have deployed and configured MMPCM on a test server including IIS Transform Manager, IIS Media Services 4.0 & other prerequisites.

ISSUES We are facing the following problems:

  1. The IIS Transform manager is converting the files pushed in wf-fileimport folder with different bitrate files & isvm extension including the thumbnail preview file. But after the conversion process is successfully completed on an average only 1 out of 10 files are uploaded to the SharePoint site and for the rest of the files we are getting the following error. 2011-10-18 19:12:40.1916 Information Machine name: ServerName. 2011-10-18 19:12:40.2854 Information Instance file name Test_Video_File.avi. 2011-10-18 19:12:40.2864 Information Creating output folder: C:\mmpcm\wf-fileimport\WorkQueue\Running\20111018134238_F83D33461870445AB1F944A0634EA2FC\7c4ee4d1-6221-491b-9432-207123f1eb32. 2011-10-18 19:12:42.6839 Information Preset file from preset property: C:\ProgramData\Microsoft\IIS\Transform Manager\Configuration\Presets\VC-1 IIS Smooth Streaming - 720p CBR.xml. 2011-10-18 19:12:42.6927 Information Template from templateName property: Standard. 2011-10-18 19:12:42.6927 Information Template path from templatePath property: C:\Program Files (x86)\Microsoft Expression\Encoder 4\Templates\en\Standard. 2011-10-18 19:12:42.7630 Audit Domain\user Expression Encoder Task transforming file: C:\mmpcm\wf-fileimport\WorkQueue\Running\20111018134238_F83D33461870445AB1F944A0634EA2FC\Test_Video_File.avi. 2011-10-18 19:12:46.2046 Information MediaItem.FileDuration: 00:00:07.0008125. 2011-10-18 19:12:46.2046 Information Applying preset to media item. 2011-10-18 19:12:46.2465 Information Begin encode. 2011-10-18 19:31:15.6651 Error Caught an exception while encoding media. 2011-10-18 19:31:18.0275 Error Microsoft.Expression.Encoder.EncodeErrorException 2011-10-18 19:31:18.0295 Error Unknown error encoding file. 2011-10-18 19:31:20.6204 Error at Microsoft.Expression.Encoder.MediaEncoder.Encode() at Microsoft.Expression.Encoder.Job.Encode() at Microsoft.Web.Media.TransformManager.EETask.Start() 2011-10-18 19:31:20.6214 Error Task.Start failed for task index: 1. 2011-10-18 19:31:21.7738 Error Microsoft.Expression.Encoder.EncodeErrorException: Unknown error encoding file. 2011-10-18 19:31:21.8353 Error at Microsoft.Expression.Encoder.MediaEncoder.Encode() at Microsoft.Expression.Encoder.Job.Encode() at Microsoft.Web.Media.TransformManager.EETask.Start() at Microsoft.Web.Media.TransformManager.Wrapper.RunTaskCode(TaskStatus taskStatus, JobMetadata metadata, Logger logger, ITask task, Int32 taskIndex) 2011-10-18 19:31:21.8363 Error Microsoft.Expression.Encoder.EncodeErrorException: Unknown error encoding file. 2011-10-18 19:31:21.8372 Error Microsoft.Expression.Encoder.UnableToEncodeFileException: Exception from HRESULT: 0x813A0002 2011-10-18 19:31:23.3060 Error at MS.Internal.Expression.Encoder.Media.DShowEncode.Encode(EncodeSettings settings) at Microsoft.Expression.Encoder.EncoderBase.EncodeFile(EncodeSettings settings) at Microsoft.Expression.Encoder.MediaItemEncoder.CreateMediaFiles(PublishedItem item, List`1& rgScripts, PartualRebuildRulesItem rebuildItem, TimeSpan& markerOffset, String[]& manifestFiles, SimpleEncodeOptions[]& rgEncodeOptions, OutputFormatType& outputFormat) at Microsoft.Expression.Encoder.MediaItemEncoder.EncodeItem(MediaItem item, PublishedItem& publishedItem) 2011-10-18 19:31:23.3139 Error System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x813A0002 2011-10-18 19:31:25.0629 Error at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at ThrowHRESULT(Int32 hr) at MS.Internal.Expression.Encoder.Media.DShowEncode.Encode(EncodeSettings settings) 2011-10-18 19:31:25.3716 Error Exiting task id: 1. 2011-10-18 19:31:25.3716 Information UpdateStatus message: Unknown error encoding file. 2011-10-18 19:32:03.6079 Information Machine name: ServerName. 2011-10-18 19:32:03.6089 Information Instance file name Test_Video_File.avi. 2011-10-18 19:32:03.6089 Warning Task index 2 encountered job status Failed. Exiting.
  2. Also the files which are uploaded are not playable and there is no thumbnail preview of the same, when we try to play the uploaded files we are getting the following error in Internet Explorer]

Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) Timestamp: Tue, 18 Oct 2011 13:48:14 UTC 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://servername/Sample/Lists/Assets/DispForm.aspx?ID=8&Source=http%3A%2F%2Fservername%2FSample%2FLists%2FAssets%2FAllItems%2Easpx&ContentTypeId=0x0100B618612216A4432D9588CB51A91BBFEF002585906659204B8488EDD2ABF26A38710013D826D705FD264D91A1DB48F26BC8C6

  1. The encoder [Transform Manager] creates 8 different bitrate files which we would like to restrict to as few as we can.

ASK/HELP Required • Assistance/Guidance to the partner on the approach.


Would appreciate any help here.

Regards,

Minen Mehta

GuidoPochettino commented 12 years ago

Hi Minen,

I am part of the Microsoft Media Platformt Content Manager support team.

We reproduced the error that you are experiencing. We have identified many possible situations under which this problem may arise. You can find them listed below, along with possible solutions for each of them.

Image

Other know situation is when a video has C.C. (close captions). The second issue that you describe follows the first one. If you get an error when uploading one of the files to SharePoint, the rest of the files will follow suit and not be successfully uploaded as well.

If you were unable to solve the problem with any of those solutions, please, send me the following information about your environment: • Transcoder Environment specifications • Transform Manager version • Size and format of the encoded videos • Used job template

Regarding issue number three, in order to change the amount of bitrates generated by the Transform Manager, you could try the following:

  1. Open the XML file located at C:\ProgramData\Microsoft\IIS\Transform Manager\Configuration\Presets\VC-1 IIS Smooth Streaming - 720p CBR.xml (Check that you are able to see hidden files)
  2. Look for the Streams tag Image
  3. Each StreamInfo element describes a different bitrate file. You can add, remove or modify them as you wish. Image
  4. Save the changes
  5. Start again your encoding process By doing this you are changing the preset of the job template.

You will find more information about that in this post on the IIS forum.

If you have any questions don't hesitate to contact us.

I hope you find this helpful.

Regards,

GuidoPochettino commented 12 years ago

FWD Minen's Response:

Hi Guido,

Hope you are doing fine.

The first solution of changing the Audio Pass from VBR to CBR in the file (VC-1 IIS Smooth Streaming - 720p CBR.xml), I found that the XML file already had the CBR option by default. So no changes are done for the same.

The second solutions for limiting the number of files generated after converting the video file in various resolution by editing the same file (VC-1 IIS Smooth Streaming - 720p CBR.xml). After limiting the same now majority of the files are getting updated on the SharePoint server. But still i'm not able play any of the files in the MMPCM site.

I'm getting the following error message when I try to play the video in the web browser.

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://siteurl/Sample/Lists/Assets/DispForm.aspx?ID=18&ContentTypeId=0x0100B618612216A4432D9588CB51A91BBFEF002585906659204B8488EDD2ABF26A38710013D826D705FD264D91A1DB48F26BC8C6

Also, I am not able to get the Transform Manager v1.0 December TAP (V1.0.0938.92) version from anywhere. If the beta version which is installed on the UAT server has some known bugs. Would request if you can source the Transform Manager v1.0 December TAP (V1.0.0938.92) for us to test the same.

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

Thanks in advance.

Regards, Minen

GuidoPochettino commented 12 years ago

Hi Minen,

Regarding the problem you're experiencing, you will find a possible solution at https://github.com/stwood/Microsoft-Media-Platform-Content-Manager/issues/2

Regards,