Opened 8 years ago

Last modified 8 years 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 by Carl Eugen Hoyos, 8 years ago

Component: undeterminedavcodec
Keywords: raspbery pi openmax rpi removed

comment:2 by m_doe, 8 years ago

Summary: Allow h264 profile selection in ffmpegAllow h264 profile selection in ffmpeg when using omx

comment:3 by m_doe, 8 years ago

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.