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.

TMS320DM8127: Appro_avi_save in bad lighting conditions

Part Number: TMS320DM8127

IPNC's 'Appro_avi_save' in near dark lighting conditions produces 3 minute 20fps recordings that are enormous (~300MB).

Reducing the bitrate to the minimum - 64Kbps - and selecting CBR via the web interface has no effect on the AVI size (this does have a significant effect when lighting conditions are good...).

What can be done to reduce the size of such recordings (without improving illumination) - the quality of which makes them almost useless...

  • Hi Zev,

    I will notify IPNC team for help.

    Regards,
    Pavel
  • Hi,

    Can you please elaborate more? When you say  

    Zev Ovnat77 said:
    Reducing the bitrate to the minimum - 64Kbps - and selecting CBR via the web interface has no effect on the AVI size (this does have a significant effect when lighting conditions are good...).
    Can you check weather bit-rate set is taking effect or not? In both cases with lighting conditions and with dark light.

    Please share the below details for better understanding and analysis. 

    1. The Video codec you are using and its version.

    2. All the codec parameters used by you.

    3. The recordings/videos with and without light.

  • Hi Prashanth,

    Thanks for your response!

    As I mentioned in my query, reducing the bitrate has a dramatic effect when lighting conditions are good. However, when capturing vide in very-low-light conditions - reducing the bitrate has no effect...

    1. h.264

    2. Input parameters to Appro_avi_save:

     FileName = /mnt/mmc/ipnc_video_0000000b.avi interval = 180 sec  Msg_id = 2
       Is_chkcard = 1 stream_id = 3 nBitRate = (e.g.)24000.

    All the rest are the IPNC 3.80 defaults set in the innards of the IPNC code...

    3. The 3 minute very-low-light AVI's are enormous (> 100MB) - posting them seems problematic... In any case, the images are very dark and very grainy - and therefore incompressible... One would like such images to be compressed well at the expense of quality - as they don't contain much worth looking at. If in such lighting conditions CBR could constrain the frame size to something reasonable - my goal would be achieved - but this doesn't happen. I can't really say whether the IPNC's video webpage CBR setting affects Appro_avi_save - or, perhaps only the rtsp streams...

    Best Regards,

    Zev

  • Hi Zev,

    Thanks for the details. Can you please share the video dump of low light and bright light conditions?

    What is your encoder version? (You may find it form  RDK_install_dir/Source/ti_tools/codecs-dm81xx)

    Also it will be helpful if you share the h264 encoder parameters which you have set. Would like to check that once. 

    Also make sure

    When you change the bitrate, along with it are you changing the initialBufferLevel & HRDBufferSize ??
    It should be always 
    CBR ==> initialBufferLevel = HRDBufferSize = 0.5 * targetbitrate,
    VBR ==> initialBufferLevel = HRDBufferSize = 2 * targetbitrate.

  • Hello.

    I work with Zev and I'll continue the thread. I uploaded 2 5-second videos. One in regular office lighting conditions and another with the lights turned off - though still partially lit. The difference in size is over 10 times as big. Is there any way to limit the FPS or size of the recorded AVI when lighting conditions are poor?

    I've attached the Source\ti_tools\codecs-dm814x\REL.500.V.H264AVC.D.HP.IVAHD.02.00.15.01\500.V.H264AVC.D.HP.IVAHD.02.00\IVAHD_001\Inc\*.h files - are these what you wanted?

    All parameters are defaults from the IPNC_RDK. Is there any way for me to extract them and send them to you?

    We change the Bit Rate using the IE API - on the Video screen - Bit rate and Rate Control. I have no idea about the initialBufferLevel or HRDBufferSize.

    Thanks,

    Mechiih264vdec.hh264vdec_ti.h

  • Hi Mechi,

    Thank you for the details and the videos. Can you confirm you have this encoder version @ Source\ti_tools\codecs-dm814x\ REL.500.V.H264AVC.E.IVAHD.02.00.07.01  If so, please upgrade it to latest codec version REL.500.V.H264AVC.E.IVAHD.02.00.09.01 . You should get it from your local TI FAE.

    Mechi Fendel said:
    All parameters are defaults from the IPNC_RDK. Is there any way for me to extract them and send them to you?

    If the latest version doesnot fix the issue, please get all the prints from this file Source/ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_m3video/iva_enc/encLink_h264.c  this should be sufficient for me .

  • 1031.encLink_h264.cThanks - I'll request the latest codec from our FAE.

    Attached is the file you mentioned.

    Thanks again - and I hope this issue will be resolved.

  • Hi Mechi,

    I have this source with me. Can you print the values when u run and share those values, print them for both case. With bright-light & low-light? Latest codec version should solve your issue. 

  • The latest codec does seem to have solved this issue.
    Instead of dark files being 10-30 times the size of lit avi files, they are only 4 times the size with the new codec... Definitely an improvement!
  • Hi Mechi,

    Thanks for confirming the latest codec version resolved the issue and closing this thread.