Understandable. Mjpeg contain only sequence of jpeg images. You need to use
any audio-video container like avi or flv. So you can
research libavformat/output-example.c for getting basic understanding of
libav* usage.

On Sat, Dec 11, 2010 at 9:31 PM, Jieyun Fu <[email protected]> wrote:

> Yes, I did try MJPG before, but as I mentioned, I also need an audio being
> played with the video, and I didn't think MJPG is able to have audio
> component.
>
> I tried this streamer http://sourceforge.net/projects/mjpg-streamer/, but
> I
> didn't see a way to include audio unless we have send audio HTTP response
> with image HTTP response separately. In this way the audio and video
> components might be misaligned, (i.e., i want to make sure a 20 second
> audio
> file aligned uniformly with 600 frames)
>
> Or I might understand some stuff incorrectly? Thank you so much for your
> prompt response. I appreciate it.
>
> On Sat, Dec 11, 2010 at 1:23 PM, Kulti <[email protected]> wrote:
>
> > On Sat, Dec 11, 2010 at 9:08 PM, Jieyun Fu <[email protected]> wrote:
> >
> > > Hi all,
> > >
> > > I sent this email to ffmpeg-user but just realized that was not the
> right
> > > mailing list to ask. Sorry for spamming if you saw this message before.
> > >
> > > I have a program on the server side that is able to generate a series
> of
> > > JPEG files, and I want to play these files on the client browser as a
> > video
> > > stream, with a desired frame rates (this video should be playing while
> > the
> > > new JPEG files are being generated). Meanwhile, I have a wav file that
> is
> > > handy and I want to play this wav file in the client side, when the
> > > streaming video is being played.
> > >
> > > Is there anyway to do it? I have done a plenty of research but can't
> find
> > a
> > > satisfactory solution -- all solutions I found require me to have all
> the
> > > images files ready before generating the video. However, I need to play
> > the
> > > video while the images are feeding in.
> > >
> > > I understand that ffserver allows me to stream the video to the client
> > > side,
> > > if ffmpeg can generate a "live feed." So my question is reduced to, how
> > to
> > > use ffmpeg libraries to generate video while the images are feeding in.
> > >
> > > I am very new to this area, so more detailed explanation will be
> > extremely
> > > appreciated. Thank you so much!
> > >
> > > Jieyun
> > > _______________________________________________
> > > libav-user mailing list
> > > [email protected]
> > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> > >
> >
> > Do you know about mjpeg file format? As I understand, you don't need any
> > special libraries to generate video - just use mjpeg.
> > _______________________________________________
> > libav-user mailing list
> > [email protected]
> > https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> >
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to