Log in

View Full Version : Encoding x264 and VB.Net


joker77
5th May 2009, 08:24
Hi

I'm searching for samples which use x264 in VB.net, for every help I'll be grateful.

joker77

linyx
12th July 2009, 17:29
Better late than never, eh?

Dim EncodeWithx264 As New ProcessStartInfo
EncodeWithx264.FileName = "C:\x264\x264.exe"
EncodeWithx264.Arguments = "--preset slower --output " & """" & "C:\EncodedVideo.mkv" & """" & " " & """" & "C:\input.avs" & """"
'Do it this way if you want more control over how the process is run.
Dim Encode As New Process
Encode = Process.Start(EncodeWithx264)
'Examples of what can now be done.
'Encode. what option you want (starttime, startinfo, waitforexit, etc.

joker77
6th August 2009, 11:07
Thanks, but search library.
I have stream from cctv camera in h.264, how to decode to rgb or yv12 in realtime ?

stax76
6th August 2009, 11:38
Please share more details.

joker77
6th August 2009, 12:34
H.264 AVC IP Cameras
I got stream from http, now only save to file.
Playing saved file in VLC, ffplay.

How decode stream to rgb or yuv frames (for display using DirectDraw, from other IP Cameras)?.

--------------------------------------------------------------------------------------------

stax76
6th August 2009, 13:46
Still not much info, if you know DirectDraw I guess you also know DirectShow.

joker77
7th August 2009, 12:06
what information do you need? I will try to prepare them.

stax76
10th August 2009, 17:21
You need to tell us in detail what you want to achieve.

joker77
11th August 2009, 14:34
I have an IP camera, which provides H.264 AVC stream via http.
I can connect to the instance through VLC so that I can see the picture, or
through the Web browser if I can save only the data transmitted.

I'm trying to create a program that saves data to disk and decompresses the
stream into yv12, or rgb so I can view it later on the screen using
DirectDraw.

stax76
11th August 2009, 15:19
The eaiest way is using the DirectShow API with filters like ffdshow.

LoRd_MuldeR
11th August 2009, 19:32
If the stream is provided via HTTP, maybe you could use wget to dump the stream as-is and then do the further processing on the dumped data?

Or maybe MEncoder can open the HTTP stream and save it directly to a YV12/RGB32 AVI file...

stax76
11th August 2009, 23:10
If the stream is provided via HTTP, maybe you could use wget to dump the stream as-is and then do the further processing on the dumped data?

Or better using the WebClient class (http://msdn.microsoft.com/en-us/library/system.net.webclient%28VS.80%29.aspx).