Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Martin_Vanputten
Beginner
47 Views

H.264 Encoding Strange height

Hi everyone, weird issue. I've been playing with the encoding parameters in directshow and I have set the profile to Main = 77 and the level = 3.2.

This is great... high bitrate should produce a pretty good mp4 file. However the file turns out only to be 66px in height. If I set the parameters to auto then I get the full 1080 height.

What can cause this? I'm using the latest 2012 media sdk. Thanks!

Cheers.
0 Kudos
2 Replies
Martin_Vanputten
Beginner
47 Views

Incase anybody else comes across weird height resolutions when encoding with specific parameters, setting the profile to auto and then manipulating the level and other parameters put the height back to 1080 with very high bitrates.

Cheers.
Petter_L_Intel
Employee
47 Views

Hi Martin,

We tried to reproduce the scenario, resulting in wrong height for you, but could not. Did you modify the SDK 2012 encoder filter in any way that may cause this?

That said, for the case when using the SetParams interface to set profile or level etc., the sample code will ignore any specific parameter settings and instead use the parameters implied by the selected preset. If you want to override any of the presets just remove the last code line "CodecPreset::VParamsFromPreset..." from the function CopyEncoderToMFXParams in "mfx_video_enc_filter_utils.cpp".

Regards,
Petter
Reply