How to change Codec ID with ffmpeg

Now I have a mpeg4 file with Codec ID 'isom (isom/iso2/avc1/mp41)'. I need to remake its ID to 'mp42' (I have to save all other settings without changes). what commands I should use in FFmpeg to do this?


here is what I have in MediaInfo: the screenshot of settings


That field is actually called the major brand. You can use the -brand option to change it.

ffmpeg -i in.mp4 -c copy -map 0 -brand mp42 out.mp4