[Libav-user] Fwd: resize video stream

Gonzalo Garramuño ggarra13 at gmail.com
Sat Apr 3 15:59:24 EEST 2021


El 3/4/21 a las 06:21, Сергей Икол escribió:
> Hello!
>
> I use this example
> https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/master/2_remuxing.c
>
> I want to change this example a little to resize the output video stream
> Is it posible?
> Can I use sws_scale() for this? Or do I need to use some other method 
> for this?
>
> I would be glad for any advice!)
>
Yes it is possible and yes you can use sws_scale for this.  Just make 
sure you are using the right pix_fmt and have the right linesizes in 
addition to the new resolution and all should be fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210403/27aba899/attachment.html>


More information about the Libav-user mailing list