[Libav-user] [resize video] Lost duration

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Oct 13 18:59:43 CEST 2014


Hung Nguyen <Hung.Nguyen at ...> writes:

> The problem I am facing now is, every time I try to 
> change video size when initialise encoder, the 
> output video does not have video duration: 
> 
>  enc_ctx->height = 360;
>  enc_ctx->width = 640; 

Did you just set the dimensions in the codec context 
or did you also use the scale your input (with the 
scale filter)?

Carl Eugen



More information about the Libav-user mailing list