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 2nd September 2010, 22:37   #1  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
Strange values on log files.

Encoding parameters :
Code:
REM Set of max bitrate (ici le bitrate max)
set MAX_BR=40000

REM Set of Buffer (ici le buffer)
set BUF_BR=30000

REM 1ère passe
x264_x64.exe --profile "high" --preset "placebo" --tune %TUNING% --pass 1 --bitrate %2 --stats %STAT_FILE% --level "4.1" --qpmin 0 --vbv-maxrate %MAX_BR% --vbv-bufsize %BUF_BR% --keyint 24 --min-keyint 2 --mvrange 511 --ref 4 --bframe 3 --slices 4 --b-pyramid "strict" --open-gop "bluray" --fade-compensate 0.7 --subme 9 --trellis 1 --me "umh" --aq-mode 2 --aud --nal-hrd "vbr" --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --videoformat "ntsc" --sar 1:1 --qpfile %CHAPTERS% --threads 0 --thread-input --output NUL %E_SRC% 2> %LOG_FILE_1%

REM 2ème passe
x264_x64.exe --profile "high" --preset "placebo" --tune %TUNING% --pass 2 --bitrate %2 --stats %STAT_FILE% --level "4.1" --qpmin 0 --vbv-maxrate %MAX_BR% --vbv-bufsize %BUF_BR% --keyint 24 --min-keyint 2 --mvrange 511 --ref 4 --bframe 3 --slices 4 --b-pyramid "strict" --open-gop "bluray" --fade-compensate 0.7 --aq-mode 2 --aud --nal-hrd "vbr" --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --videoformat "ntsc" --sar 1:1 --qpfile %CHAPTERS% --threads 0 --thread-input --output %E_DST% %E_SRC% 2> %LOG_FILE_2%
Here log of 1rst pass :
Code:
avs [info]: 1920x1080p 1:1 @ 24000/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 4.1
x264 [info]: frame I:12956 Avg QP: 1.52  size:538653
x264 [info]: frame P:79103 Avg QP: 3.88  size:369120
x264 [info]: frame B:171635 Avg QP:12.07  size: 32754
x264 [info]: consecutive B-frames:  4.9% 11.6% 16.2% 67.3%
x264 [info]: mb I  I16..4: 47.1% 18.8% 34.1%
x264 [info]: mb P  I16..4: 14.1% 21.7% 11.5%  P16..4: 14.1%  7.4%  4.6%  0.3%  1.2%    skip:25.1%
x264 [info]: mb B  I16..4:  0.7%  1.3%  0.3%  B16..8: 26.6%  7.7%  3.2%  direct: 5.5%  skip:54.7%  L0:42.6% L1:42.8% BI:14.6%
x264 [info]: 8x8 transform intra:40.2% inter:55.9%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 89.4% 70.4% 69.1% inter: -16.5% -14.2% -9.6%
x264 [info]: i16 v,h,dc,p: 28%  9% 47% 15%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 28%  6%  6%  7%  6%  7%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 12% 14%  9% 10% 10%  9%  9% 11%
x264 [info]: i8c dc,h,v,p: 65% 15% 14%  6%
x264 [info]: Weighted P-Frames: Y:4.0%
x264 [info]: ref P L0: 76.0%  8.7% 13.1%  2.1%  0.1%
x264 [info]: ref B L0: 93.8%  6.2%
x264 [info]: ref B L1: 95.0%  5.0%
x264 [info]: kb/s:30404.16

encoded 263694 frames, 16.26 fps, 30404.16 kb/s
Log 2nd pass :
Code:
avs [info]: 1920x1080p 1:1 @ 24000/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 4.1
x264 [info]: frame I:12956 Avg QP: 1.09  size:535719
x264 [info]: frame P:79103 Avg QP: 2.61  size:411363
x264 [info]: frame B:171635 Avg QP:13.50  size: 28142
x264 [info]: consecutive B-frames:  4.9% 11.6% 16.2% 67.3%
x264 [info]: mb I  I16..4: 50.4%  5.4% 44.2%
x264 [info]: mb P  I16..4: 13.2%  8.5% 17.6%  P16..4: 19.2% 10.9%  4.6%  0.3%  0.9%    skip:24.9%
x264 [info]: mb B  I16..4:  0.4%  0.7%  0.2%  B16..8: 28.2%  7.8%  3.0%  direct: 6.0%  skip:53.6%  L0:43.2% L1:43.8% BI:13.1%
x264 [info]: 8x8 transform intra:18.6% inter:17.2%
x264 [info]: direct mvs  spatial:99.6% temporal:0.4%
x264 [info]: coded y,uvDC,uvAC intra: 88.2% 71.0% 69.8% inter: -15.3% -14.1% -11.2%
x264 [info]: i16 v,h,dc,p: 27%  8% 51% 14%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 15% 30%  6%  6%  6%  6%  7%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 13% 19%  8%  9%  9%  8%  9% 10%
x264 [info]: i8c dc,h,v,p: 65% 15% 14%  6%
x264 [info]: Weighted P-Frames: Y:4.2%
x264 [info]: ref P L0: 80.0% 11.9%  7.0%  1.1%  0.0%
x264 [info]: ref B L0: 94.3%  5.7%
x264 [info]: ref B L1: 95.2%  4.8%
x264 [info]: kb/s:32231.34

encoded 263694 frames, 3.59 fps, 32231.34 kb/s
There is 2 things i find unusual, so i was wondering is things were all right.
- It's the first time i see so much QP differences between I, P and B. Usualy, they are closer.
- Are negatives values normal for inter % ?
jpsdr is offline   Reply With Quote
Old 2nd September 2010, 23:14   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Those negative % numbers don't look kosher to me. Not sure about the QP values, the difference looks "striking" at least.

But you are using both, insane settings (--preset "placebo") and unofficial patches (--fade-compensate 0.7). So "unexpected" things might happen

More important, does the actual output look "wrong" somehow? Anyway, I'd recommend to try a "vanilla" build and compare the results...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 2nd September 2010 at 23:32.
LoRd_MuldeR is offline   Reply With Quote
Old 3rd September 2010, 08:48   #3  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
No, i've quickly checked the file, and didn't see anything wrong...
I've encoded others files with same settings, and get QP around 5/6/13, and no negative % values.
The only thing i that that file is a 4/3 video, so with black borders left and right, the other files with 'correct' values were all 16/9 videos.
I should have this evening the result of a second 4/3 video file i'm encoding right now, and see if i'm still having these unusual values.
jpsdr is offline   Reply With Quote
Old 5th September 2010, 14:46   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Fixed?
http://git.videolan.org/gitweb.cgi?p...3516142da62e98
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR 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 02:57.


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