[FFmpeg-user] how to avoid double encoding

Moritz Barsnick barsnick at gmx.net
Sat Jun 13 21:51:07 EEST 2020

Hi Thomas,

On Sat, Jun 13, 2020 at 19:46:49 +0200, Thomas Hezel wrote:
> Want to make MPEG-DASH plus HLS plus Fallback mp4 encoding for adaptive bitrate streaming from websites. For playback I use dash.js
> All works fine and perfect but I do the encoding twice and with the exact same output.
> I didn’t find a way to combine it and do it in one go.

You should have look at the "tee" muxer. It takes encoded streams and
passes them to two (or several) separate muxers. You need to use a
special syntax for the muxing options though.


> Especially when having set „veryslow“ this is really an issue.

Have you tried comparing the output speed and quality with the
"veryfast" preset? (Yes, honestly.) Under many circumstances, it
actually surprisingly stands very well.


More information about the ffmpeg-user mailing list