avcodec ignores profile when using ffmpeg C API
|Reported by:||TheSHEEEP||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
I first posted this on stackoverflow as I thought this was my mistake (maybe it is), but was encouraged that this might be a bug in ffmpeg.
I am encoding an h264 mp4 in code using the latest ffmpeg libraries on Windows. I definitely set the profile property of the AVCodecContext to FF_PROFILE_H264_CONSTRAINED_BASELINE.
However, no matter what I set the profile property to, the video always ends up using the "High" profile instead of "Constrained Baseline".
As the command line "-profile:v baseline" works, this is either a bug in the libraries. Or something else must be set from the user, in addition to the profile. In the latter case, this must definitely be communicated to people using this. Like me ;)
See the link for more info:
I have also attached the *.cpp that includes the functions used to encode the video.