GNOME Bugzilla – Bug 767104
applemedia: vtenc: Register a hardware-only vtenc_h264_hw element on OSX
Last modified: 2016-06-02 08:22:52 UTC
We ran into the use case where we'd like to fall back to x264enc if vtenc can't actually encode using the hardware encoder on OSX. This patch adds a vtenc_h264_hw element that would fail to negotiate if hardware resources couldn't be acquired. We can then catch this, and replace vtenc_h264_hw with v264enc (which is much faster than the vtenc_h264 software encoder).
Created attachment 328879 [details] [review] applemedia: vtenc: Register a hardware-only vtenc_h264_hw element on OSX Similar to vtdec_hw, this commit adds a vtenc_h264_hw element that fails caps negotiation unless a hardware encoder could actually be acquired. This is useful in situations where a fallback to a software encoder other than the vtenc_h264 software encoder is desired (e.g. to x264enc).
Review of attachment 328879 [details] [review]: Looks good to me
Attachment 328879 [details] pushed as ab70d79 - applemedia: vtenc: Register a hardware-only vtenc_h264_hw element on OSX