linux ffmpeg批量修改图片尺寸
时间: 2023-10-12 20:06:38 浏览: 182
要在Linux下使用ffmpeg批量修改图片尺寸,你可以使用以下命令:
```bash
for file in *.jpg; do ffmpeg -i "$file" -vf scale=800:600 "${file%.jpg}_resized.jpg"; done
```
这个命令将会遍历当前目录下所有的.jpg文件,并将它们的尺寸修改为800x600像素。修改后的文件将以"_resized.jpg"作为后缀保存。你可以根据需要调整目标尺寸和后缀名称。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [ffmpeg批量生成视频截图软件](https://blog.csdn.net/weixin_31115195/article/details/116184157)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Ffmpeg 批量修改图片大小](https://blog.csdn.net/weixin_41292299/article/details/131309424)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文