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.

dm365 encode demo error



When I use NFS to boot dm365, and run  ./encode -v test.264 -y 2  have some problem, as below:

root@192.168.0.222:/opt/dvsdk# ./encode -v test.264 -y 2
Encode demo started.
0x3A = 0x11
i2c_adapter i2c-0: tvp514x_setinput:lost lock]
0x3A = 0x11
i2c_adapter i2c-0: tvp514x_setinput:lost lock]
i2c_adapter i2c-0: tvp514x: no input connected
i2c_adapter i2c-0: Set input failed, err = ffffffed
vpfe ccdc capture vpfe ccdc capture.1: vpfe_doioctl:error in setting input in decoder
Error: Failed to detect video standard, video input connected?
Error: Failed to create video encoder: h264enc

The code is : ( drivers/media/video/davinci/tvp514x.c)

 if (err < 0) {
  dev_err(tvp514x_i2c_dev[ch_id], "tvp514x_setinput:error "
   "reading status register\n");
  return -EINVAL;
 }
printk(KERN_ERR "0x3A = 0x%x\n", status);   // out put 0x11.
 if (TVP514X_LOST_LOCK_MASK == (status & TVP514X_LOST_LOCK_MASK)) {
  dev_err(tvp514x_i2c_dev[ch_id],
   "tvp514x_setinput:lost lock]\n");
  return -EINVAL;
 }

I connect a PAL camera. The camera is OK.

when I just test sound ,it can be run:

root@192.168.0.222:/opt/dvsdk# ./encode -s speech.g711
Encode demo started.
ARM Load: 2% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 53 kbps Time: 00:00:01 Demo: Encode Display: D1 NTSC Video Codec: N/A Resolution: N/A Sound Codec: G.711 Speech Sampling Freq: 8 KHz samp rate

How to do it?