简体   繁体   中英

How to reduce the resolution of a video using ffmpeg?

I want to reduce the resolution of a video from 1024*768 to 800*600. I found on the web ffmpeg, and the library swscale (I use in C.

And I found some informations on the web, but nothing about how to reduce the resolution of a video nor about which functions to use

How can I do ?

See this or this example code. Use sws_getContext () to set up a scaler, and sws_scale () to convert one frame or slice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM