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.

Enocde Image problem with encode_stream application

Hello,

I have a strange problem with IPCAM DM355, if I run the encode_stream with the command . /encode_stream-g 0-n 1-p 0-u 2-q 50-d-r-e 640x480 640x480-b 4000000 - & befor startinfg the system_server  and I look at the flow record 2 seconds after the start all my images are dark but  if I start system_server and I stop the process  before starting the encode_stream process the encode image is well without dark image.

Thank you for your help.

  • Hi,

    Can you please confirm the following:

    1. Are you using the binary files (encode_stream, system_server) as it is from the release or you have built it?

    2. Can you check the system date on your IP camera? One reason of dark frames can be that the capture frames are dark which can happen because of the AE algorithm not working. We have an eval license for AE algorithm that should have expired on 31st Dec 2009 and because of that dark frame might be generating. You can try changing the system date of your camera using "date" command.

    3.Can you please share the logs when the failure is happening and when it is working fine?

     

    Regards,

    Anshuman

  • Hi,

    Anshuman Saxena said:
    1. Are you using the binary files (encode_stream, system_server) as it is from the release or you have built it?

    I use the binary files that i built it but i have not modifies the source code

    Anshuman Saxena said:

    2. Can you check the system date on your IP camera? One reason of dark frames can be that the capture frames are dark which can happen because of the AE algorithm not working. We have an eval license for AE algorithm that should have expired on 31st Dec 2009 and because of that dark frame might be generating. You can try changing the system date of your camera using "date" command.

    When i tape date i have "Mon Feb 28 04:17:11 GMT-8 2000 " , so  it's lower than "31st Dec 2009"

    Anshuman Saxena said:
    3.Can you please share the logs when the failure is happening and when it is working fine
     

    # date                                                                         
    Mon Feb 28 04:17:11 GMT-8 2000                                                 
    # ./loadmodules_ipnc.sh                                                        
    killall: wis-streamer: no process killed                                       
    killall: boa: no process killed                                                
    killall: upnp-scanip: no process killed                                        
    killall: dhcpcd: no process killed                                             
    killall: encode_stream: no process killed                                      
    killall: system_server: no process killed                                      
    rmmod: sbull.ko: Resource temporarily unavailable                              
    ioremap_nocache(0x85000000, 50331648)=0xc5880000                               
    allocated heap buffer 0xc5880000 of size 0xd0000                               
    cmem initialized 7 pools between 0x85000000 and 0x88000000                     
    insmod: cannot insert `dm355-ipc-msgq.ko': File exists (-1): File exists       
    insmod: cannot insert `sbull.ko': File exists (-1): File exists                
    musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [peripheral] [debug=0]             
    Registering platform device 'musb_hdrc'. Parent at platform                    
    musb_hdrc: USB Peripheral mode controller at c5876000 using DMA, IRQ 12        
    mkdosfs 2.11 (12 Mar 2005)                                                     
    mkdosfs: /dev/sbulla contains a mounted file system.                           
    mount: /dev/sbulla already mounted or /mnt/ramdisk busy                        
    mount: according to mtab, /dev/sbulla is already mounted on /mnt/ramdisk       
    rmmod: csl: No such file or directory                                          
    csl: version magic '2.6.10_mvl401_IPNC-2.1.0 preempt ARMv5 gcc-4.2' should be ''
    insmod: cannot insert `./csl.ko': Invalid module format (-1): Exec format error
    # ./encode_stream -g 0 -n 1 -p 0 -u 2 -q 50 -d -r 640x480 -e 640x480 -b 400000&
    # MIRROR VALUE : 0                                                             
    NOISE FILTER VALUE : 1                                                         
    ROTATION VALUE : 0                                                             
    Encode demo started.                                                           
    VGA MODE                                                                       
    RESOLUTION 1 -- 640 480                                                        
    RESOLUTION 2 -- 640 480                                                        
    RESOLUTION 3 -- 640 480                                                        
    vpfe vpfe.1:                                                                   
     Validation pass                                                               
    3 capture buffers were successfully allocated.                                 
     [DRV_RESZ ] Error in DRV_reszInit()capture driver intialization sucessfully cod
                                                                                   
     APPRO 2A algorithm                                                            
    queue id:32769                                                                 
    queue id:131076                                                                
    queue id:65538                                                                 
    queue id:98307                                                                 
                                                                                   
    CPU MIPS = 107.720001                                                          
    CPU is 216Mhz                                                                  
     Detection in Motion Mode                                                      
     IsMotion = 1                                                                  
    IPNCVCA1-2.1.0 (martin@Fedora-vm.localdomain) (gcc version 3.4.3 (Monta        
    Check_AutoIris: 1                                                              
    Appro XDM                                                                      
    Aew_Cal_read_parameter !!                                                      
    IPNCVCA1-2.1.0 (martin@Fedora-vm.localdomain) (gcc version 3.4.3 (Monta        
    Blocksize: 2048                                                                
    encode_buffer size= 16384                                                      
    mkdir: Cannot create directory `/mnt/mmc/Face': File exists                    
                                                                                   
     FD: Face detection initialised /fd handles created                            
     Icon File is not present in Memory card                                       
                                                                                   
    MOTION_STREAM1                                                                 
    IsMotionOn = 0                                                                 
    CPU CurrentStatus is = 0                                                       
     Failure 5                                                                     
    Vid Enc Dyn Set called for STREAM1                                             
    APPRO AEW TRIAL VERSION !!!                                                    
    APPRO AEW DATE LINE 2009/6                                                     
                                                                                   
     Frame Rate is 30.156815 with 100 frames in 3316 msec                          
     Frame Rate is 29.958059 with 200 frames in 3338 msec                          
     Frame Rate is 29.524652 with 300 frames in 3387 msec                          
     Frame Rate is 19.290123 with 400 frames in 5184 msec                          
     Frame Rate is 23.435669 with 500 frames in 4267 msec                          
     Frame Rate is 23.430178 with 600 frames in 4268 msec                          
     Frame Rate is 23.359028 with 700 frames in 4281 msec                          
     Frame Rate is 23.337223 with 800 frames in 4285 msec                          
     Frame Rate is 21.896212 with 900 frames in 4567 msec                          
     Frame Rate is 20.020020 with 1000 frames in 4995 msec                         
     Frame Rate is 23.342670 with 1100 frames in 4284 msec                         
     Frame Rate is 23.331778 with 1200 frames in 4286 msec                         
    killall -9 encode_stream Frame Rate is 23.207241 with 1300 frames in 4309 msec 
                                                                                   
    # date                                                                         
    Mon Feb 28 04:27:49 GMT-8 2000

    Reagrds,

    Rblode