c# - Keep getting WIN32Exception when running FFMPEG in ASP.NET project -



c# - Keep getting WIN32Exception when running FFMPEG in ASP.NET project -

i have asp.net project , want utilize ffmpeg help create thumbails videos. i've loaded ffmpeg project, , whenever run code same error:

'ffmpeg.mainmodule' threw exception of type 'system.componentmodel.win32exception' {"a 32 bit processes cannot access modules of 64 bit process."}

i'm using vs 2013, , i've set target platform x86, , made 100% sure using 32bit version of ffmpeg. i'm using static libraries site (http://ffmpeg.zeranoe.com/builds/) tried alter target platform cpus or x64, , tried both 32 , 64 bit versions of ffmpeg. same error. running iis express when test in local environment.

here code. appreciate help!

string vsource = "http://example.com/myvideo.mp4"; string path1 = httpcontext.current.request.physicalapplicationpath; process ffmpeg = new process(); processstartinfo startinfo = new processstartinfo(hostingenvironment.mappath("~/app_data/exe/ffmpeg.exe"), "-i " + vsource + "-ss 00:00:05.000 -f image2 -vframes 1 " + path1 +"thumbnail1.jpg"); startinfo.redirectstandarderror = true; startinfo.redirectstandardoutput = true; startinfo.redirectstandardinput = true; startinfo.useshellexecute = false; startinfo.createnowindow = true; ffmpeg.startinfo = startinfo; ffmpeg.start();

lance,

my invitee iis express running in 64bit mode regardless of configuration in project. i'd seek run on iis (not express) , set application pool you're using 32bit. setting called: enable 32bit applications (default: false). can find under advanced settings of application pool.

good luck!

c# asp.net iis video ffmpeg

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -