Instruction of mw_mp4 Module

The mw_mp4 module is part of Magewell MWCapture SDK V3.3, which is mainly used to encapsulate encoded audio and video data into MP4 files dynamically during the process of capturing.

Provided with a standalone library, the mw_mp4 module works with Magewell I/O families, ranging from Pro Capture, USB Capture (Plus) on across Windows, Linux and Mac OS to Eco capture on Windows and Linux platforms.

When generating the MP4 files, a temporary file with the suffix '.info' will also be created. Suppose the process of capturing is interrupted for any reason, you can use the temporary file to repair and rebuild the complete MP4 file.

Steps of using mw_mp4 module to generate mp4 file:

  1. Open the mp4 file through the interface 'mw_mp4_open'.
  2. Set the audio stream information by calling the interface 'mw_mp4_set_audio'.
  3. Set the video stream information by calling the interface 'mw_mp4_set_video'.
  4. Write the mp4 video data by calling the interface 'mw_mp4_write_video'.
  5. Write the mp4 audio data by calling the interface 'mw_mp4_write_audio'.
  6. Close the mp4 file through the interface 'mw_mp4_close'.

Besides, you can call the interface 'mw_mp4_repair' to repair and rebuild the MP4 file.