So, the input media type of the H.264/AVC remux MFT is MFVideoFormat_H264_ES and the output media type of the H.264/AVC remux MFT is MFVideoFormat_H264, which will be automatically inserted into the topology resolver. Set the input media type of MP4 sink to MFVideoFormat_H264. Set the source output media type to MFVideoFormat_H264_ES, which indicates each sample might not contain a complete primary picture.
AUTOMATICALLY REMUX TO MP4 HOW TO
How to use H.264/AVC Remux MFT and MP4 sink In this situation, the application needs to use a H.264/AVC remux MFT to convert the compressed samples not containing a complete primary picture before they are written into the MPEG-4 file container. Trim H.264/AVC video file without transcoding.Remux H.264/AVC video from AVCHD, MPEG-2 TS/PS file format to MPEG-4 file format.Concatenate two H.264/AVC video in MPEG-2 TS or MP4 and write into MPEG-4 file container with correct time stamps.Record H.264/AVC video conference in MPEG-4 file container.Record camera captured H.264/AVC elementary video in MPEG-4 file container.Write H.264/AVC streaming elementary video into MPEG-4 file container.
For example, one compressed sample might not contain a complete primary picture or might not have a correct presentation time stamp associated with it. In many scenarios when applications need to record H.264/AVC video in a MPEG-4 file container, the compressed sample may not satisfy the above requirements. (Please refer to the definition of primary picture and mandatory NAL units order in section 7.4.1.2.3, Order of NAL units and coded pictures and association to access units, of the H.264 AVC specification.) It also requires each compressed sample is associated with a presentation time stamp, decoding time stamp, and sample duration. MPEG-4 file format requires that each compressed sample contains one primary picture with NAL units in the correct order. This topic describes when and how to use a H.264/AVC Remux MFT and MP4 Sink.