H.264 Encoding Strange height

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.

~Marty
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

~Marty

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today