[FFmpeg-trac] #2014(avfilter:closed): Crop and Scale are location sensitive, fails if scale comes before crop

FFmpeg trac at avcodec.org
Thu Dec 13 08:57:16 CET 2012


#2014: Crop and Scale are location sensitive, fails if scale comes before crop
-------------------------------------+------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avfilter
              Version:  unspecified  |               Resolution:  invalid
             Keywords:  crop scale   |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  1            |
-------------------------------------+------------------------------------

Comment (by reimar):

 I'd really like to see how you would scale a video by a factor 3 and
 encode it at 320x240 resolution without cropping after scale.
 That is a case that is completely impossible, but in general the border
 pixels will look different between both orders, and the one with crop
 first is only correct when croppping borders. When cropping content (e.g.
 to change aspect) cropping after scale will give more accurate results.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2014#comment:10>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list