Rusty -
On 3/16/2011 1:14 AM, Rusty Weber wrote:
I've already looked at many of the examples into some depth.. I think the
connection that I am failing to make is how I write this to a connection instead
of a file and then decode it back into an image for further processing. PS. it
will also be saved in it's current format remotely..
________________________________
From: Jieyun Fu<[email protected]>
To: Libav* user questions and discussions<[email protected]>
Cc: Russell Weber<[email protected]>
Sent: Tue, March 15, 2011 5:54:52 PM
Subject: Re: [libav-user] How do I stream in real time a series of images in a
c++ program as an encoded video across a network?
Hi,
in the ffmpeg source code, search for a file named "output-example.c",
follow the example there -- that's how you generate videos from images.
On Tue, Mar 15, 2011 at 7:23 PM, Russell Weber<
[email protected]> wrote:
OK... This is a very not so often asked question... Here's the
situation. I have a program that is getting data from a set of cameras,
one
at a time, and then doing some image processing and computer vision.
However, I need to figure out how to take the processed images and stream
them over the network to another computer running an application that does
some more processing..... We have the network set up, that was easy to do,
I just need to figure out how to encode the images so that I end up with
the
bytes that are to be sent across the network and not just raw data, I also
need to know how to receive the data in a manner that I can decode the sent
bytes, on the spot without writing it to a file, back into an image for
further processing. Using FFmpeg's server is not an option because we will
be using several cameras that we need to switch through dynamically and
process differently, remember that we have to do some image processing on
them before we send the data over and not use the actual camera feed. We
need to do this in the actual c++ code, any thing that you guys could give
me in guidance would surely be apreciated... HELP ME MASTERS OF AVCODEC
YOU'RE MY ONLY HOPE.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-user
Have you considered writing a TCP Listener on the server to act as a
mini web server. Basically handle a simple HTTP GET request, then start
continuous response of JPEG over and over in a MJPEG format. That would
be easiest to do, then you could use a web browser anywhere to view it.
Some other code you can look at:
http://sourceforge.net/projects/mjpg-streamer/develop
Actually sending the data out is one stream broken in between each image
a "boundary" marker... quite simple to implement....
Shawn
_______________________________________________
libav-user mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-user