VideoHelp Forum
+ Reply to Thread
Results 1 to 29 of 29
Thread
  1. illusion Dictator
    Join Date
    Jul 2011
    Location
    In your Heart
    Search PM
    Dear friends,
    Pls, discuss about what is the real difference between 1 pass encoding & 2 pass encoding
    Quote Quote  
  2. Vladrial Vladrial's Avatar
    Join Date
    Jul 2010
    Location
    Pune, India
    Search Comp PM
    In short, in one-pass encoding the encoding is done in the first pass itself, in case of 2-pass encoding the file is analyzed throughly in the first pass and a intermediate file is created. In the second pass the encoder looks up the intermediate file and appropriately allocates bits, the actual encoding takes place in the second pass. 2-pass encoding is usually better than single pass encoding ( Assuming we are considering the bitrate mode )
    Quote Quote  
  3. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Originally Posted by iqbal88 View Post
    Dear friends,
    Pls, discuss about what is the real difference between 1 pass encoding & 2 pass encoding

    In one word, the real difference between the two is "quality".
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  4. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    In one sentance "to predict file size".
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  5. Mod Neophyte Super Moderator redwudz's Avatar
    Join Date
    Sep 2002
    Location
    USA
    Search Comp PM
    Maybe just my opinion:

    Two pass can give you smaller files with better quality at lower bitrates.
    At high bitrates, two pass or single pass can have the same quality.

    Two pass takes a fair amount more time for encoding compared to single pass.
    As mentioned, with two pass you can control the encoded file size.

    Single pass can also be quality based. You don't have control of the filesize, but you can control the quality.
    Quote Quote  
  6. Originally Posted by iqbal88 View Post
    Dear friends,
    Pls, discuss about what is the real difference between 1 pass encoding & 2 pass encoding
    One pass.
    Quote Quote  
  7. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by SLK001 View Post
    Originally Posted by iqbal88 View Post
    Dear friends,
    Pls, discuss about what is the real difference between 1 pass encoding & 2 pass encoding

    In one word, the real difference between the two is "quality".
    No, you can do single pass with fixed quality setting (and variable bit rate).

    Single pass, fixed rate, will give you lower quality (for the same size).
    Quote Quote  
  8. Member dragonkeeper's Avatar
    Join Date
    Jul 2003
    Location
    United States
    Search Comp PM
    Originally Posted by redwudz View Post
    Maybe just my opinion:

    Two pass can give you smaller files with better quality at lower bitrates.
    At high bitrates, two pass or single pass can have the same quality.

    Two pass takes a fair amount more time for encoding compared to single pass.
    As mentioned, with two pass you can control the encoded file size.

    Single pass can also be quality based. You don't have control of the filesize, but you can control the quality.
    I agree with Redwudz on this one from what I've seen everyone tends to make the blanket statement "2 pass gives you better quality" when they should be saying something along the lines of "2 pass gives you better quality at a given file size".

    When i encode I really don't care about file size, hard drive space is cheap.
    Murphy's law taught me everything I know.
    Quote Quote  
  9. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by manono View Post
    Originally Posted by iqbal88 View Post
    Dear friends,
    Pls, discuss about what is the real difference between 1 pass encoding & 2 pass encoding
    One pass.
    manono wins — FLAWLESS VICTORY

    Originally Posted by dragonkeeper View Post
    When i encode I really don't care about file size, hard drive space is cheap.
    Blank DVD-R's are even cheaper today.
    Quote Quote  
  10. Single pass constant bitrate: you pick the bitrate, the encoder encodes the entire video at that bitrate. If the bitrate is very low the video will be of low quality. If the bitrate is very high the video may be of good quality but bitrate will probably be wasted on lots of shots that didn't really need it.

    Multipass variable bitrate: you pick the bitrate the encoder delivers whatever quality it can for that bitrate. The encoder makes two (or more) passes. During the first pass the encoder examines the entire video to see what parts need more bitrate and what parts need less. During the second pass it encodes the video using that information. It allocates more bitrate to parts that need it, less to parts that don't. Subsequent passes (if requested) refine the video futher. This produces better quality than single pass CBR because bitrate isn't wasted on parts of the video that don't need it.

    Single pass constant quality: you pick the quality, the encoder uses whatever bitrate is necessary to deliver that quality at each frame.

    When your primary concern is the file size you use 2-pass VBR encoding. You're saying "I don't care what the quality is, I want a file of THIS size." Because file_size = bitrate * running_time.

    When your primary concern is quality you use constant quality encoding. You're saying "I don't care what the file size is, I what THIS quality."

    If you encode a video using constant quality encoding, then go back and make another video the same size using 2-pass VBR encoding, the two videos will be the same size and similar quality.
    Quote Quote  
  11. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    This must be about the 100th time you've explained this, jagabo, and you do it extremely well.
    And yet there still seem to be people around who just don't 'get' it.
    I'm not sure why this is - maybe too many people are still hung up on getting a '700MB rip'. ???
    Quote Quote  
  12. What is the difference between 1pass CBR abd 2pass(3pass) CBR or how it works? It always made my head spin, not that I ever used it but it seems to be right thread to get an answer.
    Quote Quote  
  13. Originally Posted by Gavino View Post
    This must be about the 100th time you've explained this, jagabo, and you do it extremely well.
    And yet there still seem to be people around who just don't 'get' it.
    I'm not sure why this is - maybe too many people are still hung up on getting a '700MB rip'. ???
    I think people don't bother to search first. Or maybe they just don't know what exactly to search for. Or searches turn up old information about writing movies to CDs. Or they live in parts of the world where they can only afford CDs. I think many of the release groups are still hung up on 700 MB increments.
    Quote Quote  
  14. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by El Heggunte View Post
    Originally Posted by dragonkeeper View Post
    When i encode I really don't care about file size, hard drive space is cheap.
    Blank DVD-R's are even cheaper today.
    Which is why I do 2 passes, so I can get the maximum quality that fits on a DVD.
    Quote Quote  
  15. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Originally Posted by _Al_ View Post
    What is the difference between 1pass CBR and 2pass(3pass) CBR or how it works? It always made my head spin, not that I ever used it but it seems to be right thread to get an answer.
    While some may tell you that the difference is that, with a 2nd pass, the encoder gets to tweak more things than just bitrate, and so can still benefit CBR, in REAL LIFE the the answer is: NOTHING.

    @OP,
    Stop expecting us to provide you with this week's media class assignment. This is like the 3rd or 4th time you've asked us to "discuss" these WIDE OPEN, VAGUE "questions". If you have a REAL question, ask it.

    Scott
    Quote Quote  
  16. Originally Posted by Cornucopia View Post
    Originally Posted by _Al_ View Post
    What is the difference between 1pass CBR and 2pass(3pass) CBR or how it works? It always made my head spin, not that I ever used it but it seems to be right thread to get an answer.
    While some may tell you that the difference is that, with a 2nd pass, the encoder gets to tweak more things than just bitrate, and so can still benefit CBR, in REAL LIFE the the answer is: NOTHING.

    @OP,
    Stop expecting us to provide you with this week's media class assignment. This is like the 3rd or 4th time you've asked us to "discuss" these WIDE OPEN, VAGUE "questions". If you have a REAL question, ask it.

    Scott
    Why the agitation ? It is an ambiguous topic .. he is hoping someone with more experience can give him some tips on getting great quality at a low size. This is something I struggle with to this day. I am ripping my entire blu ray collection to my plex server and I still dont have a recipe that I am completely happy with. Either the file is too large and does not stream well everywhere, its too small and I see artifacts etc.
    Quote Quote  
  17. It is really simple,
    1.either you choose the quality, choosing CRF number and encoding 1pass CRF, letting encoder come up with resulting size for your encoding
    or
    2. you choose 2pass VBR and average bitrate and encoder would compress your video into this chosen "box" , understand limited space, and then you will be speculating for days what actual average bitrate is the best for that movie, and with the other movie you will start speculating and testing all over again
    Quote Quote  
  18. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by Dunnie View Post
    Why the agitation
    Why are you asking questions about the tone of a



    THREE YEAR OLD POST?
    Quote Quote  
  19. Originally Posted by AlanHK View Post
    Originally Posted by Dunnie View Post
    Why the agitation
    Why are you asking questions about the tone of a



    THREE YEAR OLD POST?
    Not quite three years yet ... but point taken. BTW : Nice point size.
    Quote Quote  
  20. I have a question. I recently encoded The Dark Knight Trilogy using CRF encoding x265, using Staxrip software. I used the default value of CRF=22, but there was a problem. The Dark Knight was encoded with an average bitrate of 2300 kbps, while Batman Begins and The Dark Knight Rises were encoded with an average bitrate of approximately 1500, which is a very low quality. Hence I used CRF value 20 for the first and third movie and ultimately I got all the three movies around 2000 bitrate. Does this mean I will have to use different CRF values to obtain the same quality?
    Quote Quote  
  21. Originally Posted by knightplex View Post
    Does this mean I will have to use different CRF values to obtain the same quality?
    No, it means all three you originally encoded with the same CRF value already did have the same quality. The fact that they wound up with different average bitrates means nothing as different sources compress differently.

    If you really want them encoded with about the same bitrate (and wind up with differing qualities), then just run 2-pass encodes for the desired bitrate. If you want them all with the same quality, then do 1-pass CRF encodes.
    Last edited by manono; 7th Sep 2016 at 15:17.
    Quote Quote  
  22. No no no. I want them to end up with the same quality. I used CRF 22 for all the three movies (The source is untouched Bluray original disc), and ended with bitrates I mentioned. Also I could see that the two movies with low bitrates looked low quality compared to The Dark Knight which ended with a high bitrate and a better quality as perceived by the eye.
    Quote Quote  
  23. If all three were encoded with the same CRF and all other settings were the same for all three, the final bitrates are meaningless and all three videos should appear the same visually. If you didn't like that appearance, then use a lower CRF. Making them for the same bitrate isn't the way to give them all the same quality.

    I suppose it's possible the source Blu-Rays had wildly differing qualities, which might account for what you're seeing, but there's no way for someone reading your thread to know that. Maybe check out some reviews of the Blu-Rays to see if any reviewers noticed any differences in quality.
    Quote Quote  
  24. Okay, thanks. I'll try encoding again.
    Quote Quote  
  25. knightplex, another thought: don't look at the bitrate and other file information BEFORE you check out the quality of your rips by watching them. I can't begin to tell you how many times I have seen somebody complain about the quality of something simply because of doing something like that. They look at something like the bitrate of a file, see it is much lower than another file, and then somehow "see" a difference in the video quality because of their expectation the file will be of worse quality, then I look at the files and they are virtually indistinguishable.

    Another case in point, a looooong time ago when I was first ripping/transcoding videos, I tested various settings. Some of the resulting videos had 2-3x the bitrate & file size, but no noticeable increase in quality. There was a point where going too low decreased the quality, but that's a matter of trial & error with the video you're ripping/transcoding.

    Maybe there really is a difference in the visual quality of your rips, maybe not. All I'm saying is eliminate your expectations as a possibility of why you are seeing a difference first, then worry about bitrate.
    Quote Quote  
  26. Member
    Join Date
    Jan 2020
    Location
    istanbul
    Search Comp PM
    I'm aware that this thread is 3724 days old but no one mentioned the difference of keyframe placement (my favorite) so I wanted to add it.

    In 2-pass encoding, the encoder usually places the keyframes at the scene changes (points of high bitrate demand) so you can easily browse/skip scenes by keyframe navigation with players that support it (like MPC-HC). Also such videos are easy to edit/chop without re-encoding. You can even re-arrange scenes with stream-copy.

    In single pass, encoder does not scout for bitrate demand before encoding so it can not optimize according to scene changes.
    Quote Quote  
  27. In single pass, encoder does not scout for bitrate demand before encoding so it can not optimize according to scene changes.
    .. unless the encoder has a xy frame sized lookahead, which is usuall the case (nowadays).
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  28. Originally Posted by noisywan View Post
    In single pass, encoder does not scout for bitrate demand before encoding so it can not optimize according to scene changes.
    x264's single pass CRF mode does a very good job of placing keyframes on scene changes.

    http://www.chaneru.com/Roku/HLS/X264_Settings.htm#scenecut
    scenecut
    Default: 40
    Sets the threshold for I/IDR frame placement (read: scene change detection).
    x264 calculates a metric for every frame to estimate how different it is from the previous frame. If the value is lower than scenecut, a 'scenecut' is detected. An I-frame is placed if it has been less than --min-keyint frames since the last IDR-frame, otherwise an IDR-frame is placed. Higher values of scenecut increase the number of scenecuts detected.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!