[FFmpeg-devel] [PATCH] doc/filters: add an example to scale

James Darnley james.darnley at gmail.com
Tue Jan 26 18:24:13 CET 2016


On 2016-01-26 17:53, Vittorio Gambaletta (VittGam) wrote:
> Hi,
> 
> On 26/01/2016 15:20:22 CET, Vittorio Gambaletta (VittGam) wrote:
>> Hi,
>>
>> On 26/01/2016 15:16:21 CET, James Darnley wrote:
>>> On 2016-01-22 14:44, Michael Niedermayer wrote:
>>>> On Fri, Jan 22, 2016 at 03:53:10AM +0100, James Darnley wrote:
>>>>> Someone on IRC asked for a scale that would fit in a given box. 
>>>>> This is the
>>>>> answer.  I couldn't see it in the existing examples so I thought I
>>>>> would add it.
>>>>> ---
>>>>>  doc/filters.texi | 6 ++++++
>>>>>  1 file changed, 6 insertions(+)
>>>>
>>>> LGTM
>>>>
>>>> thx
>>>
>>> Thanks Michael.
>>>
>>> I nearly forgot about this.  If nobody else has any comments I will push
>>> it later today.
>>
>> Instead of a 720x720 box it could be a 720x576 box (to avoid confusion in
>> other usage cases where the box isn't square).

I might change that.

> That is, I'm using this to fit the video in a 720x576 box:
> 
> scale='width=min(720\,576*dar):height=min(576\,720/dar)'
> 
> Also, I'm using this to fit the video in a 720x576 box that has a forced
> 4:3
> aspect ratio (its native aspect ratio is 5:4):
> 
> scale='width=min(720\,720/4*3*dar):height=min(576\,576*4/3/dar)'

I might add another example from yours as it might be clearer than my
if-branch way.  I'll read the other examples again first.

Thanks.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160126/dbb761ae/attachment.sig>


More information about the ffmpeg-devel mailing list