DearAll, In my usecase,I try to set Fps in runtime or creating time, both two way have no Effect(also no Err).
The chain is "srcLink -> ipcOutVpss-> ipcInVideo -> encLink -> ipcOutVideo -> ipcInVpss".
In runtime, the code is the following:
305 {
306 int tmpFrameRate = 10;
307 EncLink_ChFpsParams fpsPrm;
308 fpsPrm.targetFps = 1000 * tmpFrameRate;
309 fpsPrm.targetBitRate = 3*1000*1000;
310 printf("**** set encode link framerate %d\n", tmpFrameRate);
311 System_linkControl(encId, ENC_LINK_CMD_SET_CODEC_FPS, &fpsPrm, sizeof(fpsPrm), TRUE);
312 }
in the creating time, the code is the following:
211 encPrm.chCreateParams[i].defaultDynamicParams.inputFrameRate = 30;
212 encPrm.chCreateParams[i].defaultDynamicParams.targetFrameRate = 10;
however,the result is the same: the encoded data(H264) is 30fps, not 10fps!!!
Is something wrong with it?or some BUG with RDK3.0?or some workaround?
Pls show me some suggestions with it, Thanks!!!
The following is the detailed log:
[m3vpss ] 15029: NULL_SRC: Create in progress !!!
[host] @@@@@@@@@@@@@@@@@Can open file ./liveServer0.264
[host] open file ./liveServer0.264
[host] CHAINS_IPCBITS:Chains_ipcBitsRecvRtspServerFxn:Entered...
[host] 111111111111111
[host] CHAINS_IPCBITS:Chains_ipcBitsRecvRtspServerFxn:INFO: periodic print..
[host] save file ./liveServer0.264 printCnt-0 numBufs-0 len-0
[m3vpss ] 15057: NULL_SRC: Create Done !!!
[m3video] 15059: IPC_IN_M3 : Create in progress !!!
[m3vpss ] 15058: IPC_OUT_M3 : Create in progress !!!
[m3video] 15059: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] ...
[m3vpss ] 15059: IPC_OUT_M3 : Create Done !!!
[m3video] 15059: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] ...
[m3video] 15062: IPC_IN_M3 : Create Done !!!
[m3video] *7**[traceAlg] links_m3video/iva_enc/encLink_tsk.c_EncLink_tskMain_20!
[m3video] *6**[traceAlg] links_m3video/iva_enc/encLink_common.c_EncLink_codecCreate_1152!
[m3video] 15062: ENCODE: Create in progress ... !!!
[m3video] 15093: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [TILED ], bitrate = 3000 Kbps ...
[m3video] *5**[traceAlg] links_m3video/iva_enc/encLink_common.c_EncLink_codecCreateEncObj_819!
[m3video] *5.1**[traceAlg] links_m3video/iva_enc/encLink_common.c_enclink_codec_set_ch_alg_create_params_661:here has some level para to set!
[m3video] *5.2**[traceAlg] links_m3video/iva_enc/encLink_common.c_enclink_codec_set_ch_alg_create_params_693:level[0]!
[m3video] *5.3.1**[traceAlg] links_m3video/iva_enc/encLink_common.c_enclink_codec_set_ch_alg_default_dynamic_params_766!
[m3video] *5.3.2**[traceAlg] links_m3video/iva_enc/encLink_common.c_enclink_codec_set_ch_alg_default_dynamic_params_794: pChAlgDynPrm->targetBitRate[3000000]!
[m3video] *5.3.3**[traceAlg] links_m3video/iva_enc/encLink_common.c_enclink_codec_set_ch_alg_default_dynamic_params_795: pChAlgDynPrm->targetFrameRate[10000]!
[m3video] *4**[traceAlg] links_m3video/iva_enc/encLink_h264.c_EncLinkH264_algCreate_1237!
[m3video] *3**[traceAlg] links_m3video/iva_enc/encLink_h264.c_enclink_h264_set_static_params_638!
[m3video] *2**[traceAlg] links_m3video/iva_enc/encLink_h264.c_enclink_h264_set_static_params_662-level[51]!
[m3video] *1**[traceAlg] links_m3video/iva_enc/encLink_h264.c_enc_link_h264_create_196!
[m3video] *0**[traceAlg] links_m3video/codec_utils/src/alg_create.c_ALG_create_32!
[host] IpcBitsInLink_tskMain:Entered
[host] 922: IPC_BITS_IN : Create in progress !!!
[host] 922: IPC_BITS_IN : ListMPOpen start !!!
[host] 922: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_24] ...
924: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_24] ...
[host] 926: IPC_BITS_IN : ListMPOpen done !!!
[host] 928: IPC_BITS_IN : System_linkGetInfo done !!!
[host] 928: IPC_BITS_IN : Create Done !!!