gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
296 stars 85 forks source link

v4l2-grab: select() timed out. #30

Open ireri opened 10 years ago

ireri commented 10 years ago

Hi guys followed Mrjohns42 instructions to the T. I have spidev0.0 and spidev0.1. i also have video 0. this is my lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 2001:f103 D-Link Corp. DUB-H7 7-port USB 2.0 hub Bus 001 Device 005: ID 1b71:3002

i get mood light working fine but keep getting v4l2-grab: select() timed out.

on edge light.

I have also tested my hdmi====composite converter when i plug it in(direct composite from the hdmi to composite converter) to the tv i get a picture from the composite cable. i am using a NTFS signal .Please help thanks

fuchst commented 10 years ago

Hi. Did you try to check the picture you receive with mplayer. If not you could do this and check if you get a picture. Just run these two commands: sudo apt-get install mplayer sudo mplayer tv:// -tv device=/dev/video0 -hardframedrop

And I assume with NTFS signal you mean NTSC as the other one is file system ;) I also tried NTSC input and never got it working so maybe you should also switch the converter to PAL. This will also take some burden from the Raspberry as PAL only delivers 25 Frames instead of 30.

ireri commented 10 years ago

UPDATE: got it working YAAAY!!! I switched from NTSC to PAL on the hdmi to composite converter. I know have 2 questions

  1. how do i get ambi tv to load automatically when i turn on the Pi(Please include Code+ locations). Preferably running in the background.
  2. Is it possible to run ambi-tv in the backgroundin stead of exiting the program to use the Pi.(as i would also like to use the pi as digital photo frame server).If so how would i be able to control the different modes the pi has as it is running in the background.

@fuchst Thanks for the help

fuchst commented 10 years ago

Good to hear that it works now. To get the rest going you can do the following steps:

  1. sudo nano /etc/rc.local
  2. Here you have to enter the path to your ambi-tv binary before the exit line /path/to/binary
  3. To get it to start hidden try to add & behind the path /path/to/binary&

Hope this helps and have fun with your ambi-tv.