Using a slower first pass means that a more accurate 1st pass will be used.
Depending on the encoder and content this might have small benifits in regard of compression ration.
[Attachment 63029 - Click to enlarge]
is there anything fast first pass and slow first pass?
if yes then whats thier advantages and disadvantages?
Using a slower first pass means that a more accurate 1st pass will be used.
Depending on the encoder and content this might have small benifits in regard of compression ration.
users currently on my ignore list: deadrats, Stears555, marcorocchini
do you know how i can enable slow first pass in ffmpeg while using x265?
iirc. it should work with:
Code:--x265-params pass=1:slow-firstpass=1
users currently on my ignore list: deadrats, Stears555, marcorocchini
Unlike x264, in x265 the default is to use a fast 1st pass, so: no
users currently on my ignore list: deadrats, Stears555, marcorocchini
ohh thanks for info
btw slow first pass vs. fast first pass which will give better video quality?
slow first pass is more precise and could potentially preserve more details from the source, whether it does or is just a waste of time depends on your source and your settings,....
users currently on my ignore list: deadrats, Stears555, marcorocchini
users currently on my ignore list: deadrats, Stears555, marcorocchini
I tried one before it was avidemux I liked that one to encode videos but it's reviews are bad idk why people doesn't like avidemux
Last edited by Anonymous543; 22nd Jan 2022 at 05:17.
Nothing wrong with avidemux, doesn't support Avisnth/Vapoursynth, but other than that solid tool in my book,..
users currently on my ignore list: deadrats, Stears555, marcorocchini
Skript based frame works for filtering content.
users currently on my ignore list: deadrats, Stears555, marcorocchini
in ffmpeg how can i see which default settings are getting used for libx265 encoder
because i think by default it uses slow firstpass
Ah, I mixed it up before.
x264 uses fast first by default and x265 doesn't.
To know for sure you need to look at the source code in ffmpeg.
users currently on my ignore list: deadrats, Stears555, marcorocchini
There is a simply way to know: try whether pass=1low-firstpass=1 slows things down or not,...
users currently on my ignore list: deadrats, Stears555, marcorocchini
tried, but its hard to tell because input video length was 30 secs thats why encoding time diffrences is in miliseconds and everytime it gives diffrent time diffrencessCode:ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset ultrafast -x265-params pass=1 -f null NUL && ^ ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset ultrafast -x265-params pass=1:slow-firstpass=1 -f null NUL && ^ ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset ultrafast -x265-params pass=1:slow-firstpass=0 -f null NUL && ^
to state the obvious: Why not simply use a longer souce? (at least I don't plan to spend time searching through ffmpegs source code to varify something that you can easily test)
users currently on my ignore list: deadrats, Stears555, marcorocchini
Send the first pass video output to a file rather than NUL. Then you can see all the encoding parameters with MediaInfo.
And using the ultrafast preset to check this makes no sense.
soo... i changed preset to slow and results are.....
without specifying anything ,takes 88.19seconds for 1st passCode:ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset slow -x265-params pass=1 -f null NUL && ^
with specifying -x265-params pass=1:slow-firstpass=1 takes 87.58seconds for 1st passCode:ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset slow -x265-params pass=1:slow-firstpass=1 -f null NUL && ^
with specifying -x265-params pass=1:slow-firstpass=0 takes 22.06seconds for 1st passCode:ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset slow -x265-params pass=1:slow-firstpass=0 -f null NUL && ^
looks like slow first pass is enabled by default for ffmpeg libx265(hevc) but still for confirmation i'll make one more thread on it.
That is what I wrote after that statement you quoted,....x264 uses fast first by default and x265 doesn't.
users currently on my ignore list: deadrats, Stears555, marcorocchini
https://x265.readthedocs.io/en/master/presets.html with preset medium shows the defaults that are directly changed through presets.
Looking through the option https://x265.readthedocs.io/en/master/cli.html you can also see for each option it's default value.
Also like jagabo mentioned you could also simple do a encode and look at the output with MediaInfo to see the settings that were used,...
Cu Selur
Ps.: this seems to be going in circles, I'm off this thread, but I wish you luck in your endevours.
users currently on my ignore list: deadrats, Stears555, marcorocchini
You could just read the docs:
https://x265.readthedocs.io/en/master/cli.html?highlight=slow-first-pass#cmdoption-slow-firstpass
Damm it was in documentation , and i was just wasting my time in doing weird tests and all ,anyways thank you selur and jagabo