Hello all!

I am trying to grab the video duration from a video file using ffmpeg through cli. can anyone please help me?

my problem is i find blank screen without any errors.

option explicit

Response.Buffer = false

dim cmd
dim strPResult
dim objWshell
dim objcmd
dim strffmpeg
dim strfile

Set objWShell = server.CreateObject("WScript.Shell")
strffmpeg = server.mappath("ffmpeg.exe")
strfile = server.mappath("t.wmv")
Set objCmd = objWShell.Exec(strffmpeg & " -i " & strfile & " 2>&1")
strPResult = objCmd.StdOut.Readall()
set objCmd = nothing: Set objWShell = nothing

response.write strPResult

waiting for reply