1、利用ffmpeg将MP4格式转为h264
ffmpeg -i test.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 test.h264
2、利用ffmpeg将h264转为MP4
ffmpeg -i test.264 -vcodec copy -f mp4 test.mp4
1、利用ffmpeg将MP4格式转为h264
ffmpeg -i test.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 test.h264
2、利用ffmpeg将h264转为MP4
ffmpeg -i test.264 -vcodec copy -f mp4 test.mp4