RECORD
命令记录 #
批量转换 webm 到giffind webps/ -type f -name "*.webp" -print0 | xargs -0 -I{} sh -c 'ffmpeg -y -loglevel quiet -i "{}" -pix_fmt rgb24 "webps-gif/$(basename {}).gif"'
将’download 下 each/gif 中的gif文件复制到 all/gif下。比如 ./download/each/gif/abc.gif -> ./download/all/gif/abc.gif'find . -maxdepth 1 -mindepth 1 -type d ! -name 'all' -exec sh -c 'find "$1" -name "*.gif" -print ' _ {} \; | xargs -n 1 -I {} cp {} all/gif
查看视频像素ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 WechatIMG1185--d14_trim_concat.mp4
裁剪视频ffmpeg -y -i WechatIMG1185--d14_trim_concat.mp4 -vf "crop=512:512:1024:0" cropped_video.mp4
comments powered by Disqus