'convert mp4 to webp without quality loss (ffmpeg)

How can I do that?

ffmpeg -y -i input.mp4 -vcodec libwebp -lossless 0 -compression_level 0 -loop 0 output_lossless0_comp0.webp

and

ffmpeg -i input.mp4 -vcodec libwebp -filter:v fps=fps=20 -lossless 0  -compression_level 3 -q:v 70 -loop 1 -preset picture -an -vsync 0 -s 800:600 output.webp

lead to substantial quality loss.

All other command lines i found elsewhere lead to infinite encoding times and absurd file sizes (500+ MB when the source is 3 MB).

All i need is to convert mp4 to webp without compression or quality loss.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source