I need to change the id of a video track in an mp4 container and of course without re-encoding. How can I do that with ffmpeg or MP4Box ? Is that even possible ?
With MP4Box you can fine-tune these parameters (more in MP4Box -h general
):
-set-track-id id1:id2 changes the id of a track from id1 to id2
-swap-track-id id1:id2 swaps the IDs of the identified tracks
Example:
MP4Box -set-track-id 100:101 file.mp4
MP4Box -set-track-id 100:101 file.mp4 -out new.mp4