Streaming MJPEG to VLC

About encoding, codec settings, muxers and filter usage
ziggyspaceman
Blank Cone
Blank Cone
Posts: 10
Joined: 02 Sep 2010 16:35

Streaming MJPEG to VLC

Postby ziggyspaceman » 07 Sep 2010 10:59

Hi
I'm hoping someone here may be able to point me in the right direction with regards to MJPEG streaming format.
I'm wanting to output from a program written in C++ a MJPEG stream and connect to it using VLC say on 192.168.0.3:1234
From what I've read the output from the server streaming the MJPEG should be as follows:

HTTP Code: 200 OK
Content-Type: multipart/x-mixed-replace; boundary=myboundary

--myboundary
Content-Type: image/jpeg

<JPEG Image data>
--myboundary
Content-Type: image/jpeg

<JPEG Image data>
--myboundary


My question is regarding the JPEG image data, I am reading & presenting the JPEG image data to VLC in binary format, but VLC returns an error “File Not found” when it encounters the image data.

Now VLC can connect OK to the server exchange headers etc, but the problem arises at the point where the JPEG image data starts, is this the right way to present JPEG image data to VLC or any other media player for that matter. if it's not what is the correct way?

Best Regards
Steve

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests