ffmpeg yuv转rgb
时间: 2023-09-14 20:12:59 浏览: 286
要使用FFmpeg将YUV转换为RGB,可以使用以下命令:
```shell
ffmpeg -s 352x288 -pix_fmt yuv420p -i input.yuv -vf "format=rgb24" output.rgb
```
在这个命令中,-s参数指定输入YUV的分辨率,-pix_fmt参数指定输入YUV的像素格式,-i参数指定输入文件为input.yuv,-vf参数指定了转换的滤镜,这里使用了format=rgb24来将YUV转换为RGB24格式,最后的output.rgb是输出的RGB文件名。
引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [FFmpeg入门详解之121:颜色空间转换RGB和YUV的原理与实战](https://blog.csdn.net/teachermei/article/details/127650824)[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将RGB格式图片或视频转换为YUV格式](https://download.csdn.net/download/codemanship/7617363)[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 ]
阅读全文