你好。
目前使用的是DVRRDK_04.00.00.03,其默认是采用的H.264/AVC格式;请问要实现H.264/SVC编码,需要注意些什么,能提供相应的DEMO;谢谢。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好,
建议阅读一下h264enc的user guide,搜索SVC关键字。下面是IPNC RDK里面的相关配置,你可以参考一下:
if (StreamPreset == ALG_VID_ENC_PRESET_SVC_AUTO)
{
staticParams->videnc2Params.encodingPreset = XDM_USER_DEFINED;
staticParams->interCodingParams.interCodingPreset =
IH264_INTERCODING_HIGH_SPEED;
staticParams->interCodingParams.meAlgoMode =
IH264ENC_MOTIONESTMODE_HIGH_SPEED;
staticParams->intraCodingParams.intraCodingPreset =
IH264_INTRACODING_HIGH_SPEED;
staticParams->transformBlockSize = IH264_TRANSFORM_8x8 ;
staticParams->svcCodingParams.svcExtensionFlag =
IH264_SVC_EXTENSION_FLAG_ENABLE;
staticParams->referencePicMarking = IH264_LONG_TERM_PICTURE;
staticParams->numTemporalLayer = IH264_TEMPORAL_LAYERS_4;
}
你好,
IPNC RDK和DVR RDK使用的是同样的IVAHD H264enc编码库,相应的参数配置可以参考。
正如我第一个回答的那样,更多的信息请到h264enc user guide里面查看。如果你不知道文档在哪里,请参考ti_tools\codecs\REL.500.V.H264AVC.E.IVAHD.02.00.06.00\500.V.H264AVC.E.IVAHD.02.00\IVAHD_001\Docs。
谢谢解答。
另外请问:
DVR RDK04.00.00.03 中对SVC的支持相关配置:
/*Note: Enabling this flag adds svc enxtension header to the stream, not all decoders
are generally able to play back such a stream. */
/* Needs to be enabled to IH264_SVC_EXTENSION_FLAG_ENABLE for the
svc extension headers to be present in the stream*/
/*!!! Note: This flag needs to be enabled for the temporalId to be parsed
out from the stream.*/
staticParams->svcCodingParams.svcExtensionFlag = algCreateParams->enableSVCExtensionFlag;
按照上面的说法应该是只要将svcExtensionFlag设置成 IH264_SVC_EXTENSION_FLAG_ENABLE 便能使能SVC编码。但是编码出来的格式仍然AVC。
请问如若需要使能SVC还需要做哪些配置?是否有相关的参考代码,谢谢。
你好,
请参考我在下面讨论中的回答。虽然解码器看到的是AVC,但实际码流已经按照SVC-T来编码了。
http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/t/121513.aspx