[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" http://0.0.0.0:8090/stream0.webm "stream0.$(date
+%s).webm"
Basic HTML:
<!DOCTYPE html>
<html>
<head></head>
<body>
<h2>stream0</h2>
<video src="http://0.0.0.0:8090/stream0.webm" autoplay></video>
</body>
</html>
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 http://0.0.0.0:8090/stream0.webm: 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