Timeline for How can I fit a video to a certain size, but don't upscale it with FFmpeg?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 4, 2021 at 13:31 | comment | added | slhck | @maf-soft In principle, yes, you can place those anywhere, but that kind of quoting does not make sense to me at all – at least it makes the command very hard to read. | |
May 4, 2021 at 12:39 | comment | added | maf-soft |
I was more wondering about the min'( - but now I found out that you don't even need matching pairs of quotes, it is enough to have one single quote anywhere before the first comma, like in scale=min(12'80,iw):min(720,ih) :) - doesn't make much sense, but works. A second quote is only needed somewhere before a regular comma if you need one, like before ,pad .
|
|
May 4, 2021 at 8:10 | comment | added | slhck |
@maf-soft Because the comma is usually used by ffmpeg to separate filters in a filter chain (in the above example, between scale and pad ). By quoting it, ffmpeg will not interpret the comma that way, but use it as part of the first option passed to scale , which is min(1280,iw) .
|
|
May 3, 2021 at 15:35 | comment | added | maf-soft |
I really don't understand why the single quotes are where they are: scale='min(1280,iw)':min'(720,ih)'
|
|
Oct 16, 2017 at 9:59 | history | edited | slhck | CC BY-SA 3.0 |
added 763 characters in body
|
Mar 19, 2013 at 21:36 | comment | added | slhck | I know right? I spent ten minutes trying to break it into logical parts and then inserting some values but I gave up. It's a little old and maybe it'd be possible to write it much more concisely than this though. | |
Mar 19, 2013 at 21:33 | comment | added | evilsoup | +1 but that is a truly horrific command :P | |
Mar 18, 2013 at 20:50 | vote | accept | sashoalm | ||
Mar 18, 2013 at 20:06 | history | answered | slhck | CC BY-SA 3.0 |