下載地址 GPAC下載地址:http://gpac.wp.mines-telecom.fr/downloads/服務器
參考文檔:MP4Box使用命令大全ide
如何查看幫助ui
mp4box -h編碼
查看mp4box中的全部幫助信息視頻
mp4box -h generalserver
查看mp4box中的通用幫助信息文檔
經常使用命令get
mp4box -info test.mp4 查看test.mp4文件是否有問題同步
mp4box -add test.mp4 test-new.mp4 修復test.mp4文件格式不標準的問題,並把新文件保存在test-new.mp4中it
mp4box -inter 10000 test-new.mp4 解決開始播放test-new.mp4卡一下的問題,爲HTTP下載快速播放有效,10000ms
mp4box -add file.avi new_file.mp4 把avi文件轉換爲mp4文件
mp4box -hint file.mp4 爲RTP準備,此指令將爲文件建立RTP提示跟蹤信息。這使得經典的流媒體服務器像darwinstreamingserver或QuickTime的流媒體服務器經過RTSP/RTP傳輸文件
mp4box -cat test1.mp4 -cat test2.mp4 -new test.mp4 把test1.mp4和test2.mp4合併到一個新的文件test.mp4中,要求編碼參數一致
mp4box -force-cat test1.mp4 -force-cat test2.mp4 -new test.mp4 把test1.mp4和test2.mp4強制合併到一個新的文件test.mp4中,有可能不能播放
mp4box -add video1.264 -cat video2.264 -cat video3.264 -add audio1.aac -cat audio2.aac -cat audio3.aac -new muxed.mp4 -fps 24 合併多段音視頻並保持同步
mp4box -split time_sec test.mp4 切取test.mp4中的前面time_sec秒的視頻文件
mp4box -split-size size test.mp4 切取前面大小爲size KB的視頻文件
mp4box -split-chunk S:E test.mp4 切取起始爲S少,結束爲E秒的視頻文件
mp4box -add 1.mp4#video -add 2.mp4#audio -new test.mp4
test.mp4由1.mp4中的視頻與2.mp4中的音頻合併生成