That doesn't look right. The documentation for both the Media Foundation H.264 decoder and for the MPEG-4 file sink states that the stream must be in Annex B format, which is equivalent to stream-format=byte-stream.
Probably what's needed instead is a repeat of !4600.