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.

Error: Failed to detect video standard, video input connected?

I am working on DM365 custom board (kernel version is 2.6.32.17-davinci1).  The ov5642 sensor is connected to board and camera is up and running i.e., could able to store the video raw data file to SD card.  Now, I want to convert the raw data into mpeg4 format.

I am using dvsdk encode application (dvsdk_3_10_00_19) to capture and store in mpeg4 file format.  I could able to load the modules (cmemk, irqk, edmak and dm365mmap) succuessfully using loadmodules.sh.  If I try to run the encode demo, it displays error message "Error: Failed to detect video standard, video input connected?"

The bootargs is
setenv bootargs console=ttyS0,115200n8 rw noinitrd ip=192.168.100.2 root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem
=60M video=davincifb:vid0=OFF:vid1=OFF:osd0=1280x720x16,4050K dm365_imp.oper_mode=0 vpfe_capture.interface=1 davinci_capture.device_type=3 davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc


Parameters passed to encode allication is

root@dm365-evm:~/Test# ./encode -v ng.mpeg4 -y 1 

Encode demo started.
Error: Failed to detect video standard, video input connected?
root@dm365-evm:~/Test#

Please let me know pointers/suggestions to fix this.

Thanks in Advance......

  • Hello,

    DMAI peripheral modules are tested with default PSP drivers and if you have made any changes in PSP driver to add support for your sensor HW then its very likely possible that you need changes in DMAI peripheral module (capture, display, resizer etc). The error indicates that some IOCTL is failing for your sensor interface, please modify DMAI to add support for your sensor specific IOCTL etc. After that everything should work without any problem.

    Thanks

    Brijesh

  • Looks to me like you are capturing from the composite input, which I believe is a different input from the one you want.

    John A

  • Thanks Brijesh and John

    Yes, you are right, I have dumped log using CE_DEBUG=2, the output is

    @2,207,929us: [+2 T:0x40c05490] ti.sdo.dmai - [Capture] Composite input selected
    @2,208,688us: [+7 T:0x40c05490] ti.sdo.dmai - [Capture] Failed to set video input to 0 (Invalid argument)
    Error: Failed to detect video standard, video input connected?

    input is supposed to be camera instead of Composite.  As I am newbie, please let me know,  is there any input parameters i can pass or need to change the resizer, capture devices?  Is there any camera interface support already exists?

    Regards

  • Ganeshan,

    Like i said, DMAI is validated and supported on EVM and you may need to modify it a bit to work with your custom HW and SW. And most of time these changes will be limited to only peripheral modules (mean no changes are needed in Vdec/enc modules).  Since i don't know about your sensor driver details hence it will be hard for me to tell what exact changes you need in DMAI capture module.

    FYI, we are adding Lepordboard camera support in upcoming DM368 DVSDK and may be you can take that as a reference code for your platform. DVSDK release is due in mid of Jan'11.

    Thanks

    Brijesh