FFmpeg去掉B帧
引自:https://blog.csdn.net/qq_41866437/article/details/103497595
第一种
参数中加 -bf 0
ffmpeg -i test.mp4 -vcodec libx264 -bf 0 test-640x480.h264
第二种
参数中加 -x264opts "bframe=0"
ffmpeg -i test.mp4 -vcodec libx264 -x264opts "bframes=0" test-640x480.h264
第三种
参数中加 -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"
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步