42
20
Running this command:
ffmpeg -i xr.mp4 -tune ya zu.mp4
reveals the possible tune values for x264 and in turn FFmpeg:
[libx264 @ 0000000002167100] Possible tunes: film animation grain stillimage psnr ssim
fastdecode zerolatency
However I could not find a reference explaining what these values actually do.
7
--tune filmis for live-action content: anything shot on a camera, as opposed to cel animation or computer generated text/charts. It is even suitable for somewhat realistic 3d animation, so don't let the "film" part food you. It works for grainy and non-grainy sources and balances grain retention with overall quality-per-bitrate, whereas--tune grainwill try to preserve grain at any cost; useful if keeping the grain is a must-have for some reason.--tune filmdoes NOT only help for high bitrate (indeed, tunings tend to have more of an effect on lower bitrates in general). – thomasrutter – 2014-08-12T12:47:37.4308Note: "stillimage" is for people writing tools that use x264 to encode a single still frame, as an alterntive to JPEG or JPEG2000. It could however still be helpful for people doing a video which is essentially a slideshow of still images where a static image is shown unchanged for many frames before changing to the next image, as long as it literally is a static slide show with no transitions. The point of "stillimage" is that it boosts certain psy optimisations that would improve single frames at the expense of harming motion. – thomasrutter – 2014-12-16T03:58:31.680
1I was under the impression that --tune film is for grainy material, but from what you're saying it's synonymous with high-quality input; basically, if my sources are always great quality, then I should always use this tune. And then --tune grain should be used for things such as very old film material. Is that correct? – Florin Andrei – 2013-06-09T00:57:36.537
6@Florin Both are for high-quality sources, but
--tune filmwill filter some of the grain and--tune grainwill preserve more of it. AIUI the latter should only be used if the grain is an important part of the visuals that could still be noticeable at the target settings. – Tobu – 2013-08-27T00:32:54.797