【GStreamer】在x264enc中设置profile级别

【目录】郭老二博文之:图像视频汇总

1、问题描述

在使用GStreamer生成h.264的rtmp流时,不知道怎么设置h.264的profile级别。默认一直是“high”:

video/x-h264, ... profile=(string)high, ...

2、解决方法

查看官网手册中,有如下解释
The H264 profile that is eventually used depends on a few settings. If “dct8x8” is enabled, then High profile is used. Otherwise, if “cabac” entropy coding is enabled or “bframes” are allowed, then Main Profile is in effect, and otherwise Baseline profile applies. The high profile is imposed by default, which is fine for most software players and settings, but in some cases (e.g. hardware platforms) a more restricted profile/level may be necessary. The recommended way to set a profile is to set it in the downstream caps.
意思是h264的profile级别是由一些设置

你可能感兴趣的:(视频,gstreamer,h.264)