FFmpeg转码B帧

参数中加 -bf 0

ffmpeg -i test.mp4 -vcodec libx264 -bf 0 test-640x480.mp4

参数中加 -x264opts "bframe=0"

ffmpeg -i test.mp4 -vcodec libx264 -x264opts "bframes=0" test-640x480.mp4

参数中加 -profile:v baseline

ffmpeg -i test.mp4 -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -s 640x480 -acodec aac test1.mp4

查看是否含有B帧

转换完成后,通过 ffprobe 可以查看视频流中是否含有B帧

ffprobe -v quiet -show_frames -select_streams v test.mp4 | find "pict_type=B"

猜你喜欢

转载自blog.csdn.net/qq_31231915/article/details/123877418