I have been working on making a simple audio transcoder using CSCore in Asp.Net Core (targeting full framework). Whilst Working developing the proof of concept on my development machine it works like a dream however when I deploy it to azure it seems that there is no Media Foundation on these instances. When trying to instantiate the MediaFoundationEncoder I get a DllNotFoundException
for mfplat.dll
. I assume that there is no means to get this to work on an azure webapp? Any help or alternative solutions welcome if no simple solution is possible.
Asked
Active
Viewed 280 times
1

Lutando
- 4,909
- 23
- 42
-
Does this help: http://stackoverflow.com/questions/22167471/how-to-create-azure-cloud-service-with-media-foundation-feature-automatically ? – VuVirt Nov 14 '16 at 19:04
-
Hi, Thanks for the help, does not seem to work looks like the Add-WindowsFeature is not a recognised cmdlet, function, script, or program. I ran this via Kudu command shell. – Lutando Nov 14 '16 at 19:24
1 Answers
1
Either wrap FFmpeg (you can bring the portable ffmpeg.exe
into your project, the App Service sandbox is fine with it), or hand off the encoding job to Media Services.
ffmpeg.exe
running in the App Service sandbox:
https://stackoverflow.com/a/38672885/4148708
-
Thanks this worked pretty much well in Azure. Not sure how I will get waveform data now which is what the CSCore lib provided as well. – Lutando Nov 15 '16 at 15:01
-
Looks like FFmpeg can export a PNG waveform https://trac.ffmpeg.org/wiki/Waveform, should be able to give you the actual values as well. – evilSnobu Nov 15 '16 at 15:58
-
CSCore got a ffmpeg branch as well. It is still not released but decoding for windows platforms is already quite stable. You could quite easy add encoding. – Florian Nov 26 '16 at 17:20