[Libav-user] Set Webcam Encoder C API

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Oct 21 23:34:59 CEST 2015

Casey Price <cprice1317 at ...> writes:

> 	av_dict_set(&opt, "vcodec", "mjpeg", 0);

> 	av_dict_set(&opt, "s", "1280x720", 0);

The option is actually called "video_size"

>         av_dict_set(&opt , "framerate", "30", 0);

This looks correct.

I am quite sure that "vcodec" is wrong, you 
probably have to pass the opened decoder to 
avformat (but I don't really know).

Carl Eugen

More information about the Libav-user mailing list