On Fri Sep 15 07:05:08 2023 +0000, Rémi Bernon wrote:
Hmm... you're right maybe the MFT can handle either format somehow then, would be better to check what the games are actually doing in this case. Call of Duty Black Ops 3, Shadow Warrior 2 for instance are using the MFT decoder directly. There's also the MF_NALU_LENGTH_SET and MF_NALU_LENGTH_INFORMATION attributes (https://learn.microsoft.com/en-us/windows/win32/medfound/mf-nalu-length-set) which maybe indicate that the stream is in a format or another.
OK, so the conclusion is that for this patch, we cannot simply change "byte-stream" to "avc" in wg_format_to_caps_video_h264(). We'd better add a h264parse while we are adding a h264 stream to mp4muxer, correct?