ffmpeg 命令提取音視頻數據-ffmpeg導出h265裸流-ffmpeg導出h264裸流


1.保留封裝格式


ffmpeg -i test.mp4 -acodec copy -vn audio.mp4
ffmpeg -i test.mp4 -vcodec copy -an video.mp4

2.提取視頻

保留編碼格式:

ffmpeg -i test.mp4 -vcodec copy -an test_copy.h264

強制格式:

ffmpeg -i test.mp4 -vcodec libx264 -an test.h264
ffmpeg -i test.mp4 -vcodec libx265 -an test.h265
ffmpeg -i 1920x1080.mp4 -vcodec libx265  -preset ultrafast -x265-params "bframes=0"  out.h265  #去除B幀

3.提取音頻

保留編碼格式

ffmpeg -i test.mp4 -acodec copy -vn test.aac

強制格式

ffmpeg -i test.mp4 -acodec libmp3lame -vn test.mp3


免責聲明!

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



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