Re: capture network stream by wme series 9
- From: Lior <Lior@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 02:39:02 -0700
Hi , thanks Neil,
I tried the following :
1. capture the input encoded input stream by VLC into a file with asf
encapsulation
this give me a file but it's time information is missing.
2. I convert this file with the local wme, it reads the file and add all the
time information correctly. Now I think the only problem is that I dont stop
the conversion in the correct time and therefore the generated file is not
closed properly. - If I'm doing this conversion manually it works great -
I'm working with VB2005 express and wrote:
Encoder_convert_screen.Load("C:\scripts\wmv9\convert_remote_screen.wme")
Encoder_convert_screen.SynchronizeOperation = True ' False
Encoder_convert_screen.PrepareToEncode(True)
Encoder_convert_screen.AutoStop = True
Encoder_convert_screen.Start()
''' -------Check it the encoder realy stopped at the end of the file
:-------------
Try
Dim WMENC_ENCODER_STATE As Decimal
polling_Encoder_convert_screen:
WMENC_ENCODER_STATE = Encoder_convert_screen.RunState
If (WMENC_ENCODER_STATE = 2) Then
Console.WriteLine("Encoder_convert_screen is RUNNING")
' Console.ReadLine()
ElseIf (WMENC_ENCODER_STATE = 5) Then
Console.WriteLine("Encoder_convert_screen STOPPED")
' Console.ReadLine()
' Stop the encoding process.
End If
GoTo polling_Encoder_convert_screen
Catch ex As Exception
' TODO: Handle exceptions.
End Try
But even I used "Encoder_convert_screen.AutoStop = True"
the encoder state continue to be "RUNNING"
How can I instruct the encoder to quit when the file conversion completed ?
Thanks alot
Lior
"Neil Smith [MVP Digital Media]" wrote:
On Mon, 12 May 2008 12:46:00 -0700, Lior.
<Lior@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,
Does sombody knows if its possible to use network url as a source in wme9
Sorry, I meant to continue : The DirectShow SD is lower level than
WME, and has network sink and source capabilities - so doing this
programatically ought to get you there - Allesandro or Chris may have
some ready rolled hints for that.
HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
- References:
- capture network stream by wme series 9
- From: Lior
- Re: capture network stream by wme series 9
- From: Neil Smith [MVP Digital Media]
- capture network stream by wme series 9
- Prev by Date: Video hotspots - Windows Media Player plug-in
- Next by Date: Extracting info from media player
- Previous by thread: Re: capture network stream by wme series 9
- Next by thread: Video hotspots - Windows Media Player plug-in
- Index(es):
Relevant Pages
|
Loading