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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th November 2013, 19:26   #1  |  Link
montreal.simo
Registered User
 
Join Date: Aug 2012
Posts: 17
Subme & aq-mode

Hi all,

I'm using x264 to encode two videos (one video with low motion- head talking, and a second is a part from movie). The command line is: x264 --preset ultrafast --tune zerolatency --subme xx --aq-mode yy .
I have too questions about Subme and Aq-mode parameters:

Subme:

Encoding the video for different subme value gives:

subme Bitrate PSNR
0 5417.87 38.796
1 3807.03 39.578
2 2727.20 38.681
3 2647.04 38.750
4 2639.97 38.754
5 2648.79 38.772
6 2786.14 38.836
7 2786.14 38.836

I'm wondering why subme 2 gives the worst quality? And subme 1 improves quality!!


aq-mode :

Encoding the head talking video (low motion) shows that using aq-mode 1 or 2 reduces bitrate and quality than aq-mode 0. But encoding the part of movie (high motion) shows that aq-mode increase bitrate and improves quality than aq-mode 0. Can someone explain it to me??

Thanks for help.
montreal.simo is offline   Reply With Quote
Old 9th November 2013, 19:35   #2  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
You're comparing different settings at different bitrates so your results are meaningless for the most part. CRF encoding does not guarantee constant quality over different settings.
sneaker_ger is offline   Reply With Quote
Old 9th November 2013, 19:36   #3  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by montreal.simo View Post
Subme:

Encoding the video for different subme value gives:

subme Bitrate PSNR
0 5417.87 38.796
1 3807.03 39.578
2 2727.20 38.681
3 2647.04 38.750
4 2639.97 38.754
5 2648.79 38.772
6 2786.14 38.836
7 2786.14 38.836

I'm wondering why subme 2 gives the worst quality? And subme 1 improves quality!!
It has been discussed here many, many times: It's pointless to compare the quality if the bitrate is not the same.
Groucho2004 is offline   Reply With Quote
Old 9th November 2013, 20:00   #4  |  Link
montreal.simo
Registered User
 
Join Date: Aug 2012
Posts: 17
I agree with you.
But, Im looking to the variation of both bitrate and quality for every subme value. My goal is to choose the right subme.
montreal.simo is offline   Reply With Quote
Old 9th November 2013, 20:07   #5  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by montreal.simo View Post
I agree with you.
But, Im looking to the variation of both bitrate and quality for every subme value. My goal is to choose the right subme.
There is no "right" subme value. The higher you set it, the better the quality will be (more or less) at a given bitrate.
If you want to compare the subme settings you have to adjust other settings (like CRF) to make sure the bitrate is the same. Or use 2 pass encoding.
Groucho2004 is offline   Reply With Quote
Old 9th November 2013, 22:05   #6  |  Link
montreal.simo
Registered User
 
Join Date: Aug 2012
Posts: 17
Quote:
Originally Posted by Groucho2004 View Post
There is no "right" subme value. The higher you set it, the better the quality will be (more or less) at a given bitrate.
If you want to compare the subme settings you have to adjust other settings (like CRF) to make sure the bitrate is the same. Or use 2 pass encoding.
I did adjust the CRF to fix the bitrate, the result is as below :
crf subme bitrate PSNR
25 0 5417.87 38.796
23 1 5445.89 40.759
21 2 5570.54 40.919
21 3 5468.91 40.955
21 4 5461.33 40.958
21 5 5463.10 40.972

the PSNR look fixed too ??
montreal.simo is offline   Reply With Quote
Old 9th November 2013, 22:17   #7  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by montreal.simo View Post
I did adjust the CRF to fix the bitrate, the result is as below :
crf subme bitrate PSNR
25 0 5417.87 38.796
23 1 5445.89 40.759
21 2 5570.54 40.919
21 3 5468.91 40.955
21 4 5461.33 40.958
21 5 5463.10 40.972

the PSNR look fixed too ??
Not sure what you mean by "fixed" but the trend in the table shows what was to be expected. I doubt that the numbers are going to help find your "right" value. The best way to judge quality is still just looking at the result.
Groucho2004 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.