Opened 14 months ago

Last modified 14 months ago

#5798 new enhancement

Allow h264 profile selection in ffmpeg when using omx

Reported by: m_doe Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: omx
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I've been testing omx hardware accelerated encoding on the Pi and it seems that the encoding profile is hard coded to H264 High 4.0. Would it be possible to have a selectable main profile added?

Thank you.

M

Change History (3)

comment:1 Changed 14 months ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords raspbery pi openmax rpi removed

comment:2 Changed 14 months ago by m_doe

  • Summary changed from Allow h264 profile selection in ffmpeg to Allow h264 profile selection in ffmpeg when using omx

comment:3 Changed 14 months ago by m_doe

From my own investigation it has become clear that the OMX encoder in it's current form will only ever output H264 High 4.0 unless the encoder is explicitly told to use an alternative profile using OMX_VIDEO_PARAM_AVCTYPE.

The encoder will also only support constant bitrate using a baseline profile, but not main or high. CBR can be achieved with the OMX_VIDEO_PARAM_BITRATETYPE. If this is not applied the encoder is essentially hard coded to run OMX_Video_ControlRateVariable, i.e. variable bit rate output.

Note: See TracTickets for help on using tickets.