在使用GStreamer生成h.264的rtmp流时,不知道怎么设置h.264的profile级别。默认一直是“hige”: 查看官网手册中,有如下解释 打印结果: 但是安装手册说明,使用如下设置,将profile设置为baseline时,没有成功.
1、问题描述
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级别是由一些设置决定的。默认是high配置。
将 dct8x8 设置为false,可以将profile级别由 hige 降为 main。使用如下方法:g_object_set(G_OBJECT(m_data.h264enc),"dct8x8", false,NULL);
video/x-h264, ... profile=(string)main, ...
g_object_set(G_OBJECT(m_data.h264enc),"cabac", false,NULL); g_object_set(G_OBJECT(m_data.h264enc),"dct8x8", false,NULL); g_object_set(G_OBJECT(m_data.h264enc),"bframes", 0,NULL);
本网页所有视频内容由 imoviebox边看边下-网页视频下载, iurlBox网页地址收藏管理器 下载并得到。
ImovieBox网页视频下载器 下载地址: ImovieBox网页视频下载器-最新版本下载
本文章由: imapbox邮箱云存储,邮箱网盘,ImageBox 图片批量下载器,网页图片批量下载专家,网页图片批量下载器,获取到文章图片,imoviebox网页视频批量下载器,下载视频内容,为您提供.
阅读和此文章类似的: 全球云计算