[FFmpeg-user] ffmpeg to stream webcam to http:// and file?

Alec Taylor alec.taylor6 at gmail.com
Tue Dec 5 21:10:17 EET 2017

How do I use ffmpeg to stream webcam to http:// and file? -

Attempting to record the video and audio of one stream (a local webcam) to
both a filename and a server.

Current approach:

ffmpeg -f avfoundation -framerate 30 -i "FaceTime HD Camera":"Built-in
Microphone" "stream0.$(date

Basic HTML:

<!DOCTYPE html>
    <video src="" autoplay></video>

But unfortunately I get this error:

av_interleaved_write_frame(): Broken pipe
frame=   49 fps=1.4 q=0.0 size=       1kB time=00:00:00.89 bitrate=
6.5kbits/sav_interleaved_write_frame(): Broken pipe
Error writing trailer of Broken pipe

The server on port 8090 is ffserver <https://trac.ffmpeg.org/wiki/ffserver>
with default conf <http://ffmpeg.org/sample.html>.

Thanks for all suggestions

More information about the ffmpeg-user mailing list