Set the H264 preset. It will affect encoding speed and compression ratio.
STDMETHOD SetH264Preset(BSTR bstr)
|
The value of bstr string is ultrafast superfast veryfast faster fast medium slow slower veryslow
For SetHwCodec(1) , you may use the following value. "slow" "medium" "fast" "hp" "hq" "bd" "ll" "llhq" "llhp" "lossless" "losslesshp"
VC++ Example:
CComQIPtr<IMP4Manager, &IID_IDirectMP4EncoderConfig> pProfile(mMP4EncoderFilter); pProfile->SetH264Preset(L"superfast"); pProfile->SetMp4VideoBitrate(4600000); pProfile->SetMp4AspectRatio(false); pProfile->SetMp4AudioBitrate(96000); pProfile->SetMp4AudioSampleRate(48000); pProfile->SetMp4AudioChannel(2); pProfile->SetMp4FrameRate(25); pProfile->SetMp4Resolution(1280,720); pProfile->SetTitle(L"My Title"); pProfile->SetAlbum(L"My Album"); pProfile->SetAuthor(L"My Author"); pProfile->SetComment(L"My Comment"); pProfile->SetCopyright(L"My Copyright");
|