Hi,
run run_mcfw_demo script in DM8168 board , choose 3 (capture + encode + display), each operation can only save one channel video file,but Two cameras are connected separately to 15 and 16 channels of DM8168 board ,What should I do?
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.
Hi,
run run_mcfw_demo script in DM8168 board , choose 3 (capture + encode + display), each operation can only save one channel video file,but Two cameras are connected separately to 15 and 16 channels of DM8168 board ,What should I do?
To save more than 1 channel you will have to modify:
/dvr_rdk/demos/mcfw_api_demos/mcfw_demo/demo_vcap_venc_vdis_bits_wr.c
void *VcapVenc_bitsWriteMain(void *pPrm)
if(pBuf->chnId== gVcapVenc_ctrl.fileWriteChn && fileWriteState == FILE_WRITE_RUNNING)
Change above line to save multiple channels that you require
Thank you!
How to modify "if (pBuf - > chnId = = gVcapVenc_ctrl. FileWriteChn && fileWriteState == FILE_WRITE_RUNNING) "line to save two channel video file?
The function VcapVenc_bitsWriteMain is very simple .You can go thru it to understand.
1. You have to open one file handle per channel you want to save.,
2. If channel id matches the channel you want to save , write into the corresponding file handle.