BlueWave Studio forum
Reverse cam - Printable Version

+- BlueWave Studio forum (https://bluewavestudio.io/community)
+-- Forum: OpenAuto Pro (https://bluewavestudio.io/community/forum-86.html)
+--- Forum: Video features (https://bluewavestudio.io/community/forum-64.html)
+--- Thread: Reverse cam (/thread-1767.html)

Pages: 1 2


Reverse cam - costa - 07-06-2020

Hi,

I bought a cam and a usb grabber, and I get a feed in VLC on /video0, but I get no feed in OAP.

Am I supposed to hook up a wire to the GPIO pin before I get output when I manually click on the reverse cam button in OAP, or do I have another problem since I only have a black screen?


RE: Reverse cam - Great - 07-07-2020

Not all USB Video capture cards works with OAP.

Which one do you have?


RE: Reverse cam - costa - 07-07-2020

I have this one https://www.amazon.co.uk/gp/product/B01D9T8E1U/ref=ppx_yo_dt_b_asin_title_o00_s01?ie=UTF8&psc=1


RE: Reverse cam - costa - 07-07-2020

Apparently it's using the stk1160 chip. Does that have problems, or what chip should I look for?


RE: Reverse cam - Great - 07-09-2020

(07-07-2020, 05:23 AM)costa Wrote: Apparently it's using the stk1160 chip. Does that have problems, or what chip should I look for?

STK1160 is a no go.

I have two of this and none works with OAP.

I bought this one recently: https://www.ebay.com/itm/USB2-0-Converter-Audio-Video-Capture-Grabber-Adapter-For-Win-XP-7-8-10-PAL-X-Hw/233599960238
and it works out of the box.


RE: Reverse cam - jennmike2 - 07-09-2020

(07-09-2020, 09:22 AM)Great Wrote:
(07-07-2020, 05:23 AM)costa Wrote: Apparently it's using the stk1160 chip. Does that have problems, or what chip should I look for?

STK1160 is a no go.

I have two of this and none works with OAP.

I bought this one recently: https://www.ebay.com/itm/USB2-0-Converter-Audio-Video-Capture-Grabber-Adapter-For-Win-XP-7-8-10-PAL-X-Hw/233599960238
and it works out of the box.
FYI: that link doesn't ship to The United States.


RE: Reverse cam - costa - 07-09-2020

Do you happen to know what chip is used inside that grabber you linked?


RE: Reverse cam - Great - 07-09-2020

It uses an AMT630A chipset.


RE: Reverse cam - costa - 07-10-2020

Thanks, seems like a rare chip. Not anywhere to be found in my country. That's stk1160 everything.

Do you have any idea why it's not working?
I mean, it's working fine in VLC, etc. Guess there must be a reason why it doesn't work explicitly in OAP


RE: Reverse cam - Great - 07-10-2020

There's a workaround you can use to make it work.
I did try it and it works but it puts an extra load to the system and with a PI 3 B+ I'm using I thought it was not worth it.
I used this workaround until my new capture card arrived.
I advise you to make a full backup of your system before try this.


Here it is:

(05-19-2020, 04:00 AM)rolodo Wrote: For now what I did was to install "v4l2loopback-dkms"

sudo apt-get install v4l2loopback-dkms

Then in cron I added this line
@reboot sudo modprobe v4l2loopback video_nr=5 && ffmpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video5

to reflect those change to the system configuration of openauto I did the following.
cd /home/pi/.openauto/config/
nano openauto_system.ini

and edited the line DeviceDescriptor=v4l2:///dev/video0 to:
DeviceDescriptor=v4l2:///dev/video5

It sure use some CPU time (2%) but at lease I don't have to buy a new camera and cables.
Hope this help others to support other USB camera.

If someone else has another solution that will have less impact on performance I'm open to try it Smile

Thanks!