Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have FFMPEG reading a live stream and writing to an MP4 file. I would like to modify the FFMPEG command to write to 3 MP4 files simultaneously. This means that instead of generating one file, FFMPEG must generate 3 files simultaneously (essentially the data packets must be read and written in 3 different places on disk). The 3 files are identical, of course.

I agree that there are constraints with disk speed and processor speed, but I would like to be able to do anyway. Do advise!


share|improve this question

The easiest way would be to use the tee pseudo-muxer (documentation). Briefly:

ffmpeg -i INPUT [output options] -f tee "ou1.mp4|out2.mp4|out3.mp4"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .