All, I am trying remux an mp4 as a segmented mpeg-dash stream. I am using libavcodec and the code is exactly like leandromoreira's example, updated to C++14. By setting
av_dict_set(&opts, "movflags", "frag_keyframe+empty_moov+default_base_moof", 0);
I get segmented mp4 files and an MPD to play them with. My question is how I get libav to store my files in a CMAF container? Is there some kind of flag for CMAF in libavcodec?