sample useage
ffmpeg -y -i sourceFile -r 30000/1001 -b:a 2M -bt 4M -vcodec libx264 -pass 1 -coder 0 -bf 0 -flags -loop -wpredp 0 -an targetFile.mp4
-----------------------------------------
ffmpeg -i 3d.mp4 -ss 00:00:00 -t 00:00:20 -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -s 800x450 gis.s.baseline.h264
将图片转换为视频
ffmpeg -f image2 -i 3d%03d.png -vcodec libx264 -profile:v baseline -pix_fmt yuv420p gis.baseline.h264
分离出视频流
ffmpeg -i input_file -vcodec copy -an output_file_video //分离视频流
The decoder expects an .mp4 file and does not support weighted prediction for P-frames and CABAC entropy encoding. To create such bitstreams use ffmpeg and x264 with the following command line options:
ffmpeg -y -i sourceFile -r 30000/1001 -b:a 2M -bt 4M -vcodec libx264 -pass 1 -coder 0 -bf 0 -flags -loop -wpredp 0 -an targetFile.mp4