Hi Guys,
I'm trying to understand the benefits of using the H.264 encoder.
For this purpose I use as an input an .avi file received from Sony MiniDV camcorder.
I encode it using both H.264 and MPEG4, with same bitrate anf fps.
Although the quality of H.264 looks better, the size of H.264 output file is always larger than the one of MPEG4.
Why is it? Shouldn't H.264 compress better? You can say that if I raise the bitrate of MPEG4 to receive the same quality as H.264 low birate, I will see the difference in file size.
But not! It doesn't happen either! For example, 384kbps file encoded in MPEG4 takes less space than 64 kbps file encoded in H.264.
Any ideas?
Thanks!
Offline








if you are using the last build of SUPER(C) for encoding, please provide the first 3 requested details:
http://www.w3exchange.com/t105-1-how-to … blems.html
drag and drop both rendered files in SUPER(C) and provide their MediaAnalysis details as well.
Offline
Here you go:
I use version v.2008 build30 (Mar,22,2008).
1.H.264 settings:
[Encoder]
Format=14
VidCodec=3
AudCodec=0
Encoder=0
VidBitr=0
AudBitr=4
VidScaleSize=5
MoreScaleSize=0
CustVWid=320
CustVHght=240
Cust1VWid=368
Cust1VHght=208
Cust2VWid=416
Cust2VHght=176
VidAspect=2
VidFPS=9
MoreFPS=0
Custfps=8
Cust1fps=16
Cust2fps=20
AudSample=6
AudChanl=1
VidDisable=0
AudDisable=0
VidCopy=0
AudCopy=0
Vidhq=0
Vidtq=1
Vidfasp=0
AudioSampleReference=0
AutoAudience=0
Target=0
TStarget=0
Theme=5
OutPutFolder=D:\Profiles\bsv014\Desktop\Video file examples\output\
SourceFolder=z:\
DSlogo=0
DSlogoMessg=*eRightSoft*
DSlogoFont=Vivaldi
DSlogoSize=28
DSlogoColor=10354879
DSlogoHlColor=16240383
DSlogoPos=4
DSJoinMux=1
DSMotion=-1
DSsmUD=12
DSfmUD=69
DSFH=0
DSFV=0
DSRevrs=0
DSTurning=-1
DSinvY=0
DSinvU=0
DSinvV=0
DSBW=0
DSFI=0
DSFO=0
DSFIsec=4
DSFOsec=03
DSInf=0
VidDeinterlace=0
BF=0
H264Stream=0
BFrames=2
EncodeDuration=0
ClosedGOP=0
GOPAuto=0
ManualGOP=15
AdjustVolume=1
EncodeVolume=6
SnapShotAt=4.3
VideoOffsetSec=3
EncDurationFor=10
CropTop=32
CropRight=0
CropButtom=32
CropLeft=0
PadColor=4670008
PadTop=32
PadRight=0
PadButtom=32
PadLeft=0
H264profile=0
H264level=1
FLVTag=
[RealProducer]
Path=C:\PROGRA~1\
Audience=0
EncodeProfile=1321
[GeneralOptions]
ShowHints=0
ShowWarnings=0
ShowCreditScreen=1
AlwaysOnTop=1
AnalyzeON=0
AviSynthON=0
PSPcnt=0
VOBcnt=10
SameSrcFolder=0
UnderScoreON=0
SameDateTimeON=0
LowerCaseON=0
[Player]
Brightness=0
Contrast=9
Hue=9
Saturation=9
FullScreen=0
Aspect43=0
Aspect169=0
Tiles=0
PlaySlow=0
PlayFast=0
Deinterlace=0
Flip=0
Mirror=0
TurnRight=0
TurnLeft=0
ShowLog=0
2.MPEG4 settings:
[Encoder]
Format=14
VidCodec=4
AudCodec=0
Encoder=0
VidBitr=11
AudBitr=4
VidScaleSize=5
MoreScaleSize=0
CustVWid=320
CustVHght=240
Cust1VWid=368
Cust1VHght=208
Cust2VWid=416
Cust2VHght=176
VidAspect=2
VidFPS=9
MoreFPS=0
Custfps=8
Cust1fps=16
Cust2fps=20
AudSample=6
AudChanl=1
VidDisable=0
AudDisable=1
VidCopy=0
AudCopy=0
Vidhq=0
Vidtq=1
Vidfasp=0
AudioSampleReference=0
AutoAudience=0
Target=0
TStarget=0
Theme=5
OutPutFolder=D:\Profiles\bsv014\Desktop\Video file examples\output\
SourceFolder=z:\
DSlogo=0
DSlogoMessg=*eRightSoft*
DSlogoFont=Vivaldi
DSlogoSize=28
DSlogoColor=10354879
DSlogoHlColor=16240383
DSlogoPos=4
DSJoinMux=1
DSMotion=-1
DSsmUD=12
DSfmUD=69
DSFH=0
DSFV=0
DSRevrs=0
DSTurning=-1
DSinvY=0
DSinvU=0
DSinvV=0
DSBW=0
DSFI=0
DSFO=0
DSFIsec=4
DSFOsec=03
DSInf=0
VidDeinterlace=0
BF=0
H264Stream=0
BFrames=2
EncodeDuration=0
ClosedGOP=0
GOPAuto=0
ManualGOP=15
AdjustVolume=1
EncodeVolume=6
SnapShotAt=4.3
VideoOffsetSec=3
EncDurationFor=10
CropTop=32
CropRight=0
CropButtom=32
CropLeft=0
PadColor=4670008
PadTop=32
PadRight=0
PadButtom=32
PadLeft=0
H264profile=0
H264level=1
FLVTag=
[RealProducer]
Path=C:\PROGRA~1\
Audience=0
EncodeProfile=1321
[GeneralOptions]
ShowHints=0
ShowWarnings=0
ShowCreditScreen=1
AlwaysOnTop=1
AnalyzeON=0
AviSynthON=0
PSPcnt=0
VOBcnt=10
SameSrcFolder=0
UnderScoreON=0
SameDateTimeON=0
LowerCaseON=0
[Player]
Brightness=0
Contrast=9
Hue=9
Saturation=9
FullScreen=0
Aspect43=0
Aspect169=0
Tiles=0
PlaySlow=0
PlayFast=0
Deinterlace=0
Flip=0
Mirror=0
TurnRight=0
TurnLeft=0
ShowLog=0
3. Input File details
General #0
Count : 186
Count of stream of this kind : 1
Kind of stream : General
StreamKindID : 0
Count of video streams : 1
Count of audio streams : 1
Count of text streams : 0
Count of chapter streams : 0
Codecs Video : Sony DV
Audio codecs : Sony DV
Complete name : D:\Profiles\bsv014\Desktop\Video file examples\cat.avi
Folder name : D:\Profiles\bsv014\Desktop\Video file examples
File name : cat
File extension : avi
Format : AVI
Format : AVI
Format/Info : Audio Video Interleave
Format/Family : RIFF
Format/Extensions : avi
Codec : AVI
Codec : AVI
Codec/Info : Audio Video Interleave
Codec/Family : RIFF
Codec/Extensions : avi
File size : 30966784
File size : 29.5 MiB
File size : 30 MiB
File size : 30 MiB
File size : 29.5 MiB
File size : 29.53 MiB
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate : 28940919
Bit rate : 29 Mbps
Video #0
Count : 84
Count of stream of this kind : 1
Kind of stream : Video
StreamKindID : 0
Codec : dvsd
Codec : Sony DV
Codec/Family : DV
Codec/Info : Sony Digital Video (DV) 525 lines at 29.97 Hz or 625 lines at 25.00 Hz
Codec/CC : dvsd
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Width : 720
Width : 720 pixels
Height : 576
Height : 576 pixels
Pixel Aspect Ratio : 0.938
Display Aspect ratio : 1.333
Display Aspect ratio : 4/3
Frame rate : 25.000
Frame rate : 25.000 fps
Standard : PAL
FrameCount : 214
Audio #0
Count : 67
Count of stream of this kind : 1
Kind of stream : Audio
StreamKindID : 0
Codec : dvsd
Codec : Sony DV
Codec/Family : DV
Codec/Info : Sony Digital Video (DV), audio part
Codec/CC : dvsd
3. PC details:
Speed = 3GHz
RAM=512MB
Available disc space: 8GB
OS: Windows XP SP2
4. MPEG4 rendered file:
General #0
Count : 187
Count of stream of this kind : 1
Kind of stream : General
StreamKindID : 0
Count of video streams : 1
Count of audio streams : 0
Count of text streams : 0
Count of chapter streams : 0
Codecs Video : MPEG-4 Visual
Complete name : D:\Profiles\bsv014\Desktop\Video file examples\output\cat.avi.MP4
Folder name : D:\Profiles\bsv014\Desktop\Video file examples\output
File name : cat.avi
File extension : mp4
Format : mp42
Format : MPEG-4
Format/Info : ISO 14496-1 version 2
Format/Family : MPEG-4
Format/Url : http://www.apple.com/quicktime/download/standalone.html
Format/Extensions : mp4
Codec : mp42
Codec : MPEG-4
Codec/Info : ISO 14496-1 version 2
Codec/Family : MPEG-4
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/Extensions : mp4
File size : 221928
File size : 217 KiB
File size : 217 KiB
File size : 217 KiB
File size : 217 KiB
File size : 216.7 KiB
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate : 207409
Bit rate : 207 Kbps
StreamSize : 4144
StreamSize : 4.05 KiB
StreamSize : 4 KiB
StreamSize : 4.0 KiB
StreamSize : 4.05 KiB
StreamSize : 4.047 KiB
Title : cat.avi.MP4
Movie name : cat.avi.MP4
Performer : created with SUPER(C).v2008.bld.30
Encoded date : UTC 2008-07-08 07:11:06
Tagged date : UTC 2008-07-08 07:11:06
Comment : 2008-07-08 10:11:08
Writing application : eRightSoft
Video #0
Count : 84
Count of stream of this kind : 1
Kind of stream : Video
StreamKindID : 0
ID : 1
Codec : MPEG-4V
Codec : MPEG-4 Visual
Codec/Family : MPEG-4V
Codec/CC : 20
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate mode : VBR
Bit rate : 193585
Bit rate : 194 Kbps
Width : 320
Width : 320 pixels
Height : 240
Height : 240 pixels
Display Aspect ratio : 1.333
Display Aspect ratio : 4/3
Frame rate : 25.000
Frame rate : 25.000 fps
FrameCount : 214
Bits/(Pixel*Frame) : 0.101
StreamSize : 217784
StreamSize : 213 KiB
StreamSize : 213 KiB
StreamSize : 213 KiB
StreamSize : 213 KiB
StreamSize : 212.7 KiB
Encoded date : UTC 2008-07-08 07:11:06
Tagged date : UTC 2008-07-08 07:11:06
5. H.264 rendered file:
General #0
Count : 187
Count of stream of this kind : 1
Kind of stream : General
StreamKindID : 0
Count of video streams : 1
Count of audio streams : 0
Count of text streams : 0
Count of chapter streams : 0
Codecs Video : AVC
Complete name : D:\Profiles\bsv014\Desktop\Video file examples\output\cat_h264.MP4
Folder name : D:\Profiles\bsv014\Desktop\Video file examples\output
File name : cat_h264
File extension : mp4
Format : mp42
Format : MPEG-4
Format/Info : ISO 14496-1 version 2
Format/Family : MPEG-4
Format/Url : http://www.apple.com/quicktime/download/standalone.html
Format/Extensions : mp4
Codec : mp42
Codec : MPEG-4
Codec/Info : ISO 14496-1 version 2
Codec/Family : MPEG-4
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/Extensions : mp4
File size : 4608199
File size : 4.39 MiB
File size : 4 MiB
File size : 4.4 MiB
File size : 4.39 MiB
File size : 4.395 MiB
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate : 4306728
Bit rate : 4307 Kbps
StreamSize : 6097
StreamSize : 5.95 KiB
StreamSize : 6 KiB
StreamSize : 6.0 KiB
StreamSize : 5.95 KiB
StreamSize : 5.954 KiB
Title : cat_h264.MP4
Movie name : cat_h264.MP4
Performer : created with SUPER(C).v2008.bld.30
Encoded date : UTC 2008-07-08 07:12:54
Tagged date : UTC 2008-07-08 07:13:07
Comment : 2008-07-08 10:13:08
Writing application : eRightSoft
Video #0
Count : 84
Count of stream of this kind : 1
Kind of stream : Video
StreamKindID : 0
ID : 201
Codec : avc1
Codec : AVC
Codec/Family : AVC
Codec/Info : H.264 (3GPP)
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : avc1
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate : 4301029
Bit rate : 4301 Kbps
Width : 320
Width : 320 pixels
Height : 240
Height : 240 pixels
Display Aspect ratio : 1.333
Display Aspect ratio : 4/3
Frame rate : 25.000
Frame rate : 25.000 fps
FrameCount : 214
Bits/(Pixel*Frame) : 2.240
StreamSize : 4602102
StreamSize : 4.39 MiB
StreamSize : 4 MiB
StreamSize : 4.4 MiB
StreamSize : 4.39 MiB
StreamSize : 4.389 MiB
Encoded date : UTC 2008-07-08 07:12:54
Tagged date : UTC 2008-07-07 07:13:04
MANY THANKS!
Offline








