+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 31

Thread: is there anything fast first pass and slow first pass?

  1. #1
    Anonymous543
    Guest

    is there anything fast first pass and slow first pass?

    Image
    [Attachment 63029 - Click to enlarge]


    is there anything fast first pass and slow first pass?
    if yes then whats thier advantages and disadvantages?
    Quote Quote  

  2. #2
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  3. #3
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    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.

    do you know how i can enable slow first pass in ffmpeg while using x265?
    Quote Quote  

  4. #4
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    iirc. it should work with:
    Code:
    --x265-params pass=1:slow-firstpass=1
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  5. #5
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    iirc. it should work with:
    Code:
    --x265-params pass=1:slow-firstpass=1
    for simplicity if i chose placebo preset then will it automatically turn on slow first pass? just like x264?
    Quote Quote  

  6. #6
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    Unlike x264, in x265 the default is to use a fast 1st pass, so: no
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  7. #7
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    ohh thanks for info
    Quote Quote  

  8. #8
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    btw slow first pass vs. fast first pass which will give better video quality?
    Quote Quote  

  9. #9
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  10. #10
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    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,....

    which media encoder you use? or you will recommend?
    Quote Quote  

  11. #11
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    I'm probably not the right person to ask, but with the knowledge you seem to have, you might want to use Handbrake, VidCoder, may be StaxRip or MeGui if you read up a lot.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  12. #12
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    I'm probably not the right person to ask, but with the knowledge you seem to have, you might want to use Handbrake, VidCoder, may be StaxRip or MeGui if you read up a lot.
    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.
    Quote Quote  

  13. #13
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  14. #14
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    Nothing wrong with avidemux, doesn't support Avisnth/Vapoursynth, but other than that solid tool in my book,..
    What is avisnth/vapoursynth?
    Quote Quote  

  15. #15
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    Skript based frame works for filtering content.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  16. #16
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    Skript based frame works for filtering content.
    Thanks for info ✨
    Quote Quote  

  17. #17
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    iirc. it should work with:
    Code:
    --x265-params pass=1:slow-firstpass=1

    in ffmpeg how can i see which default settings are getting used for libx265 encoder
    because i think by default it uses slow firstpass
    Quote Quote  

  18. #18
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  19. #19
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    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.
    i dont understand coding and all can you look in to that and tell me libx265 it uses slow first pass or fast first pass by default
    or may be some one else
    Quote Quote  

  20. #20
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  21. #21
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    There is a simply way to know: try whether pass=1low-firstpass=1 slows things down or not,...
    Code:
    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 && ^
    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 diffrencess
    Quote Quote  

  22. #22
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  23. #23
    Member
    Join Date
    Dec 2005
    Posts
    59,264

    Re: is there anything fast first pass and slow first pass?

    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.
    Quote Quote  

  24. #24
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    soo... i changed preset to slow and results are.....

    Code:
    ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset slow -x265-params pass=1 -f null NUL && ^
    without specifying anything ,takes 88.19seconds for 1st pass


    Code:
    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=1 takes 87.58seconds for 1st pass


    Code:
    ffmpeg -y -i input.mp4 -c:v libx265 -b:v 100k -preset slow -x265-params pass=1:slow-firstpass=0 -f null NUL && ^
    with specifying -x265-params pass=1:slow-firstpass=0 takes 22.06seconds for 1st pass



    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.
    Quote Quote  

  25. #25
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    Unlike x264, in x265 the default is to use a fast 1st pass, so: no
    i think x265 the default is to use slow 1st pass
    Quote Quote  

  26. #26
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    x264 uses fast first by default and x265 doesn't.
    That is what I wrote after that statement you quoted,....
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  

  27. #27
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by Selur View Post
    x264 uses fast first by default and x265 doesn't.
    That is what I wrote after that statement you quoted,....

    So do you know what defaults ffmpeg x265 uses for 1st pass?
    Am a bit more intrested in ffmpeg x265
    Quote Quote  

  28. #28
    Member
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    8,077

    Re: is there anything fast first pass and slow first pass?

    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
    Quote Quote  

  29. #29
    Member
    Join Date
    Dec 2005
    Posts
    59,264

    Re: is there anything fast first pass and slow first pass?

    Quote Originally Posted by kirito View Post
    So do you know what defaults ffmpeg x265 uses for 1st pass?
    You could just read the docs:
    https://x265.readthedocs.io/en/master/cli.html?highlight=slow-first-pass#cmdoption-slow-firstpass
    Quote Quote  

  30. #30
    Anonymous543
    Guest

    Re: is there anything fast first pass and slow first pass?

    Damm it was in documentation , and i was just wasting my time in doing weird tests and all ,anyways thank you selur and jagabo
    Quote Quote  

+ Reply to Thread

Similar Threads

  1. Difference Between 1 pass & 2 pass encoding
    By iqbal88 in forum Video Conversion
    Replies: 28
    Last Post: 29th Oct 2021, 05:19
  2. Staxrip 1st pass x265 2nd pass Nvenc is it possible?
    By dennisbgi7 in forum Video Conversion
    Replies: 6
    Last Post: 7th Jan 2021, 13:41
  3. Rebuilder 2 pass
    By asiafan in forum Blu-ray Ripping
    Replies: 2
    Last Post: 5th Oct 2020, 17:29
  4. How to verify if its encoded single pass or 2-pass?
    By batemanj in forum Newbie / General discussions
    Replies: 16
    Last Post: 1st May 2020, 09:38
  5. What is difference between 1 pass encoding & 2 pass encoding
    By Computerman1 in forum Video Conversion
    Replies: 18
    Last Post: 13th Jan 2019, 19:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts