xSnowHeadx / ambi-tv

a flexible ambilight clone for embedded linux
7 stars 2 forks source link

Webcam input instead of usb grabber #4

Open stuarteaton opened 5 years ago

stuarteaton commented 5 years ago

Hi, I don't know if you can help but i would love to get your code working (I'm close).

Eventually i will use a PiCamera to grab the tv screen but for now I'm using a ip camera and using that as an input (just to test)

gst-launch-1.0 -v souphttpsrc location=http://10.0.0.11/live ! jpegdec ! videoconvert ! v4l2sink device=/dev/video0 This is working .. but Ambi-tv does not like the format:

component: activating component 'v4l2-video'...
v4l2-grab: failed to set video norm.

Any ideas on how i could get this to work with a usb cam rather than usb grabber? Any help would be massively appreciated

Kind thanks Stuart

xSnowHeadx commented 5 years ago

Hi Stuart, I don*t know your video converter. It may be possible that changing the video format is not supported by it. But if you can select the right video format by configuration or command line parameters you can try to comment out the lines 227 to 234 within the source file "components/v4l2-grab-source.c". This will prevent the program from trying to change the video format of the driver. So it could be possible that it will continue normally than.

stuarteaton commented 5 years ago

Great. Thanks for the reply, much appreciated. I will have another play with it tomorrow. 🤞

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.