Re: capture network stream by wme series 9



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

.



Relevant Pages

  • Re: Is there a UK support contact for MCE?
    ... have synced to my PMC is ruined because the encode eats up CPU cycles. ... I ended up sharing out my Recorded TV folder and running the PMC encoder on ... >> Your support route is with the OEM who supplied your system. ... > As far as the conversion to PMC is concerned I would say it is Creative ...
    (microsoft.public.windows.mediacenter)
  • Re: Convert to 1 bit black / white
    ... Bob, I see the code for the conversion, but I'm trying to convert it to VB. ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ... When I don't use the encoder ...
    (microsoft.public.dotnet.framework.drawing)
  • Have a Solution
    ... This may not be the best way but I downloaded the SDK for the V9 Encoder and ... used a script they have to do the conversion from a batch file. ... the encoder to do the conversion and then automatically close when it is ...
    (microsoft.public.windowsmedia.encoder)
  • Re: How to preview nv12(yuv420) format video
    ... formats. ... But I need YUV420P to input into an encoder. ... Ever seen a conversion for this? ... The yuv transform at http://www.gdcl.co.uk/downloads.htm should do this ...
    (microsoft.public.win32.programmer.directx.video)

Loading