How to Change Codec Id with Ffmpeg

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

2

1 Answer

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
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.