[FFmpeg-devel] [RFC] ffserver video size / aspect ratio

Howard Chu hyc
Thu May 20 20:26:20 CEST 2010

I'd like to be able to configure ffserver with a more dynamic VideoSize, so 
that it always preserves the aspect ratio of the original input stream. This 
can be done on the ffmpeg command line using e.g. "-vf scale=<width>:-1"; the 
vf_scale filter preserves the aspect ratio in this case. But there's no way to 
specify this with the VideoSize option; it's parsed using 
av_parse_video_frame_size() which returns an error when width or height are <= 
0. Could we perhaps loosen this restriction in av_parse_video_frame_size()?

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

More information about the ffmpeg-devel mailing list