ffmpeg -i test.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 test.264
说明:
-i test.mp4 输入MP4文件
-codec copy 从MP4封装中进行拷贝
-bsf:h264_mp4toannexb从MP4拷贝到annexB封装
-f h264 采用264格式
test.264 输出文件名
ffmpeg -i test.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 test.264
说明:
-i test.mp4 输入MP4文件
-codec copy 从MP4封装中进行拷贝
-bsf:h264_mp4toannexb从MP4拷贝到annexB封装
-f h264 采用264格式
test.264 输出文件名