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. |
27th February 2020, 06:51 | #1 | Link |
Registered User
Join Date: Aug 2005
Posts: 1,100
|
Number of Ref frames / amount of compression
Hello all!
I asked something similar last year, but I don't think I asked it very well So, I didn't quite get the answer that I THINK I need. In doing a 1 Pass ABR compression for a Blu-ray where there is VERY LITTLE compression being done. Say for example a file is being compressed from a size of 25 Gigs to 22 Gigs. The resulting encode will be around a 24,000 bitrate, which is pretty decent. Normally, I like to thrown in a couple of little 'Tweaks' such as me-hex and subme-6 so that I can activate both the Psy and Trellis settings and give them a little bump. With this in mind using a VeryFast setting, and YES I am aware of the parameters included in that preset, since the resulting encoded bitrate is pretty high, is the default ref-1 setting 'good enough' or would adding an additional 'Tweak' setting the ref frames higher (2-4) make any discernible visual difference in your opinions. In other words, should I just leave the ref-1 setting, or should I bother to increase the refs since the resulting bitrate will be fairly high? Thank you kindly for any thoughts and input. Again, I am asking for your OPINIONS based on the above. With such little compression at 1080p is there any necessity to increase the ref frames higher than the ref-1 that the preset calls for. I am only interested in whether you feel the picture quality would be affected/improved enough to bother. I know the ref frames are primarily a factor of compression, so with such little compression will it matter visually? Thanks! |
27th February 2020, 07:01 | #2 | Link |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
|
This kind of tuning is just not usually necessary. The rule of thumb is good:
1) Use the slowest preset you can stand 2) Use a CRF value (or 2 pass VBR) that gives you a suitable balance between size and quality If you do tune anything, tune the psychovisual options for your source. |
7th March 2020, 10:10 | #3 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
I agree, use a slower preset rather than tweak veryfast a lot. Unless you can handle something a bit slower but still need faster than the next preset down? You are already slowing veryfast down to enable psy and trellis, I would increase ref to 2 before doing your tweaks. Maybe you should simply switch to the fast preset?
The amount of compression does not significantly change the way settings trade speed for quality. Using only one ref while using subme 6 doesn't make a lot of sense, another ref would offer a better quality for speed tradeoff. Remember the original video is not 25 Gigs, it is 250 Gigs per hour (assuming 8 bit 1920x1080p24). The original bluray is already very compressed and the first step when re-encoding is to uncompress it.
__________________
madVR options explained |
10th March 2020, 22:50 | #4 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Reencoding to save ~15% file size seems pretty pointless to begin with. Better to just leave the video bitstream alone if possible.
Back when Doom9 was strapping and new, there were utilities that would reduce MPEG-2 encodes by 1-2 QP while preserving motion vectors, which was a pretty simple and very fast way to trim off up to maybe 20% in file size. Has anyone ever tried to do something similar for H.264? For Blu-ray, there are a lot of restrictions on the bitstream. So if one didn't need to preserve BD player compatibility, I can see a system that would just reencode B and b frames to save bits, passing through IDR and P frames, taking advantage of non-hierarchical B-frames to save some bits. |
10th March 2020, 23:30 | #5 | Link | ||
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
Quote:
Last edited by Sharc; 10th March 2020 at 23:43. |
||
12th March 2020, 00:56 | #6 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Yeah. Same basic principal applies. And other tricks are available to H.264 encodes, like CAVLC to CABAC conversion. Reencoding just B and b frames would allow for messing with reference lists, maybe even increasing the number of reference frames.
Could be a fun project, but a lot of work and I don't know who would have the time or budget for it. |
12th March 2020, 15:59 | #7 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
Last edited by Stereodude; 12th March 2020 at 16:01. |
|
12th March 2020, 21:02 | #8 | Link | |
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
The interesting aspect with the proposed alternatives is that one could possibly expect blazing encoding speeds without relying on expensive GPU (or CPU) hardware. Just guessing, I would assume that for low compression the quality can be quite good (similar experience as with former DVD-Shrink). Unfortunately I don't have the skills to develop such solutions. Last edited by Sharc; 12th March 2020 at 21:06. |
|
13th March 2020, 04:03 | #9 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
Hence my question about trying the same thing on H.264. |
|
|
|