i'm now using ipnc rdk 3.5,and trying to config the codec resolution.
In the mcfw usecase, i modified the file multich_tristream_lowpower.c as follows:
//change tristream 1080P-D1(1080P h.264 720x480 h.264 1080p jpeg) to 1080P h.264 720x576 h.264 1080p jpeg
/* Second stream */
pCameraOutPrm = &pCameraInstPrm->outParams[1];
pCameraOutPrm->dataFormat = SYSTEM_DF_YUV420SP_UV;
pCameraOutPrm->scEnable = FALSE;
pCameraOutPrm->scOutWidth = 720;
pCameraOutPrm->scOutHeight = 576;
pCameraOutPrm->standard = /*SYSTEM_STD_NTSC;*/SYSTEM_STD_PAL;
pCameraOutPrm->outQueId = 1;
and i also changed the stream env
fSetVideoSize(1, 1920, 1080);
fSetVideoSize(5, 1920, 1080);
fSetVideoSize(6, 720, 576);
fSetStreamConfig(0, 1920, 1080, codec_tpye[0], H264_1_PORTNUM);
fSetStreamConfig(1, 720, 576, codec_tpye[0], H264_2_PORTNUM);
fSetStreamConfig(2, 1920, 1080, codec_tpye[2], MJPEG_PORTNUM);
but i still got 720x480 h.264 stream from channel 1,using web and vlc
the following is some print log:
MultiCh_createTriStreamLowPwr : glbce disabled! res combo = 0 !!!!!!!!!!
[m3vpss ] CameraLink_tskMain, 472
[m3vpss ] CameraLink_tskMain, 489
[m3vpss ] 3894: CAMERA: Create in progress !!!
[m3vpss ] CameraLink_drvCreate:camera outqueues width=1920,height=1080
[m3vpss ] number output queues = 2
[m3vpss ] CameraLink_drvCreate:camera outqueues width=720,height=576
[m3video] 4371: ENCODE: Create in progress ... !!!
[m3video] 4435: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED ], bitrate = 8000 Kbps ...
[m3video] ENCLINK_H264:HEAPID:0 USED:13808
[m3video] 4542: ENCODE: Creating CH1 of 720 x 576, pitch = (720, 720) [PROGRESSIVE] [NON-TILED ], bitrate = 8000 Kbps ...
[host] IpcBitsInLink_tskMain:Entered
[host] 1096: IPC_BITS_IN : Create in progress !!!
[host] 1096: IPC_BITS_IN : ListMPOpen start !!!
[host] 1096: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_28] ...
[host] 1098: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_28] ...
[host] 1099: IPC_BITS_IN : ListMPOpen done !!!
[host] 1100: IPC_BITS_IN : System_linkGetInfo done !!!
[host] 1100: IPC_BITS_IN : Create Done !!!
[host] USECASE SETUP DONE
[host]
App_runDemo, 393
[m3vpss ] 4567: CAMERA: Start in progress !!!
[m3video] ENCLINK_H264:HEAPID:0 USED:11912
[m3vpss ] 4567: CAMERA: Start Done !!!
[m3video] 4648: ENCODE: Creating CH2 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED ], bitrate = 100 Kbps ...
[m3video] jpeg link width=1920,height=1080
[m3video] ENCLINK_JPEG:HEAPID:0 USED:4432
[m3video] 4649: ENCODE: All CH Create ... DONE !!!
[m3video] ENCLINK:HEAPID:0 USED:30472
[m3video] 4652: ENCODE: Create ... DONE !!!
[m3video] 4599: VSTAB : Alg Create Done !!!
[m3video] 4599: VSTAB : Create Done !!!
[m3video] 4653: IPC_BITS_OUT : Create in progress !!!
[m3video] 4655: IPC_BITS_OUT : Create Done !!!
it seems the encode params is right in m3video,so why i still got the 720x480 stream not 720x576?
plz give me some suggestions,thanks