[Libav-user] How can we set frame size for live stream?

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Oct 31 13:57:32 CET 2012

Wenpeng Zhou <zhou.wenpeng at ...> writes:

> I mean this command.
> ffplay -f dshow -i video="Mercury USB2.0 Camera" -s 640x480
> How can we set 640x480 in C++ code?

To quote my original answer:
> > there is libswscale (or the scale filter that uses
> > libswscale) to do the resizing.

See doc/examples/filtering_video.c for an example for 
on how to use video filters, doc/examples/scaling_video.c 
for an example on how to use libswscale.

Please do not top-post here, it is considered rude, 
Carl Eugen

More information about the Libav-user mailing list