笔记:FFMPEG命令几则

旋转视频

ffmpeg -i "输入文件" -c copy -metadata:s:v:0 rotate=90 "输出文件"

rotate=90表示旋转90度 也可写入180或270的值

旋转视频(重新编码)

ffmpeg.exe -i "1.mp4" -c:v libx264 -preset veryslow -crf 24 -x264opts ref=6:deblock=1:1:1keyint=30:min-keyint=10 -vf "transpose=2" -c:a copy "output.mkv"

翻压视频并且设置参数+ resize

ffmpeg.exe -y -i "输入.mkv" -f wav - | nae.exe -he -br 64000 -ignorelength -if - -of "temp.m4a" 
ffmpeg.exe -y -i "输入.mkv" -c:v libx264 -preset veryslow -crf 24 -bf 6 -refs 6 -qcomp 0.5 -aq-mode 2 -aq-strength 0.8 -psy-rd 0.3:0 -deblock 1:1 -x264opts min-keyint=1 -vf "scale=1280:720" -an "temp.m4v"
ffmpeg.exe -y -i temp.m4v -i temp.m4a -map_chapters -1 -c copy 19.mp4



猜你喜欢

转载自www.cnblogs.com/toumingbai/p/12456262.html
今日推荐