Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2006, 09:13 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sruthi
Default Regd:ASPExec Component

Hi Dudes,

Hope you are all doing great!I am new to this Communtiy,so please accept me as ur dude.

Coming to the point,I am facing problem in Aspexec Component.Actually for my website i have to convert the ,avi files into ,flv files to run in Flash player.For this I am using Ffmpeg tool to convert the files,this FFmpeg.exe will run thru Command prompt.For this i have used Aspexec component to run it.This file is executing but i need to run the batch files.its not accepting this .I ahve pasted the code below.please provide me the solution for this,
<%@ Language=VBScript %>
<%Option Explicit %>
<%
dim Executor,strResult,WaitObj
Response.Buffer = true
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\ffmpeg .exe"
'Executor.Application ="ffmpeg -i GLOBE.AVI -r 25 -acodec mp3 -ar 22050 -s 320x240 -y GLOBE_21.flv"
Executor.Parameters = "C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\test.bat"
Executor.ShowWindow = True
'Executor.Application ="C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\ffmpeg.exe\ffmpeg -i GLOBE.AVI -r 25 -acodec mp3 -ar 22050 -s 320x240 -y GLOBE_FIRST.flv "
'Executor.Parameters = "test.bat"

'response.write "Attempting to execute "&Executor.Parameters & "<br>"

Response.Write "Attempting to execute " & Executor.Application & "<br>"
'response.write "bnxcb"&Executor.Parameters&"<br>"
  strResult = Executor.ExecuteDosApp
Response.Write strResult
%>


Awaiting For your replys,

Thanks And Regards,
Sruthi


 
Old September 19th, 2006, 02:45 AM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to markwal
Default

Set objExecutor = Server.CreateObject("ASPExec.Execute")
objExecutor.Application = "C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\ffmpeg .exe"
objExecutor.Parameters = " -i GLOBE.AVI -r 25 -acodec mp3 -ar 22050 -s 320x240 -y GLOBE_21.flv"
objExecutor.ShowWindow = False
objExecutor.ExecuteWinApp

Don't forget to add web annonymous users rights to run ffmpeg or it won't work. I set ShowWindow to false in my example you can change that if you really want to but is anyone going to see your monitor? If I remember right that option was for displaying a window on the NT server as it was being processed but I could be wrong.
 
Old September 20th, 2006, 06:42 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sruthi
Default

Hi Markwal,

Thanks for your reply,but its not working still.I tried Dynu Component too.its working fine but i dont know how to do conversion in this.Can you please advice in this.I have attached code below,
<%

    Set oExec = Server.Createobject("Dynu.Exec")
    Response.Write("<PRE>")

    REM Execute the command "ipconfig" and display its result.
    Response.Write(oExec.execute("ipconfig"))

    REM Execute the command "nslookup -type=mx microsoft.com" and display its result.
    Response.Write(oExec.execute("C:\Inetpub\wwwroot\n ew\enginetest\ffmpeg.exe"))

    REM Execute the batch file and display its result.
    'Response.Write(oExec.execute("C:\Inetpub\wwwroot\ new\enginetest\job.bat"))

    Response.Write("</PRE>")
    Set oExec = nothing



%>
But i Dont know where to give the conversion "ffmpeg -i GLOBE.AVI -r 25 -acodec mp3 -ar 22050 -s 320x240 -y GLOBE_21.flv".Please Guide me.
Its very urgent.

Looking forward to hear you soon,

Thanks&Regards,
Sruthi






Similar Threads
Thread Thread Starter Forum Replies Last Post
Regd: Issues with designing text diff form gk_sezhian C# 1 May 11th, 2008 11:30 AM
ASPExec.execute cmh Classic ASP Components 1 May 2nd, 2006 09:55 PM
ASPEXEC.DLL hcweb Classic ASP Basics 0 February 14th, 2005 11:53 AM
Regd Websetup project jyoti_khera General .NET 0 January 3rd, 2005 01:13 AM
ASPExec does not work!!! planeswalk Classic ASP Components 7 January 28th, 2004 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.