Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Feb 2005
Posts: 149
|
Why is --qcomp 0.6 default for 2passes?
*** Look at post #49 at page 3
Well, after a lot of tests with real life video, anime and footage from PC game (Counter Strike), I really don't see any good reason for --qcomp 0.6 to be the default setting when doing 2 pass encode. There is a very unbalanced distribution of bits when --qcomp is at 0.6, producing good looking static and slow motion scenes, and very bad fast moving scenes. This would only be reasonable, when there are non high motion on the clip at all, but this is not real in 99% of cases. The high motion scenes are bad with --qcomp 0.6, unless you are using some overkill bitrate to make it look good, which is a waste, considering what better settings for 2passes like --qcomp 0.9 can do with much less bitrate. From my tests, --qcomp 0.9 could be easily a good default for 2passes. And I am actually using --qcomp 0.94. Can someone explain why --qcomp 0.6 is default for 2passes, what is the logic behind that? I mean, I want to know when is it better than something like --qcomp 0.9? I believe there are situations where 0.6 would be better than 0.9, but from what I've seen, they are the vast minority. Why make a default setting for the vast minority? Thanks, Simps Last edited by simps; 26th May 2009 at 08:05. Reason: rule 9 |
![]() |
![]() |
#2 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Because when you're watching a video, you aren't pausing it and looking at each frame--you're watching a video. And when watching a video, you won't notice artifacts as much in high-motion scenes.
If you're freeze-framing to compare things, qcomp 1 should be optimal. Also, the original choice of value (inherited, AFAIK, from ffmpeg's original ratecontrol) maximized PSNR on a selection of clips.
__________________
Follow x264 development progress | akupenguin quotes | x264 git status ffmpeg and x264-related consulting/coding contracts | Doom10 Last edited by Dark Shikari; 24th May 2009 at 19:36. |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: Feb 2005
Posts: 149
|
DS,
Looking at it frame by frame would make --qcomp 0.6 look even worst. I am not even talking about that. I am talking about watching a movie really. I have 2 sample encodes of the same movie, 2passes, with same bitrate in both files. In first sample encode, I have --qcomp 0.7, and the other I have --qcomp 0.94. When watching both files, I can easily see how bad the fast motion scene is on the one with --qcomp 0.7, where it looks good on the one with --qcomp 0.94. And the static and slow motion scenes look identical on both files. Again, given that (I can upload both files if you want but I'm sure you know about this very well), why 0.6 is default? |
![]() |
![]() |
#6 | Link |
Registered User
Join Date: Feb 2005
Posts: 149
|
For some reason I believe a higher --qcomp is better for high bitrates too? I don't see any reason for --qcomp 0.6 be default. That is a bad setting, that won't work right with 2passes under low and even mid bitrates. That setting only work if you are using some overkill bitrate, but for high and overkill bitrates, you might just disable everything too and it will still look good, so you can't base a default setting on high and overkill bitrate. I still don't get it.
Last edited by simps; 24th May 2009 at 19:40. |
![]() |
![]() |
#7 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,262
|
What new default do you suggest? You would need to test the suggest qcomp value carefully with various sources of different type (HD and SD, cartoon and real-life), at various bitrates (from very high to very low) and in combination with all the options available. Only then you could decide whether your new default is a better choice than the current default or not.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 24th May 2009 at 19:44. |
![]() |
![]() |
#8 | Link | |
Registered User
Join Date: Feb 2005
Posts: 149
|
Quote:
--qcomp 0.6 is just not ideal, and anyone can do its own test and proof it. I am trying to be constructive here. Don't get ofended please, I appretiate a lot your work. But 0.6 is a bad default, please consider changing it. |
|
![]() |
![]() |
#9 | Link | |
Registered User
Join Date: Feb 2005
Posts: 149
|
Quote:
|
|
![]() |
![]() |
#10 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,262
|
Quote:
It's not that easy to decide as you may expect. And you can be sure that the current default was chosen by the x264 developers for a good reason. So I think it's a bit overhasty to say that 0.6 is bad, unless you did a complete series of tests...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 24th May 2009 at 19:55. |
|
![]() |
![]() |
#12 | Link | |
Registered User
Join Date: Feb 2005
Posts: 149
|
Quote:
I have the time, and I will do A LOT of tests, with different sources, and different values of --qcomp for 2passes, and I will make a comparison thread here in doom9 with the frames and video file results. I will try to make it as good as I can, to aim to find a better default spot. I will do this just for the fun it, if the developers want to ignore it, I am fine with it too, but lets see what will come out of it. Again, just trying to help. |
|
![]() |
![]() |
#13 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
![]() |
|
![]() |
![]() |
#14 | Link | |
Registered User
Join Date: Feb 2005
Posts: 149
|
Quote:
I get the point of stelling some bits from high motion and the hole idea of --qcomp, I just think that the default is bad. I am not saying it should be 1 by default too, but 0.6 is bad. |
|
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Oct 2007
Posts: 1,060
|
Quote:
|
|
![]() |
![]() |
#16 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
|
|
![]() |
![]() |
#17 | Link | |
Registered User
Join Date: Oct 2007
Posts: 1,060
|
Quote:
|
|
![]() |
![]() |
#18 | Link | |
Registered User
Join Date: Feb 2005
Posts: 149
|
Quote:
You can have your peak limit set, and still work with a higher --qcomp. This is no issue at all. I am no expert on x264, so I am not sure if you can set your peak bitrate at current state. Some dev please help with this. Last edited by simps; 24th May 2009 at 20:15. |
|
![]() |
![]() |
#20 | Link | |
Registered User
Join Date: Oct 2007
Posts: 1,060
|
Quote:
That is what happens when you use high qcomp with high bitrate. I don't see how is that a different issue. When you raise qcomp, you're essentially telling x264 to use a lower Q for fast motions. If you've encoded a video using CRF, once you use a low enough CRF value, x264 is wasting a lot of bits. There is almost no different between a CRF 2 and a CRF 8 (both ridiculously low CRF values), but bitrate has increased 4x. |
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|