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.

AM37x EVM - saMmapLoopback - Error in opening capture device

Other Parts Discussed in Thread: TVP5146M2, TVP5146

H,

There is an error running saMmapLoopback.

Do I need to enable any other modules in the kernel?

        V4L USB Devices - USB Video Class (UVC) support is enabled 

        Video capture driver support is enabled 

The camera is connected to the USB hub (see attached console output)

        uvcvideo: Found UVC 1.00 device StarCam Flip (0c45:62e0)

root@dm3730-am3715-evm:/media/mmcblk0p2/video_bin# ./saMmapLoopback -u 1
tvp514x 3-005c: tvp5146m2 found at 0xb8 (OMAP I2C adapter)

Capture: Opened Channel
Capture: Current Input: COMPOSITE
VIDIOC_S_INPUT: Invalid argument
Error in opening capture device for channel 0

root@dm3730-am3715-evm:/media/mmcblk0p2/video_bin# ./saMmapLoopback -h

Usage: saMmapLoopback [-u <usb/tvp>] [-h help] 

[-u <usb/tvp>]  : 0 - TVP Capture 1 - USB Camera
[-i <S-Vid/CVBS>]       : 0: CVBS 1 - S-Video
root@dm3730-am3715-evm:/media/mmcblk0p2/video_bin#

  • Hi Dave,

    The Sample application (saMmapLoopback.c) uses /dev/video0 as a default video capture device node, and if you are using RevG version of EVM's then this device node gets registered against TVP5146 video decoder capture. For USB there must be another device node, just look at your /dev/video*.

    Change the sample application to take input from USB device node and it should work.

    Thanks,

    Vaibhav

  • Hi Vaibhav

    I've the same problem. I'm using RevA. Can you explain how to change the sample application to take input from USB device? 

     

  • hello,I have meet the same problem,

    (my platform is timll DEVKIT 8500, CAMERA MODULE is CAM8000-A)

    I wonder if the problem is the  tvp5146m2 not used correct, or the season is  tvp5146m2 decoder‘s front end is not attached to the CCD camera?

    please tell me how to resolve the problem, Thank you!