如何改变轨道ID与ffmpeg或MP4Box



我需要改变mp4容器中视频轨道的id,当然不需要重新编码。我怎么能做到这一点与ffmpeg或MP4Box ?这可能吗?

使用MP4Box,您可以微调这些参数(在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

的例子:

  • inplace: MP4Box -set-track-id 100:101 file.mp4
  • 新建文件:MP4Box -set-track-id 100:101 file.mp4 -out new.mp4

最新更新