#325: Aspect Ratio of input Video required to e.g. automatically add correct letterbox/pillarbox when rescaling video ----------------------+-------------------------- Reporter: Pae8uuW5 | Type: enhancement Status: new | Priority: normal Component: avfilter | Version: 0.8 Keywords: | Blocked By: Blocking: | Reproduced: 0 Analyzed: 0 | ----------------------+-------------------------- When converting videos of unknown size and aspect ratio, one needs to know the aspect ratio of the source video to calculate the size of letterbox or pillarbox bars to be added (if any). For source videos with non square pixels, a alone, which is just in_w/in_h, is insufficient. The trivial patch enclosed below adds a new variable "d" (rename as you like) to represent the input sample aspect ratio. With this, one can use a simple chain of a scale and a pad filter to always add correct pillar/letterboxes.
-- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/325> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list [email protected] http://avcodec.org/mailman/listinfo/ffmpeg-trac
