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.

Audio Encode demo in DVR-RDK3.50

Hi,

I have test.pcm file (Signed 16 bit Little Endian, 48000 Hz sample rate, stereo) created using arecord. I have also verified test.pcm using aplay and its working fine. Then I ran audio encode demo provided in DVR-RDK3.50.00.05.

But I am getting followring error.

AUDIO: ENC -> Rpe_create failed, status: Invalid Create Params for Xdm algorithm(-1106)

Is there any parameter which i m entering wrong ? Find log for the same


 =========
 Main Menu
 =========

 1: VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
 2: VCAP + VENC        + VDIS  - SD Encode ONLY
 3: VCAP + VENC        + VDIS  - HD Encode ONLY
 4:               VDEC + VDIS  - SD/HD Decode ONLY

 e: Exit

 Enter Choice: 5
--------------- CHANNEL DETAILS-------------
Capture Channels => 16
Disp Channels => 16
-------------------------------------------
 0: SYSTEM: System Common Init in progress !!!
 1: SYSTEM: IPC init in progress !!!
 16: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
 16: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
 16: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
 16: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
 16: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
 19: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
 21: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
 23: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
 23: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
 24: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
 25: SYSTEM: Notify register to [DSP] line 0, event 15 ... 
 26: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 
 27: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 
 28: SYSTEM: IPC init DONE !!!
 29: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
 32: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
 34: SYSTEM: ListElem Shared Addr = 0x4088ff80
 35: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
 38: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
 40: SYSTEM: ListElem Shared Addr = 0x408ada80
 42: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
 44: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
 46: SYSTEM: ListElem Shared Addr = 0x408eeb80
 47: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
 50: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
 52: SYSTEM: ListElem Shared Addr = 0x40912400
 53: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
 56: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
 58: SYSTEM: ListElem Shared Addr = 0x40935700
 76: SYSTEM: System Common Init Done !!!
 [host] HDMI Ctrl :Initializing
 [host] HDMI Ctrl :Initialized
 [host] HDMI Ctrl :Sink Connected
 102: MCFW  : CPU Revision [ES1.1] !!! 
 102: MCFW  : Detected [(null)] Board !!! 
 102: MCFW  : Base Board Revision [DVR] !!! 
 102: MCFW  : Daughter Card Revision [DVR] !!! 
**********************MultiCh_createVcapVdis******************************
SHABBIR: pCaptureInstPrm->vipInstId: 2
 [m3vpss ]  92428: CAPTURE: Create in progress !!!
 [m3vpss ]  92460: CAPTURE: VIP1 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! 
 [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 58 (58)
 [m3vpss ]  UTILS: DMA: 0 of 4: Allocated PaRAM = 58 (0x49004740)
 [m3vpss ]  UTILS: DMA: 1 of 4: Allocated PaRAM = 64 (0x49004800)
 [m3vpss ]  UTILS: DMA: 2 of 4: Allocated PaRAM = 65 (0x49004820)
 [m3vpss ]  UTILS: DMA: 3 of 4: Allocated PaRAM = 66 (0x49004840)
 [m3vpss ] CAPTURE::HEAPID:0	USED:328
 [m3vpss ] CAPTURE::HEAPID:4	USED:24422400
 [m3vpss ]  92566: CAPTURE: Create Done !!!
 [m3vpss ]  92567: DISPLAY: Create in progress !!!
 [m3vpss ]  92568: DISPLAY: Create Done !!!
 [m3vpss ]  92570: DISPLAY: Start in progress !!!
 [m3vpss ]  92627: DISPLAY: Start Done !!!
 [m3vpss ]  92627: DISPLAY: HDDAC(BP0) : 35 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) !!! 
 [m3vpss ]  92627: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 0, HDDAC(BP0) 0, DVO2(BP1) 0, SDDAC(SEC1) 0 
 [m3vpss ]  92627: SYSTEM  : FREE SPACE : System Heap      = 67960 B, Mbx = 10239 msgs) 
 [m3vpss ]  92628: SYSTEM  : FREE SPACE : SR0 Heap         = 9365888 B (8 MB) 
 [m3vpss ]  92628: SYSTEM  : FREE SPACE : Frame Buffer     = 216372096 B (206 MB) 
 [m3vpss ]  92628: SYSTEM  : FREE SPACE : Bitstream Buffer = 211812224 B (201 MB) 
 [m3vpss ]  92628: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON 
 [m3vpss ]  92628: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON 
 ## Interface is 1 [0:DVI, 1:HDMI]
 [m3vpss ]  94426: CAPTURE: Start in progress !!!
 [m3vpss ]  94426: CAPTURE: Start Done !!!

 =============
 Run-Time Menu
 =============

 1: Capture Settings
 2: Encode  Settings
 3: Decode  Settings
 4: Display Settings
 5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
 6: Change Playback Channel <valid only if capture/playback is active>
 7: Audio encode demo <File In/Out>
 8: Audio decode demo <File In/Out>

 i: Print detailed system information
 s: Core Status: Active/In-active
 f: Switch IVA Channel Map

 e: Stop Demo

 Enter Choice:  [m3vpss ]  94526: CAPTURE: Enabled Time Stamping !!!


 =============
 Run-Time Menu
 =============

 1: Capture Settings
 2: Encode  Settings
 3: Decode  Settings
 4: Display Settings
 5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
 6: Change Playback Channel <valid only if capture/playback is active>
 7: Audio encode demo <File In/Out>
 8: Audio decode demo <File In/Out>

 i: Print detailed system information
 s: Core Status: Active/In-active
 f: Switch IVA Channel Map

 e: Stop Demo

 Enter Choice:  DEMO: HDMI TV/Monitor connected !!!
 DEMO: TV Detected - HDMI interface !!!
 DEMO: INFO : Resolution set to 1080P60 !!!


 =============
 Run-Time Menu
 =============

 1: Capture Settings
 2: Encode  Settings
 3: Decode  Settings
 4: Display Settings
 5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
 6: Change Playback Channel <valid only if capture/playback is active>
 7: Audio encode demo <File In/Out>
 8: Audio decode demo <File In/Out>

 i: Print detailed system information
 s: Core Status: Active/In-active
 f: Switch IVA Channel Map

 e: Stop Demo

 Enter Choice: 7



 AUDIO: Enable Encode <Y/N>: Y

 AUDIO: Enter input PCM file name <absolute path>: 48000/home/root/dm8168/test.pcm

 AUDIO: Enter output file name <absolute path>: /home/root/dm8168/
 
 Enter encode Type <0 - AAC-LC, 1 - G711> [Valid values, 0 .. 1] : 0
 
 Entered value = 0 
 
 
 Enter AUDIO: bitrate <value as per encode requirement> [Valid values, 24000 .. 800000] : 800000
 
 Entered value = 800000 
 
 
 Enter AUDIO: num of audio channels [Valid values, 1 .. 2] : 2
 
 Entered value = 2 
 
 
 Enter AUDIO: Sample Rate [Valid values, 16000 .. 48000] : 48000
 
 Entered value = 48000 
 
DSP_RPE_AUDIO_ENABLE is defined
AUDIO: ENC Handle 2D4008, Int Handle 2D4014
AUDIO: ENC -> bitrate 800000 inputBitsPerSample 16, sampleRate - 48000, numberOfChannels - 2...


audio encode system starts successfully

 =============
 Run-Time Menu
 =============

 1: Capture Settings
 2: Encode  Settings
 3: Decode  Settings
 4: Display Settings
 5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
 6: Change Playback Channel <valid only if capture/playback is active>
 7: Audio encode demo <File In/Out>
 8: Audio decode demo <File In/Out>

 i: Print detailed system information
 s: Core Status: Active/In-active
 f: Switch IVA Channel Map

 e: Stop Demo

 Enter Choice: AUDIO: ENC -> Rpe_create failed, status: Invalid Create Params for Xdm algorithm(-1106)
return from 211
return from line 307
AENC Create failed...........

********Encode APP Task Exitting....


 =============
 Run-Time Menu
 =============

 1: Capture Settings
 2: Encode  Settings
 3: Decode  Settings
 4: Display Settings
 5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
 6: Change Playback Channel <valid only if capture/playback is active>
 7: Audio encode demo <File In/Out>
 8: Audio decode demo <File In/Out>

 i: Print detailed system information
 s: Core Status: Active/In-active
 f: Switch IVA Channel Map

 e: Stop Demo

 Enter Choice: 

Thanks in advance,

Shabbir Limdiwala