QUOTE(jayman9 @ 24 Jul, 2008 - 08:47 AM)

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Please post like this:

Thank you for helping us helping you.
i want to convert .flv file into .wmv, for that i am using a thrid party tool
"flash to video console". its a command line.
through my .net code i am initiating its exe.this tool needs the maxtime. for that i need to know the duartion of my flv file.can you please help me to get the duration of flash file.
i am attaching my code here :
Const g_strV2FPath As String = "C:\Program Files\VidFilters\Flash to Video Console\FVEConsole.exe"
Dim strSourceFile As String = "C:\Program Files\Adobe\Flash Media Server 3\applications\FlexWebCamCapture\streams\_definst_\CapturedVideoAudioFile.flv"
Dim Process As New System.Diagnostics.Process
Dim objPlayer As New WMPLib.WindowsMediaPlayer objPlayer.mediaCollection.add(strSourceFile)
objPlayer.currentMedia = objPlayer.mediaCollection.getAll
Dim sngDuration As Single = objPlayer.currentMedia.duration
Process.Start(g_strV2FPath, "-Input " + """" + strSourceFile + """" + " -Output " + """" + "E:\converted wmv\CapturedVideoAudioFile.wmv" + """" + " -MaxTime ""600""" + """" + "")
i am using windows media player but this code is throwing an error.
any help is appriciated
kusum