totti wrote:
4. MPEG4 rendered file:
General #0
Codec : MPEG-4
Codec/Info : ISO 14496-1 version 2
Codec/Family : MPEG-4
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/Extensions : mp4
File size : 221928
File size : 217 KiB
File size : 217 KiB
File size : 217 KiB
File size : 217 KiB
File size : 216.7 KiB
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate : 207409
Bit rate : 207 Kbps <---------
StreamSize : 4144
StreamSize : 4.05 KiB
StreamSize : 4 KiB
StreamSize : 4.0 KiB
StreamSize : 4.05 KiB
StreamSize : 4.047 KiB
Title : cat.avi.MP4
Movie name : cat.avi.MP4
Performer : created with SUPER(C).v2008.bld.30
Encoded date : UTC 2008-07-08 07:11:06
Tagged date : UTC 2008-07-08 07:11:06
5. H.264 rendered file:
Codec : avc1
Codec : AVC
Codec/Family : AVC
Codec/Info : H.264 (3GPP)
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : avc1
PlayTime : 8560
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 8s 560ms
PlayTime : 00:00:08.560
Bit rate : 4301029
Bit rate : 4301 Kbps <---------
Width : 320
Width : 320 pixels
Height : 240
Height : 240 pixels
Display Aspect ratio : 1.333
Display Aspect ratio : 4/3
Frame rate : 25.000
Frame rate : 25.000 fps
FrameCount : 214
Bits/(Pixel*Frame) : 2.240
StreamSize : 4602102
StreamSize : 4.39 MiB
StreamSize : 4 MiB
StreamSize : 4.4 MiB
StreamSize : 4.39 MiB
StreamSize : 4.389 MiB
As you may notice:
MPEG-4 encoded at 207 Kbps while the H.264 is encoded at 4301 Kbps
the ratio is 4301/207 = 20.77
MPEG-4 filesize is 216 Kb while the H.264 filesize is 4.4 Mb (4400 Kb)
the ratio is 4400/216 = 20.37
for a 20 times larger Vbitrate, the filesize is 20 times bigger.
check out this thread
http://www.w3exchange.com/p4447-2007-06 … html#p4447
Offline
Thanks 96crypt_mode.
Your explanation is clear.
But what remains unclear is why has the bitrate in H.264 encoding grown to 4301 kbps while I chose only 64 kbps?? You probably could see it in the settings file.
Thanks again for your time.
Offline