Resizing result with nearest neighbour is highly compressed

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Resizing result with nearest neighbour is highly compressed

Nick-2
I'm trying to resize a .mp4 video with FFmpeg but the result is artifacted
to hell and back, how can I fix it?

Command used:

> ffmpeg -i C:\Users\Asus\Desktop\0001-0024.mp4 -vf
> scale=1120:1120:flags=neighbor C:\Users\Asus\Desktop\out.mp4 -aac_tns

the input file and output files have been attached to this mail

I have tried everything I can think off, any help is appreciated

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

0001-0024.mp4 (65K) Download Attachment
out.mp4 (437K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Resizing result with nearest neighbour is highly compressed

Moritz Barsnick
On Fri, May 22, 2020 at 13:52:40 +0200, Nick wrote:
> I'm trying to resize a .mp4 video with FFmpeg but the result is artifacted
> to hell and back, how can I fix it?

To be honest, I see the same artifacts in the original.
(I dumped single frames losslessly to PNG and viewed them full-screen.
Note that that last step of full-screen scaling obviously also uses
some algorithm. But regardless of smoothing or not, I see artifacts.)

> > ffmpeg -i C:\Users\Asus\Desktop\0001-0024.mp4 -vf
> > scale=1120:1120:flags=neighbor C:\Users\Asus\Desktop\out.mp4 -aac_tns

We usually appreciate the complete, uncut console output, which also
saves us from actually reproducing, just to see e.g. that you are
scaling *up*).

And that "-aac_tns" in your command line surely is a mistake. ;-)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Resizing result with nearest neighbour is highly compressed

FFmpeg-users mailing list
Nearest neighbor will make it blocky. Maybe you want bilinear?


> On May 22, 2020, at 5:15 AM, Moritz Barsnick <[hidden email]> wrote:
>
> On Fri, May 22, 2020 at 13:52:40 +0200, Nick wrote:
>> I'm trying to resize a .mp4 video with FFmpeg but the result is artifacted
>> to hell and back, how can I fix it?
>
> To be honest, I see the same artifacts in the original.
> (I dumped single frames losslessly to PNG and viewed them full-screen.
> Note that that last step of full-screen scaling obviously also uses
> some algorithm. But regardless of smoothing or not, I see artifacts.)
>
>>> ffmpeg -i C:\Users\Asus\Desktop\0001-0024.mp4 -vf
>>> scale=1120:1120:flags=neighbor C:\Users\Asus\Desktop\out.mp4 -aac_tns
>
> We usually appreciate the complete, uncut console output, which also
> saves us from actually reproducing, just to see e.g. that you are
> scaling *up*).
>
> And that "-aac_tns" in your command line surely is a mistake. ;-)
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".