Expression Encoder SDK - WMA Pro Codec Issues with Windows Server 2003 - windows-server-2003

I am using the Expression Encoder SDK to encode .avi and Flash files to a .wmv format suitable for Silverlight. By default, EE encodes files with audio using the the WMA PRO codec. If you are running Windows Server 2003, this is a problem as it doesn't support the WMA PRO codec and produces and error message similar to the following.
Error Message: The Audio Profile settings do not match a valid system profile.
Error Source: Microsoft.Expression.Encoder
Error Target Site: System.String GetProfileString()
I am looking for a way to change the default audio codec to something suitable for WS 2003.
I am aware that although not supported natively, there is a highly invasive way to install Windows Media Player 11 and it's codecs on WS 2003 but this involves registry tinkering and other hacks not suitable for our production environments so that solution is out.

Found an answer after a a lot of tinkering not much out there for documentation on the Encoder SDK. To change the codec using the SDK:
Encoder.MediaItem itemToTranscode = new Encoder.MediaItem(srcPath);
itemToTranscode.OutputFormat.AudioProfile.Codec = AudioCodec.Wma;
This works fine with Windows Server 2003 and solves the issue.

Related

Installation of Indeo codec in Windows 10 for Grove Music / Windows Media Player

I have been trying to open a video (.avi file) which I created a long time back. I had used Indeo codec for compressing the video. And now I can't open the avi-file in Windows 10.
Is there any way I can install Indeo codec for Grove Music or Windows Media Player in Windows 10?
Otherwise, is there any other option (may be a different player) to open the compressed avi file?
Thanks!
I would use VLC as it supports indeo (and you can use it to export in any other format that you need.)

Issue with PlayReady in Windows 10

I have an issue running PlayReady protected streams in my UWP app. When I set the source on a MediaElement it fails with this error:
MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0x8007023F
I have tried the official samples from MS (https://code.msdn.microsoft.com/windowsapps/PlayReady-samples-for-124a3738) and a sample app from Davide Zordan (https://github.com/davidezordan/playready_adaptive_UWP/). They all throws the error.
If I run a normal SmoothStream I don't seam to have any issues.
I'm pretty sure that the samples are solid and it comes down to a missing SDK or something on my computer(s). I have added the SmoothStreaming Client SDK for UWP apps. I can reproduce the error on 5 different developer machines.
Any help is appreciated.
OK I found the issue. Im working on one computer and remotes to my development machines located at my office. Turns out that by default PlayReady is disabled when using remote desktop.

Media Foundation can not detect capture devices

HRESULT MFEnumDeviceSources(In IMFAttributes *pAttributes, Out IMFActivate ***pppSourceActivate,
Out UINT32 *pcSourceActivate);
At Windows 7 and Visual Studio 2012 platform, and use this function but pcSourceActivate return 0 and
pppSourceActivate is null.But actually machine has 9 video capture cards.Anyone help me for this problem?
Media Foundation supports a sub-range of what is known to be a video capture device in Windows. Perhaps the ones you have don't have support in Media Foundation.
From MSDN:
Starting in Windows 7, Media Foundation automatically supports audio
and video capture devices.For video, the device must provide a kernel
streaming (KS) minidriver in the video capture category. Media
Foundation uses the PnP path to enumerate the device. For audio, Media
Foundation uses the Windows Multimedia Device (MMDevice) API to
enumerate audio endpoint devices. If the device meets these criteria,
there is no need to implement a custom media source.
The easiest way to tell if MS supports specific device is to use TopoEdit tool from SDK to see if it lists the devices.

Reading Mp3 File using NAudio.dll on windows server 2008 r2 when media player is not installed

I am reading the length of mp3 files using NAdutio.dll. the code sample i used is here. the application i have created is a stand alone desktop application built in C# 4.0 and is used on the network of computers all with windows server 2008 operating systems. and there is no media player installed on any of those computer. when i run the application on my local machine it return the length of mp3 files correctly, but when it is run on any pc on that network it return zero for every file. it seems that the NAudio.dll itself use the wmp.dll to read the audio. but i can not get install the media player or can not place the dll in each of those computers. is there any way that i can fix this dll problem by some work arround in the installer or code? any one please help me.
Thanks in Advance
Try NLayer to read the file. The latest version's MpegFile implementation should provide you with length information nicely. Just read the .Length and divide by .Channels * 4 (.Length is is bytes, and samples are in 32-bit float format).
Please Note: I've put a lot of work into this library, so while I'm not the maintainer, it is one of my projects.

When will Google Chrome support access to audio (in HTML 5) on Windows?

My understanding is that Chrome 11 supports access to getUserMedia for HTML5 native audio and video stream on the Android but possibly not on MS Windows or (I think) Mac, or iOS.
Anyone know when support for Windows is planned?
Support for iOS?
Support for the Mac O/S ?
It is planned for early 2012, according to http://techcrunch.com/2011/11/24/chrome-getting-native-gamepad-webcam-and-webrtc-support-in-early-2012/
It seems that the code for this is only just now landing in Chromium though, so it might take a little longer for it to show up outside of Chrome Dev builds.

Resources