Encoding to H264 High Profile

Jan 25, 2012 at 2:09 PM
Edited Jan 25, 2012 at 2:12 PM

Hi guys!

 

It's been a while since I started to covert my gameplay videos (recorded with Fraps) to MP4... but recently I realised that I could make even better compression with High Profile above L3.1...

So, a very simple question:

How can I encode/convert videos to H264 High@L4.1 ?

Can VidCoder do it?  If yes, please expain me what to do.

 

Thanks in advance.

Coordinator
Jan 25, 2012 at 3:40 PM
Edited Jan 25, 2012 at 3:41 PM

The "Level" is simply a by-product of the resolution and frame rate:

https://forum.handbrake.fr/viewtopic.php?f=6&t=19368

More data being thrown at the decoder requires a higher "level" player. Increasing this number doesn't necessarily make the video better.

You can get High Profile by choosing that option on the Video tab and making sure the Advanced tab is blank or has the options from the High Profile built-in VidCoder preset:

rc-lookahead=50:b-adapt=2

It should also default to High Profile if you leave both options blank.

Jan 31, 2012 at 1:50 PM
Edited Jan 31, 2012 at 1:51 PM

Hi, first of all thanks for the answer...

But I think I still don't fully understand...so let me show you my situation:

 

This is my source video file (Fraps):

General
Complete name                    : D:\Downloads\ACBSP 2012-01-30 01-53-43-85.avi
Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 1.89 GiB
Duration                         : 1mn 12s
Overall bit rate                 : 224 Mbps

Video
ID                               : 0
Format                           : Fraps
Codec ID                         : FPS1
Duration                         : 1mn 12s
Bit rate                         : 222 Mbps
Width                            : 1 280 pixels
Height                           : 960 pixels
Display aspect ratio             : 4:3
Frame rate                       : 35.000 fps
Color space                      : YUV
Bit depth                        : 8 bits
Bits/(Pixel*Frame)               : 5.165
Stream size                      : 1.87 GiB (99%)

Audio
ID                               : 1
Format                           : PCM
Format settings, Endianness      : Little
Format settings, Sign            : Signed
Codec ID                         : 1
Codec ID/Hint                    : Microsoft
Duration                         : 1mn 12s
Bit rate mode                    : Constant
Bit rate                         : 1 411.2 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 44.1 KHz
Bit depth                        : 16 bits
Stream size                      : 12.2 MiB (1%)
Interleave, duration             : 992 ms (34.73 video frames)

-------------------------------------------

And this is my encode:

General
Complete name                    : G:\ACBSP 2012-01-30 01-53-43-85.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 43.3 MiB
Duration                         : 1mn 12s
Overall bit rate                 : 5 015 Kbps
Encoded date                     : UTC 2012-01-30 18:18:41
Tagged date                      : UTC 2012-01-30 18:23:04
Writing application              : HandBrake 4368svn 2011120101

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L3.2
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Format settings, GOP             : M=1, N=16
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 1mn 12s
Bit rate mode                    : Variable
Bit rate                         : 5 000 Kbps
Width                            : 1 280 pixels
Height                           : 960 pixels
Display aspect ratio             : 4:3
Frame rate mode                  : Constant
Frame rate                       : 29.970 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.136
Stream size                      : 41.9 MiB (97%)
Writing library                  : x264 core 119
Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=dia / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                     : UTC 2012-01-30 18:18:41
Tagged date                      : UTC 2012-01-30 18:23:04
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 1mn 12s
Bit rate mode                    : Variable
Bit rate                         : 160 Kbps
Maximum bit rate                 : 197 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 1.38 MiB (3%)
Encoded date                     : UTC 2012-01-30 18:18:41
Tagged date                      : UTC 2012-01-30 18:23:04

---------------------------------------------

On the encoded video I hardly can see any quality loss, so I would call it almost lossless encode.

So, my question would be, can I make even better compression by maintaining this quality?

 

Coordinator
Jan 31, 2012 at 3:42 PM

At any given quality target it will be trying to minimize the file size. When more encoder features are turned on it does a better job of this (high profile). You're already using High Profile here so you should be doing just fine already.