| 5 | | So it should be possible to compute and assign these coordinates (without any integer/rounding operations) in double precision floating-point arithmetic. |
| | 5 | At roughly 7 minutes, 2 seconds a stills image of this video looks like this in VLC 3.0.17.4: |
| | 6 | [[Image(https://trac.ffmpeg.org/attachment/ticket/9781/Original.png)]] |
| | 7 | |
| | 8 | |
| | 9 | Then, resample to 480x272 pixels with a display aspect ratio of 16:9 and a sample aspect ratio of 136:135: |
| | 10 | {{{ |
| | 11 | ffmpeg -i 'Elephants_Dream_(2006)_1080p24.webm.720p.vp9.webm' -vf 'zscale=w=480:h=272:f=lanczos,setdar=dar=16/9' -pix_fmt yuv420p Output_Distorted.mp4 |
| | 12 | }}} |
| | 13 | The corresponding stills image will look like this when resizing the video port to show a 720p resolution: |
| | 14 | [[Image(https://trac.ffmpeg.org/attachment/ticket/9781/Output_Distorted.png)]] |
| | 15 | |
| | 16 | I understand that there is some movement in this scene but if you look at the background you should clearly see the distortion I was talking about. |
| | 17 | |
| | 18 | |
| | 19 | Compare this with the same operation done using FFmpeg's `scale` filter: |
| | 20 | {{{ |
| | 21 | ffmpeg -i 'Elephants_Dream_(2006)_1080p24.webm.720p.vp9.webm' -vf 'scale=w=480:h=272:flags=lanczos+accurate_rnd,setdar=dar=16/9' -pix_fmt yuv420p Output_Undistorted.mp4 |
| | 22 | }}} |
| | 23 | Here, the corresponding stills image looks like this and does not show significant distortion when comparing with the stills image of the input video (some minor mismatch is obviously expected due to the strong resampling and movement in the scene): |
| | 24 | [[Image(https://trac.ffmpeg.org/attachment/ticket/9781/Output_Undistorted.png)]] |
| | 25 | |
| | 26 | I am assuming that this might have something to do with the recent-ish efforts to parallelize the `zscale` filter and would appreciate it, if this behavior is investigated. |