I am trying to scale a video from 1080p to 480p. However, whenever I am calling sws_scale_frame()
function, I keep getting undefined reference. When I checked the header file, I found that the function signature is missing from the header file. I have installed libswscale
using the command sudo apt install libswscale-dev
. If this is not the right appoarch, can anyone help with how to get the function or alternative if this is deprecated?
P.S. My build options in VS Code are as follows: "-lavformat","-lavcodec","-lswscale","-lavutil", "-lm", "-lpthread"
EDIT: Version of libswscale-dev is 7:4.4.2-0ubuntu0.22.04.1
if needed.