Medialooks Knowledge Base Support Center

Contact Us

Encode to several destination with the same configuration

There is a "second_encoder" attribute for encoding configuration of MWriter and MFWriter objects.

You should specify



Here is an example of simultaneous UDP streaming and MP4 file capturing:

format='mp4' video::codec='n264' audio::codec='aac' second_encoder='udp://' second_encoder::format='mpegts'

In this case, video and audio settings are the same. The difference is only in the destination.