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"


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM