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.

system block at ack message queue get

Other Parts Discussed in Thread: TVP5158

Hi,

I am working on rdk 3.0 and run our decode display usecase. We delete and recreate decode link when the decode error happen, but sometimes the system stuck at wait get ack message after I sent DEC_LINK_CMD_DELETE_CHANNEL command. I trace code it is stuck at following and system always block in this line.

status = MessageQ_get(gSystem_ipcObj.selfAckMsgQ, (MessageQ_Msg*)&pAckMsg, timeout);

Does any reason cause this happen? How can I debug this issue?

Thanks,

Jacson

  • Hi

    I find I can't get IpcBitsOutLink_getEmptyVideoBitStreamBufs successfully before I send decoder link delete command.

    Does any reason cause this happen?

    Jacson

  • Do you see any assert of error msg from remote_debug_client when this condition occurs ? Share the console logs when this issue happens. Based on the fact that you cant get IpcBitsOutLink_getEmptyVideoBitStreamBufs it looks like video m3 has crashed  and this should be seen in the logs. Another possibility is HDVICP is hung. Your board already had issues with HDVICP hang . Is this on the same board or is it a different board ?

  • Hi Badri Narayanan,

    Thanks for your reply.

    I got decode error message in this case, we do delete and recreate decode link when decode error occurs, the system will block about running 2~5 minutes without any assert message. This moment is no empty bitstream buffer available and do delete decode link will be fail (no ack response). Decode error message show below. We know the bitstream have some problem but the ipcam is possible send out bad bitstream. we want NVR system can't be hang or reboot. I can give you the bitstream and could you help us to find method prevent system hang when receive bad bitstream. we are very appreciation.

    Once I upgrade uboot to make m3 clock running up to 280MHz, we sometime occur message queue blocking after one night stability test, no decode error and no assert message seeing, this happen in different board, I don't know 280MHz is issue or not. Do you have any suggestion how to debug this?

    Thanks,

    Jacson

     [m3video]  1027201: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1027201: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1028273:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1028273:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    19475: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0] [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!


     [host]
    19479: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    19482: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[7]
     [m3video] 1028363: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1028363: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1028363: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1028366: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1028366: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1028371: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1028371: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1028801:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1028801:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    20008: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0]

     [host]
    20011: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    20014: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[6] [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!
     [m3video] 1028896: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1028896: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1028896: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1028898: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1028898: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1028903: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1028903: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1028973:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1028973:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    20175: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0] [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!


     [host] IPC_BITSOUTLINK:!WARNING!.Commands not being processed by link.TimeSinceLastMsgProcess:3

     [host]
    20179: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    20182: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[7]
     [m3video] 1029063: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1029063: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1029063: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1029066: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1029066: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1029071: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1029071: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1029321:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1029321:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 1029350:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1029351:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    20541: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0]

     [host]
    20543: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    20546: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[5]
     [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!
     [m3video] 1029429: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1029429: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1029429: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1029430: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1029430: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1029435: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1029435: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1029624:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1029624:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]

     [m3video]  1027201: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1027201: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1028273:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1028273:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    19475: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0] [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!


     [host]
    19479: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    19482: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[7]preview task over 30ms delay=-18
     [m3video] 1028363: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1028363: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1028363: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1028366: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1028366: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1028371: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1028371: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1028801:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1028801:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    20008: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0]

     [host]
    20011: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    20014: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[6] [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!
    preview task over 30ms delay=-21
     [m3video] 1028896: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1028896: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1028896: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1028898: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1028898: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1028903: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1028903: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1028973:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1028973:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    20175: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0] [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!


     [host] IPC_BITSOUTLINK:!WARNING!.Commands not being processed by link.TimeSinceLastMsgProcess:3

     [host]
    20179: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    20182: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[7]preview task over 30ms delay=-18
     [m3video] 1029063: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1029063: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1029063: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1029066: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1029066: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1029071: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1029071: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1029321:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1029321:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 1029350:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1029351:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]


     [host]
    20541: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Sent for chId[0]

     [host]
    20543: IPCBITSOUT:Link[30000018]:

     [host] Flush Frame Received for chId[0]

     [host]
    20546: IPCBITSOUT:Link[30000018]:

     [host] Ch buffer delete completed for chId[0].Total Time[5]preview task over 30ms delay=-4
     [m3video] DEC : Delete CH0 Got the Dummy Object queued !!!
     [m3video] DEC : Delete CH0, Dummy Object queued !!!
     [m3video] 1029429: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame received for ch[0]
     [m3video]  1029429: DECODE: CH0:
     [m3video] Queing flush Frame to processQ
     [m3video]  1029429: DECODE: CH0:
     [m3video] Flush Frame Received in ProcessQue
     [m3video]  1029430: DECODE: CH0:
     [m3video] Freeing flush Frame
     [m3video] 1029430: IPCBITSIN:Link[1000001a]:
     [m3video] Flush Frame freed for ch[0]
     [m3video] DECLINK_JPEG:HEAPID:0    USED:12616
     [m3video]  1029435: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  1029435: DECODE: CH0: Decoder Create CH done!!!
     [m3video] 1029624:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[206]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 1029624:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]

  • Hi

    The bitstream file size about 60MBytes, I always insert file error. How can I give you the bitstream?

    Thanks,

    Jacson

  • Hi Badri,

    I place the bitstream file at following link, the file content is "length bitstream length bitstream...".

    https://drive.google.com/file/d/0B-paQ7KRgGzvcFFwTzl5SW54VkE/edit?usp=sharing

    Thanks,

    Jacson

  • I have run the stream for more than 24 hours on RDK 4.1 and don't see any hang. Pls check with decode_display mcfw demo with RDK 4.1 at your end and check if you are able to recreate the issue

  • Hi Badri Narayanan,

    Thanks for your help.

    Do you try only one channel decode? Could you try 4 channel decode using same bitstream? This issue can be easy reproduce at 4 channel decode.

    Thanks for your hard working,

    Jacson

  • I have run the stream for 16 channels for last 4 days on DVR RDK decode display demo and no issue is seen. Are you seeing hang with DVR RDK decode display demo in RDK 4.1 release at your end ?

  • Hi Badri,

    Thanks for your try.

    Can we only migrate codec related code of rdk 4.1 into my rdk 3.0? The system still hang when I only migrate codec related code.

    Thanks,

    Jacson

  • Hi Badri,

    I try to run rdk4.1 "decode display" demo code, the image will not update after several minute and press "e" also not any response.

    Do you have any idea?

    Jacson

     [m3video] 5029291:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 5030324:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5030324:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 5032057:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5032058:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]

    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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:  [m3video] 5032591:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5032591:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 5032724:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5032724:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]

    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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:
    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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:  [m3video] 5033091:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5033091:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 5033124:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5033124:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]
     [m3video] 5033391:DECLINK::links_m3video/iva_dec/decLink_jpeg.c:[201]::INTERNAL ERROR:-1
     [m3video] ALGPROCESS FAILED:STATUS
     [m3video] 5033391:WARN
     [m3video] DECLINK:ERROR in Declink_jpegDecodeFrameBatch.Status[-1]

    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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:
    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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:
    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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:
    [HOST]
    ThreadName:Demo_run,ThreadID:809

     =============
     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: e
     [m3video]  5057249: DECODE: Stop in progress !!!

  • Hi Badri,

    Here is the "i" information, Thanks.


     [m3vpss ]  
     [m3vpss ]  *** [MP_SCLR0 ] Statistics ***
     [m3vpss ]  
     [m3vpss ]  Total Frames Received  : 11737
     [m3vpss ]  Total Frames Forwarded : 11737
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Reject Processed  Latency(DRV) Processed  Rejected
     [m3vpss ]  Num | FPS     FPS       FPS        Min / Max    Frames     Frames  
     [m3vpss ]  -------------------------------------------------------------------
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Driver Statistics ***
     [m3vpss ] 0) *** Drv Inst [1], handle 0, DEI_DRV     forceBypassDei
     [m3vpss ] DualOut Inst [1],    
     [m3vpss ]    numVipStrms 0 ***
     [m3vpss ] 1) *** Drv Inst [4], handle 9DC51440, NON_DEI      
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
     [m3vpss ]  
     [m3vpss ]  Elasped Time: 31 secs
     [m3vpss ]  
     [m3vpss ]  Output Request FPS   : 30 fps (951 frames)
     [m3vpss ]  Output Actual  FPS   : 30 fps (951 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 33 ms
     [m3vpss ]  Scaling Internal min : 33 ms
     [m3vpss ]  Scaling Internal max : 34 ms
     [m3vpss ]  
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency   OutBufCopy InBufCopy
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max FPS        FPS      
     [m3vpss ]  ---------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |     30     30    0    0    0          0        0 (  0/255)         0          0      0 65535 / 48373399         30         0
     [m3vpss ]    1 |     30     30    0    0    0          0        0 (  0/255)         0          0      0 65535 / 48505246         30         0
     [m3vpss ]    2 |     30     30    0    0    0          0        0 (  0/255)         0          0      0 65535 / 48525004         30         0
     [m3vpss ]    3 |     30     30    0    0    0          0        0 (  0/255)         0          0      0 65535 / 48373416         30         0
     [m3vpss ]    4 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         30         0
     [m3vpss ]    5 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         30         0
     [m3vpss ]    6 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         30         0
     [m3vpss ]    7 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         30         0
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
     [m3vpss ]  
     [m3vpss ]  Output FPS: 30
     [m3vpss ]  
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Scan        | Low Cost | SWMS | Data  | Blank |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | Fmt         | ON / OFF | Inst | Format| Frame |
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |  1920 x   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |   736 x    500 |  3840 /      0 | NON-TILED   | PROGRESSIVE |      OFF |    0 |  420SP |   OFF |
     [m3vpss ]    1 |   1 |    0,    0 |  1920 x   1080 |  2048 /  2048 | NON-TILED   |  736,    0 |   736 x    500 |  3840 /      0 | NON-TILED   | PROGRESSIVE |      OFF |    0 |  420SP |   OFF |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x   1080 |  2048 /  2048 | NON-TILED   |    0,  500 |   736 x    500 |  3840 /      0 | NON-TILED   | PROGRESSIVE |      OFF |    0 |  420SP |   OFF |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x   1080 |  2048 /  2048 | NON-TILED   |  736,  500 |   736 x    500 |  3840 /      0 | NON-TILED   | PROGRESSIVE |      OFF |    0 |  420SP |   OFF |
     [m3vpss ]    4 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   | 1472,    0 |   368 x    250 |  3840 /      0 | NON-TILED   | INTERLACE   |       ON |    1 |  422I  |    ON |
     [m3vpss ]    5 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   | 1472,  250 |   368 x    250 |  3840 /      0 | NON-TILED   | INTERLACE   |       ON |    1 |  422I  |    ON |
     [m3vpss ]    6 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   | 1472,  500 |   368 x    250 |  3840 /      0 | NON-TILED   | INTERLACE   |       ON |    1 |  422I  |    ON |
     [m3vpss ]    7 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   | 1472,  750 |   368 x    250 |  3840 /      0 | NON-TILED   | INTERLACE   |       ON |    1 |  422I  |    ON |
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [SWMS1] Mosaic Driver Statistics ***
     [m3vpss ] 0) *** Drv Inst [0], handle 0, DEI_DRV     forceBypassDei
     [m3vpss ] DualOut Inst [0],    
     [m3vpss ]    numVipStrms 0 ***
     [m3vpss ] 1) *** Drv Inst [3], handle 9DC51480, NON_DEI      
     [m3vpss ]  
     [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
     [m3vpss ]  
     [m3vpss ]  Elasped Time: 31 secs
     [m3vpss ]  
     [m3vpss ]  Output Request FPS   : 30 fps (951 frames)
     [m3vpss ]  Output Actual  FPS   : 30 fps (951 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 33 ms
     [m3vpss ]  Scaling Internal min : 33 ms
     [m3vpss ]  Scaling Internal max : 34 ms
     [m3vpss ]  
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency   OutBufCopy InBufCopy
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max FPS        FPS      
     [m3vpss ]  ---------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |     30     30    0    0    0          0        0 (  0/255)         0          0      0 65535 / 48373387         30         0
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
     [m3vpss ]  
     [m3vpss ]  Output FPS: 30
     [m3vpss ]  
     [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Scan        | Low Cost | SWMS | Data  | Blank |
     [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | Fmt         | ON / OFF | Inst | Format| Frame |
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |   0 |    0,    0 |  1920 x   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1920 x   1080 |  3840 /      0 | NON-TILED   | PROGRESSIVE |      OFF |    0 |  420SP |   OFF |
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  48579538: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 83 / 88 ), Callback Interval (Min / Max) = ( 16 / 17 ) DropCount:0 DispLatency (Min / Max) = ( 66 / 66 ) !!!
     [m3vpss ]  48579538: DISPLAY DRV: HDDAC(BP0) : Q:[1456397] Display:[2912804], Repeat:[1456409], DQ:[1456395]
     [m3vpss ]  48579538: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1903, HDDAC(BP0) 1902, DVO2(BP1) 1902, SDDAC(SEC1) 1903
     [m3vpss ]  48579538: SYSTEM  : FREE SPACE : System Heap      = 67280 B, Mbx = 10239 msgs)
     [m3vpss ]  48579538: SYSTEM  : FREE SPACE : SR0 Heap         = 8683520 B (8 MB)
     [m3vpss ]  48579539: SYSTEM  : FREE SPACE : Frame Buffer     = 144034688 B (137 MB)
     [m3vpss ]  48579539: SYSTEM  : FREE SPACE : Bitstream Buffer = 169291648 B (161 MB)
     [m3vpss ]  48579539: SYSTEM  : FREE SPACE : Tiler Buffer     = 224 B (0 MB)  - TILER OFF
     [m3vpss ]  48579539: DISPLAY: DVO2(BP1)  : 59 fps, Latency (Min / Max) = ( 83 / 84 ), Callback Interval (Min / Max) = ( 16 / 17 ) DropCount:0 DispLatency (Min / Max) = ( 57 / 66 ) !!!
     [m3vpss ]  48579539: DISPLAY DRV: DVO2(BP1)  : Q:[1456399] Display:[2912801], Repeat:[1456403], DQ:[1456397]
     [m3video]     48585540: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]          totalAcquire2wait :1 %
     [m3video]          totalWait2Isr :42 %
     [m3video]          totalIsr2Done :0 %
     [m3video]          totalWait2Done :42 %
     [m3video]          totalDone2Release :0 %
     [m3video]          totalAcquire2Release :43 %
     [m3video]          totalAcq2acqDelay :56 %
     [m3video]          totalElapsedTime in msec :  174694
     [m3video]          numAccessCnt:   10191
     [m3video]         IVA-FPS :      58
     [m3video]         Average time spent per frame in microsec:    7199
     [m3video]     48585541: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]          totalAcquire2wait :0 %
     [m3video]          totalWait2Isr :18 %
     [m3video]          totalIsr2Done :0 %
     [m3video]          totalWait2Done :18 %
     [m3video]          totalDone2Release :0 %
     [m3video]          totalAcquire2Release :18 %
     [m3video]          totalAcq2acqDelay :81 %
     [m3video]          totalElapsedTime in msec :   42758
     [m3video]          numAccessCnt:    1096
     [m3video]         IVA-FPS :      26
     [m3video]         Average time spent per frame in microsec:    7022
     [m3video]     48585541: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]          totalAcquire2wait :0 %
     [m3video]          totalWait2Isr :15 %
     [m3video]          totalIsr2Done :0 %
     [m3video]          totalWait2Done :15 %
     [m3video]          totalDone2Release :0 %
     [m3video]          totalAcquire2Release :15 %
     [m3video]          totalAcq2acqDelay :84 %
     [m3video]          totalElapsedTime in msec :   21387
     [m3video]          numAccessCnt:     450
     [m3video]         IVA-FPS :      21
     [m3video]         Average time spent per frame in microsec:    7128
     [m3video]  
     [m3video]  *** DECODE Statistics ***
     [m3video]  
     [m3video]  Elasped Time           : 31 secs
     [m3video]  
     [m3video]  
     [m3video]  CH  | In Recv In User  Out
     [m3video]  Num | FPS     Skip FPS FPS
     [m3video]  -----------------------------------
     [m3video]    0 |       0        0   0
     [m3video]    1 |       0        0   0
     [m3video]    2 |       0        0   0
     [m3video]    3 |       0        0   0
     [m3video]  
     [m3video] Multi Channel Decode Average Submit Batch Size
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 0
     [m3video] IVAHD_0 Max achieved Batch Size : 0
     [m3video] IVAHD_1 Average Batch Size : 0
     [m3video] IVAHD_1 Max achieved Batch Size : 0
     [m3video] IVAHD_2 Average Batch Size : 0
     [m3video] IVAHD_2 Max achieved Batch Size : 0
     [m3video]  
     [m3video] Multi Channel Decode Batch break Stats
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]      Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]      Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]      Batch breaks due to changed resolution class: 0 %
     [m3video]      Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]      Batch breaks due to channel repeat: 0 %
     [m3video]      Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]      Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]      Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]      Batch breaks due to changed resolution class: 0 %
     [m3video]      Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]      Batch breaks due to channel repeat: 0 %
     [m3video]      Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]      Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]      Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]      Batch breaks due to changed resolution class: 0 %
     [m3video]      Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]      Batch breaks due to channel repeat: 0 %
     [m3video]      Batch breaks due to different codec: 0 %
     [m3video]  
     [m3vpss ]  
     [m3vpss ]  48588545: LOAD: CPU: 4.1% HWI: 1.5%, SWI:0.8%
     [m3vpss ]  
     [m3vpss ]  48588546: LOAD: TSK: DISPLAY0            : 0.3%
     [m3vpss ]  48588546: LOAD: TSK: DISPLAY1            : 0.3%
     [m3vpss ]  48588546: LOAD: TSK: SWMS0               : 0.6%
     [m3vpss ]  48588546: LOAD: TSK: SWMS1               : 0.3%
     [m3vpss ]  48588546: LOAD: TSK: MISC                : 0.3%
     [m3vpss ]  
     [m3video]  
     [m3video]  48589047: LOAD: CPU: 1.4% HWI: 0.3%, SWI:0.4%
     [m3video]  
     [m3video]  48589047: LOAD: TSK: IPC_BITS_IN0        : 0.1%
     [m3video]  48589047: LOAD: TSK: DEC0                : 0.3%
     [m3video]  48589047: LOAD: TSK: MISC                : 0.3%
     [m3video]  
     [c6xdsp ]  
     [c6xdsp ]  48588846: LOAD: CPU: 0.2% HWI: 0.0%, SWI:0.0%
     [c6xdsp ]  
     [c6xdsp ]  48588846: LOAD: TSK: MISC                : 0.2%
     [c6xdsp ]  
    [HOST]
    ThreadName:Demo_run,ThreadID:761


     =============

     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:
    [HOST]
    ThreadName:Demo_run,ThreadID:761


     =============

     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:

  • Hi Badri,

    Do you see my post?

    Thanks!

  • This is MJPEG decoder error resiliency issue and we are testing with latest MJPEG decoder to confirm issue is resolved. Will let you know once issue is confirmed to be resolved with latest MJPEG decoder

  • Hi Badri,

    We have try to use MJPEG version 01.00.12.00 to do that, But It will not decode forever when decode error occur once, even if we send correct bitstream to it. This is not a solution.

    Thanks,

    Jacson

  • Jacson

    No hang is seen in decode display 4 channel demo with MJPEG decoder version 01.00.12.00 for the error stream.I tested with concatenating non-error stream with the error stream. Decoder decodes the stream correctly and does not report any error for the non-error stream

    Regards,

    Reshma

  • Hi Reshma,

    We have a mistake that is we don't clean before rebuild new decoder version, it can be decode and display currently, we are still testing the stability use this error stream right now.

    Thank you very mush,

    Jacson