如何使用 ffmpeg 降低视频的分辨率?

How to reduce the resolution of a video using ffmpeg?

我想将视频的分辨率从 1024*768 降低到 800*600。 我在网上找到了 ffmpeg 和库 swscale(我在 C 中使用

而且我在网上找到了一些信息,但没有关于如何降低视频分辨率以及使用哪些功能的信息

我该怎么办?

参见 this or this example code. Use sws_getContext() to set up a scaler, and sws_scale() 转换一帧或切片。