[FFmpeg-user] ffmpeg input, output and config

Zac Harvey zachary.harvey at gmail.com
Sat Dec 8 16:43:33 CET 2012

I'll preface this by saying that I'm a developer who is brand new to
streaming media, and I'm definitely out of my element here. I am trying to
get a web camera (video only) streaming a video feed to an ffmpeg instance,
and an microphone streaming an audio feed to the same ffmpeg instance as

I would like to configure ffmpeg to accept the video feed from the camera,
encode it to h.264 via the x264 encoder and into an MP4 container/format.
At the same time, I want the audio feed from the mic to be ingested,
encoded to AAC via the faac encoder, and into the same MP4 container. The
container (I assume) would compress the bitstreams, multiplex them (is that
even the correct terminology?), and be able to output a final bitstream.

I would like this final bitstream (containing the muxed A/V signal) to be
transmitted to a specific IP address via UDP/IP.

So my first question is: can ffmpeg even do this? If not, does anybody know
what I could use to accomplish all this?

If ffmpeg is capable of doing all this, then I have a few follow-up

   - If ffmpeg does the encoding, then what pre-encoding formats does it
   accept the audio and video bitstreams in? In other words, what
   format/protocol/etc does the streaming audio and streaming video feed need
   to be in for ffmpeg to be able to accept it as input? How do I get the
   camera and mic signals to get passed into ffmpeg?
   - How to I specify the encodings to use, the container to use, UDP/IP as
   the transport, and the IP address to stream to?

Thanks in advance for any help, and feel free to ask for more clarification
if needed. Thanks again.

More information about the ffmpeg-user mailing list