Video Grabber for Raspberry Pi

In order to create ambilight effect for any video signal, the key thing is to buy the right video grabber. When you see that someone installed “easycap” grabber you may suspect that when you buy one you will have the setup that is ready to use. This is very wrong assumption… :) unless you are lucky – and this is why…

Installation and testing of the grabber consists of several steps:
0) you need to have specific version of Raspbian in order to install and use video grabbers. For utv007 the one from 2013-07-26 worked the best. For stk1160 the one from September’13. Download it and dump to sd card.
1) configure raspbian by extending the partitions (through raspi-config)
2) install the driver
3) install mplayer

Before we go to installation steps few words about the hardware…

Easycap usb grabber comes with (at least) 4 different chipsets – these types are very well described on this web site . You can check there how to distinguish one version from another based on lsusb output.

I have had 3 of them: somagic, utv007 (Fushicai) and STK1160.

Another interesting thing is that there are many different versions of grabbers based one the same chipset! Actually I have not found a way to distinguish exact manufacturer and usually you don’t need to know anything except the chip. I wrote “usually” because I was unlucky enough to buy stk1160 grabber that had awful cropping which is not common issue with this type of grabber…

Somagic
The only thing I managed to get from the first one is message : insufficient memory :) so i will not cover all the work I did.

STK1160
STK1160 worked (almost) out of the box, BUT i had significant cropping of image in horizontal and vertical direction.
“Wait! Why did you write ‘almost’?” For some dumb reason, I had to execute the following statement

Otherwise I was getting nice image for about 1sec and then very nice and sharp grey stripes. Go figure…

Mplayer was laggy. I had also slow response time for the ambilight effect (not mentioning lack of color accuracy caused by significantly cropped image). Maybe I had some faulty piece, becasue I have heard that for others it works well.

Based on my experience. I would rather not recommend it to anyone.

UTV007 (Fushicai)
UTV007 took some time to install, but it was worth an effort. Video was nice and less laggy than stk1160 chip. And here is how you can install it: (based on https://github.com/gkaindl/ambi-tv/issues/48)

REMEBER! You need right version of Rasbian (see above) and 4GB SD card

What you’re doing here, is you download ambi-tv code which has driver for UTV007 and you compile it plus you load driver and other modules to memory. Be patient, because downloading kernel sources takes a lot of time.

To have it working after reboot you need to modify /etc/modules file:

In order to see video from our grabber the most common way is to use mplayer.

After it is installed run it loke this:

I hope you see video on the screen that is connected via HDMI :)

It you see artefacts, you can overclock RPi to get rid of them.

Enjoy!

Here is your raspberry pi ampilight system!
  • Pingback: Video Grabber for Raspberry Pi | Home Automatio...

  • Balaji

    Does this mean the following ?

    1. Capture video from Video Source (Say, Set Top Box, DVD Player) using the Easycap device.
    2. Pass the output of the Easycap device to the RPi.
    3. Transmit video over network using MPlayer on RPi.

    Please confirm.

    • Jacek

      I confirm 1 and 2. 3 I have never tried.
      My case is that it allows to build ambilight system for any video source (including HDMI source with some additional hardware – tutorial on the way)

      • Balaji

        Thanks, Jacek.

        For # 3, is not it very similar to capture the USB Cam video ?

        You had mentioned about HDMI video source, does it mean HDMI to USB ? I believe there is no video input other than USB for RPi.

        • Jacek

          1) it is similar but I haven’t tried it yet.

          2) Yes, although it is more than one device. We will write tutorial about it soon.

  • Quietas

    Thanks for the write up, much better than the quick blurb on the Ambi-TV page. I tried this after running an update/upgrade on my new Raspbian install and the folder is now 3.10.25+. I adjusted accordingly and all seemed to go well. Once I plug in my EasyCAP (fushicai 007) Linux crashes when I plug in the usb capture card. After rebooting I can delete the module and it works, but I can’t load the driver.

    • Jacek

      To be honest I am not sure what exactly works in your case and what does not :) Anyway, let me try to asnwer… my RPi also reboots when I pluh in the grabber into RPi usb port, probably due to significant power required by the grabber. I use usb active hub instead. When I tried to compile and load the driver on newest rasbian, it hanged as soon as i tried to load usbtv module. Is that what you’re observing?

      • Quietas

        That’s a possibility. I have a 2.6A 4 port hub back powering the RPi. It’s possible that too much power is being used and it shuts down. I’m updating to Raspbian Jessie which is supposed to have kernel 3.12 and the drive built in. If that doesn’t work I’ll reimage the SD card and try powering to the RPi separately.

  • Kyle Dibble-Dabney

    Im running the Raspberry Pi with Raspbian and an EasyCap grabber with a Fushicai chip. I got the grabber working. Have you used this with Hyperion?

    I have been able to get the hyperion program to work fully (with exception of the Fushicai chip grabber) on the latest version of Raspbian, but not the older version with modified kernel for the grabber. Any ideas? Any help would be greatly appreciated! BTW I’m using LPD8806 LEDs, and have created / uploaded a proper config file for hyperion to use. Thanks!!!!

    Also, when I type in a command such as “hyperion-remote –priority 50 –color red –duration 5000″ I get “Unable to connect to host”

    • Jacek

      Sorry for late reply. It looks like there is something wrong with your hyperion instalation. Run hyperion from command line and see if there is any error.

  • STF

    I’ve got the grabber up and running, I see the video frame. But some how the leds won’t lite up; also not with the hyperion remote, althoug it’s says it’s synchronized.
    If I switch the scard with one that I’ve configured with the ‘Hyperion on OpenELEC. It works!’ the leds all light up.

    Do You have Any idee what could go wrong?

    • Jacek

      The only thing that comes to my mind is bad config filr for hyperion on Raspbian….

      • STF

        Is there any difference from the one that I’m using on hyperion on Openelec?

  • STF

    Dear Jacek,

    I’ve now got the frame on my screen (mplayer) it’s running. Got it to auto start, but > My leds are NOT lightning up < Config file must be oke now, because with the Hyperion remote they work. Please advice, I'm a newbie and trying to get this to work for months now.

  • Pingback: Ambi-tv – ampilight effect from any Video (i.e. HDMI) source | Raspberry-at-home.com – Your ultimate source of Raspberry Pi tutorials (WiFi, 3G, XBMC, Subtitles, VoD, TVN Player, IPLA, TVP, Squeezeslave, Logitech Media Server, Sickbeard, Webca

  • Marina Andrade

    Hello, there!

    I was able to make it work on my Ubuntu but when it comes to rpi the /dev/video0 directory doesn’t exist. It simply does not mount video0. What am I doing wrong?

    • Jacek

      It looks like os does not recognize your grabber… what grabber do you have? If the one with fushicai chip, have you added to modules file 3 lines that makes os to load driver module and two other to memory at startup?

      • Marina Andrade

        So, it’s the stk1160. When I use the lsusb command I can see it there but it doesn’t mount

        • Jacek

          That’s weird… what os are you using?

          • Marina Andrade

            Raspian that comes with the raspberry, ya know? I bought the board and it came with an sd card. But it’s up to date.

  • Husam Hebaishi

    Hello all. For all of you running raspbmc, I have cross-compiled a pretty new kernel with the latest patches and modules etc. If you are already running raspbmc you can simply install my rebuilt kernel image from here:

    http://sourceforge.net/projects/raspbmcusbtv/

    Note that the only difference between this and the standard raspbmc kernel image is that this has support for the fushicai Easycap usb grabber.

    • Jacek

      Husam, thanks a lot! I have prepared raspbmc image that can be downloaded using this torrent: http://img.lightberry.eu/download/raspbmc_with_fushicai_lightberry.zip.torrent . Hyperion is already installed.

      • Husam Hebaishi

        That is excellent man! Now all you need to do is update the above post to include instructions on using this image :)

        • Jacek

          Actually, this is system image, not only kernel :) In case someone does not know, win32image can be used to put it on sd card :)

          • Husam Hebaishi

            Thanks for packaging everything man! I appreciate the help. I still need to test it myself – I’ve never used hyperion-v4l. Does it automatically switch between sources when it sees a video feed coming from /dev/video0?

          • Jacek

            No, it does not… Frankly speaking I don’t know if that will work this way… Anyway, we are working on simple xbmc plug in that could be used to turn HDMI effect on and off.

          • Husam Hebaishi

            Ok here’s an idea. Would it be possible to turn off the hdmi passthrough by simply unloading the usbtv module? that should remove /dev/video0 and prevent hyperion from accessing it. If that works it should be possible to write a script that loads/unloads the module in response to a keypress or something.

          • Jacek

            yeap… :)

        • Jacek

          on the other hand people may be interested only in your kernel image… then here is the link to our discussion on github with all the instructions: https://github.com/tvdzwan/hyperion/issues/12

  • Nishanth Reddy

    Hello all. I am trying to install easycap on my RPI and have been able to see dev/video0. I have both STK1160 and UTV007 and could do this for both with the above steps. But when I run the mplayer it gives me a blank green screen. Is there something else except the above I should do ?
    Thank you!!

    • Jacek

      What system are you using? If the newest Raspbian, then that may be the root cause.

      • Nishanth Reddy

        Yes. I am using the newest one. What should I do ? As Dmitry mentioned should I install the kernel 3.6.11 version ?

        • Jacek

          Just install Raspbian version from 2013-07-26 or 2013-09-25-wheezy-raspbian

          • Nishanth Reddy

            Thank you. I did the same and it works now. But mplayer is not able to play my video properly. Grey stripes come all over the screen.

            I use the following code:

            mplayer tv:// -tv driver=v4l2:norm=PAL_BGHIN:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1:fps=10 -vo sdl -hardframedrop -msglevel all=6

            PS: My device works in windows as NTSC, but in raspbian we write PAL. I tried writing as NTSC but it gave no result.

          • Jacek

            If you’re using stk1160, and you have nice vertical stripes, then please read article above.
            If the stripes are simply a noise on the picture, then this is a problem with slow rpi. If you overclock it, the image will get better. Good news is that usually hyperion-v4l2 does not need overclocking.

          • Nishanth Reddy

            Hey Jacek I got a clear video by using the below code,

            mplayer tv:// -tv driver=v4l2:norm=NTSC+443:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1:fps=10 -vo sdl -hardframedrop -msglevel all=6

            Thanks for this forum.

          • Nishanth Reddy

            Hi,
            Though I got the video running successfully I am trying to capture a image using the Easycap. I am trying to run a python script to do this. I have so far used imgproc and pygame and opencv libraries, but the output is a blank screen. (no input)

            Do you know how I can capture a image using python codes on RPi.

  • Dmitry Bardak

    Thanks for your article. I’ve found the key information which helped me to get working my RPI with stk1160. It works pretty well with raspbian 2013-09-10 (kernel 3.6.11). I’ve tried current version of raspbian (kernel 3.10.37) but there is the new stk1160 driver instead of the easycap driver and it even don’t start the grabbing.

    upd. Maybe it works not so well. Image quality is very good but after some time I got the errors:
    v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 1): Input/output error

  • Richard Osborn

    Great easy to follow article. I have a UTV007 (Fushicai) and compiled the modules I needed, however I only get the green box when I start mplayer. And it doesn’t recognize any dev/Video0 . Anyone find necessary steps beyond compiling these modules for this device?

    • Nishanth Reddy

      The latest kernel version wont support it. Use any Raspbian version from 2013-07-26 t o 2013-09-25-wheezy-raspbian.

      • Richard Osborn

        Right, I followed the instructions to a t and used that kernel version. I can get the USB grabber to be recognized now but I think it may be an issue with power flow through the usb port. Going till try a few more things and get back to everyone in a couple days.

        • Richard Osborn

          ok now i get the green screen and timeouts in mplayer

          • Azaka

            I’m having the same issues as you. Sometime I can catch a single frame before it switches to all green. I have a powered USB hub in between the PI and the utv007 with a 5v 2a supply, which makes me think it’s not a power issue.

            I’m also using the 2013-07-26 wheezy version and followed everything step by step here.

            I’ve done many reboots, I’ve tried booting without the card connected and connecting it after, booting with it connected, switching the USB ports, everything I can think of really.

            When I look at lsusb should I be seeing any name or anything listed on the device? Even my random generic USB hub shows up with a name but not the capture card.

          • Dat

            I’m having the same blank green screen problem here with the utv007 after following directions, including using 2013-07-26 wheezy. lsusb also does not show any video capture devices for me.

            Could it be that I ran apt-get update to make the mplayer installation work? Otherwise I did everything that was in the guide here.

          • Azaka

            Check out this post: http://raspberry-at-home.com/ambi-tv-ampilight-effect-from-any-video-i-e-hdmi-source/

            They have images prepared with the drivers already working. I haven’t tried yet, but hoping that will work.

          • Dat

            Thanks. Ah yes. I did try that, but it doesn’t help me much in my situation as I want to use EasyCAP for a project separate from an Ambilight clone. I installed the RaspBMC image, but I couldn’t get out into a terminal for some reason. I’m now trying some other people’s images.

            A potentially important thing I found is that the repository mentioned in this article might be wrong for the Fushicai UTV007. The correct line might instead be:

            wget https://github.com/mnorthfield/ambi-tv/archive/master.zip

            reference: https://github.com/gkaindl/ambi-tv/issues/48#issuecomment-30182010

          • Azaka

            Did you try this one? System image: (torrent) pre-configured raspbian

            If that really is raspian, shouldn’t that work for you? I downloaded it but haven’t had a change to try it out yet.

            If that doesn’t work, I may have to try that other github link you posted.

          • Dat

            Oh I haven’t. I had missed that link. I thought there were only RaspBMC images on that page. Thanks a lot. I’ll try that one out next.

          • Richard Osborn

            Yeah tried a couple images today and nothing seemed to work. I’m thinking about trying to get a STK1160 based version. Any suggestions on when you can pick one up reasonably priced and be sure that it’s a STK?

          • Dat

            I wish I knew myself. I ordered one that was described as a DC 60 online on eBay, which was supposed to identify an STK1160 version, but upon plugging it in it identifies as another Fushicai UTV007. I’m going to try buying one more EasyCAP and hopefully get one that will work for me. I’ll let you know if I find a proper source.

          • Jacek

            Fushicai is very good grabber and it works very well with rpi. Check out other article where you can find link to raspbmc image with Fushicai grabber working flawlessly.

          • Dat

            Hmm maybe I haven’t tried the latest image from 4/27/14, and only tried the non-working previous versions. I don’t remember exactly. I’ll give the 4/27/14 image a shot before I try ordering another EasyCAP. Thanks for the suggestion.

          • Jacek
  • Husam Hebaishi

    Hello all. Just wanted to say that I have built a raspbmc kernel with built-in support for the fushicai usbtv grabber. If you already have raspbmc installed you can simply install my kernel which can be found (along with installation instructions) here: http://sourceforge.net/projects/raspbmcusbtv/?source=directory
    Otherwise, there is also a ready raspbmc image with hyperion pre-installed as well as the kernel I’ve build. You can find that here: http://raspberry-at-home.com/ambi-tv-ampilight-effect-from-any-video-i-e-hdmi-source/

    Note that both solutions allow you to have a full XBMC media center as well as using external HDMI as an input source, all on ONE raspberry pi!

    • Richard Osborn

      I appreciate all the hard work! I have a fushicai, and can get hyperion to work with XBMC, I jsut can’t get any response with the video grabber. I’m connected through input 2 (yellow composite) are there any commands or steps that I’m missing other than sudo /opt/hyperion/bin/hyperion-v4l2 –size-decimator 8 –frame-decimator 2 –skip-reply –signal-threshold 0.08 once i’m booted up in XBMC in order to get the HDMI input to function?

    • Azaka

      I grabbed both of the images and tried them. I didn’t have any luck with the raspian image, still getting nothing but green screen.

      I was wondering how to use raspbmc with the external HDMI as an input source. I didn’t see any options or settings to enable it. It didn’t even seem to be running hyperion, but I couldn’t tell as I couldn’t get to any sort of command line.

      Any help would be appreciated.

      • Husam Hebaishi

        Could you answer a few questions please:

        1. Do you have /dev/video0?
        2. What is the output of lsusb. You need the fushicai chipset, ID: 1b71:3002
        3. Do you have anything connected to the easycap stick? Any video source?
        4. Is the led on the stick on? If it’s not you might have a power issue and you’ll probably have better luck using a powered usb hub.

        To use an hdmi source you need an HDMI->AV converter to convert the HDMI signal first before you feed it into the easycap stick. You will not find any options for this in the software, as this conversion is done by hardware and then sent to the easycap stick. Instructions are here:
        http://raspberry-at-home.com/ambi-tv-ampilight-effect-from-any-video-i-e-hdmi-source/

        • Azaka

          Thanks for taking the time to help.

          1. Yes, although sometimes at random it switches to video1
          2. The output is indeed 1b71:3002
          3. I’ve tried multiple sources. I even got out the old Nintendo 64 to have a native composite signal instead of going through the HDMI2AV converter. Through the converter I’ve tried a PS4, xbone, denon receiver, and a desktop pc.
          4. The LED on the stick is on. I have a 2A powered USB hub that I’ve tried. When I test with mplayer using the powered hub, I see a frame or two and then I get greenscreen along with screen timeouts from v4l2. Plugging the capture card directly into the pi gets rid of the select timeouts but I’ve never seen anything more than just the green screen.

          My question about the settings was because when I was trying to use the Raspbmc image, I wasn’t sure how the pi knew to use the capture card as input instead of xbmc. I’m not familiar with Raspbmc so I’m not sure how to get to a command line (or if you even can) or where the settings would be for hyperion and how to upload your own config file.

          I also tried the kernel image here (http://sourceforge.net/p/raspbmcusbtv/wiki/Installation) on top of the 3.6.11 image with the driver preinstalled.

          I really do appreciate any advice or assistance you can provide. Thanks!

          • Husam Hebaishi

            Ok it looks like you have tried a number of things. Please provide ‘uname -a’ output so we know which kernel you are running. Also there is one more thing – it looks like you have the driver loaded but there is a a technical problem with the easycap stick. I have seen in the forums that sometimes when you connect the easycap stick to the pi using a usb extension cable, things don’t work very well. You may have already tried this, but could you connect your easycap to the pi directly without a usb extension cable, and then connect a source to it?

          • Azaka

            3.6.11+ #474 PREEMPT is the current output of ‘uname -a’. I reverted back to the image posted here: http://raspberry-at-home.com/files/grabber_image.zip.torrent

            I just tried every combination of with the extension and without, directly into the pi or into the hub and got nothing but green screen and select timeout errors. Before I only got the timeout errors if I was plugged into the hub, now I get them all the time regardless. If I plug the grabber directly into the pi with it running, it reboots.

            Is it possible that I have a bad capture card or is there just something that I’m missing or not doing?

            Thanks again for the help.

          • Husam Hebaishi

            I have the reboot issue with my wifi dongle as well. The sudden current draw that the pi experiences when you plug in the device is enough to reset the CPU, but that’s ok. Try this: shutdown the pi, and turn off the power. Then connect the easycap stick directly to the pi. Then turn the power back on and see if it works.
            Look for /dev/video0 and see if mplayer detects anything. Good luck!

          • Azaka

            So I just shot a quick video of my setup, no narration or anything, it’s pretty self explanatory: https://www.youtube.com/watch?v=pEj9_dz85Fo

            Are there any glaring issues that stand out that could be the cause?

            Thanks.

          • Husam Hebaishi

            It’s been so long since I last saw that rainbow animation so thanks for that little bit of eye candy. On to the problem – what is your easycap grabber connected to in the video? Your TV probably has RCA input so try connecting your video source to the TV directly to establish that you actually have video output, then once you see a video output on the TV, disconnect the RCA cable from the TV and connect it to the easycap grabber on the pi and run mplayer again. also have you loaded all three of the required modules? you need to do:

            sudo modprobe videobuf2_core
            sudo modprobe videobuf2_vmalloc
            sudo modprobe usbtv

            or have the three modules in your /etc/modules file.

            do an lsmod and make sure all three modules are loaded.

          • Husam Hebaishi

            Another thing: there could be an issue relating to PAL/NTSC output formats. Is there a way of either switching your video source/converter to PAL output?

          • Jacek

            I was about to write the same thing… or you can provide pal/ntsc for mplayer as a parameter

          • Azaka

            So I did finally get it working using PAL as the source. For some reason I couldn’t get mplayer to use NTSC no matter which flags I used. What flag should I be using to get NTSC working with mplayer and hyperion?

            Since the HDMI2AV box does output to PAL, I could just leave it set to PAL but there’s a weird flickering on some of the LEDs on the strip sometimes that I thought might possibly be caused by the refresh rates not matching up.

            Thanks so much for the help so far.

          • Azaka

            I found the flags for NTSC and will be trying them out shortly.

          • Azaka

            I got hyperion working using PAL from the HDMI2AV box. Thanks so much for the help.
            https://www.youtube.com/watch?v=Bcu7X5O466Y

            Now I just need to figure out why the pi doesn’t like output from my HTPC >.<

          • Richard Osborn

            I was able to solve my problems by using PAL as well. No matter what I tried I could not get the NTSC flags to work for me in the Hyperion or mplayer grabbers. If you have a standard config file your refresh rates shouldn’t be a problem. Flickering LED problems could be a problem with ground. Are you running the PI and LED strips off of the same or different power sources. Either way you need to have the LEDs grounded to their power source AND the PI even if you are using sperate sources.

          • Azaka

            Right now I’m running them off different power supplies but I do have clock, data, and ground from the strip grounded to the Pi and the power supply. I’m going to be putting them on the same supply soon, I just haven’t had the time to wire up the microusb connector.

            They only really flicker when they are in the low brightness state when there’s black somewhere.

          • Richard Osborn

            Ah OK. That just sounds like a configuration issue with your threshold levels. Honestly it’s better to have the pi and LEDs on storage supplies due to the constantly changing loads the strips put in the system. If you must wire them together then do it all at the break out pins, the micro USB is not set up for this and is fused for a much lower amperage.

          • Azaka

            I thought it was always better to power from the microUSB since the GPIO pins don’t have any power protection. I have a 10A power supply and a 1000uF capacity that I feel should be able to run both the LEDs and the pi without any major power drops.

            I haven’t had much time to play with the configuration file or the arguments on the hyperion-v4l2 command. I do feel like there are some tweaks that I could make to get it to perform better. I finally found out I had a bad HDMI cable coming from my HTPC so I have that running on the ambilight now also, but the colors seem way off. Very dark or black scenes have the LEDs in a pretty bright green. It’s not like that with other sources though, which is weird.

            Thanks a lot for the help and the ongoing discussion, I really appreciate it.

          • ToeKnee

            I had a slight issue with flickering using the standard config file in the image I downloaded. I knew it wasn’t an issue with power since I’d been using a flawless standalone version of raspbmc w/ hyperion and 100 ws2801′s for quite a while. I just changed the rate in the config file from 50000 to 250000 and that solved it. Works great now!

          • jorgegearvill

            How can someone do that ??

    • Anthony Quinn

      Hi,Pretty new to the raspberry pi, I have been using the
      stk1160 stick and the 2013-09-25-wheezy-raspbian image and have gotten
      stable video through mplayer.
      I would like to get Raspbmc working which also supports the stk1160 grabber but have not had any luck getting video when building onto the wheezy image. Do any of your images have the driver for this grabber built in or is it for the fushicai usbtv only?
      thanks

      • Jacek

        Anthony, could you explain a bit more this part: “I would like to get Raspbmc working which also supports the stk1160 grabber but have not had any luck getting video when building onto the wheezy image”? I thought that STK1160 works out of the box with Raspbmc, isn’t it?

  • Nishanth Reddy

    Hi All,

    I got the video running on my RPi with a Easycap STK1160 device and would like to share what I did..

    1) Install Rasbian 3.6.11 version (or anything between 2013-07-26 t o 2013-09-25-wheezy-raspbian).on the Rpi.

    2) Enable SSH. Enter the following commands:

    sudo sh -c “echo ‘options easycap bars=0′ >> /etc/modprobe.d/easycap.conf”
    sudo apt-get update
    sudo apt-get install mplayer
    mplayer tv:// -tv driver=v4l2:norm=NTSC_443:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1:fps=10 -vo sdl -hardframedrop -msglevel all=6

    3) A clear video should be seen.

    PS: I used a powered USB hub. If video is seen green the first time, cancel the command and play again. It will look clear. you could play little with the size and fps but only NTSC_443 gave me the clear video.

    Hope you get it working. Thanks all !!

    • jorgegearvill

      so the last thing you posted actually works for the easycap STK1160 ? Because if so I will buy one… Im currently having an error like the one showed in this video ( instaed of seeing grey stripes, I only see a green screen ): https://www.youtube.com/watch?v=27YLQKNKZtw . I was working with the easy cap UTV007 (Fushicai) using this tutorial: http://raspberry-at-home.com/video-grabber-for-raspberry-pi/ BTW do you think this may work ?: http://www.amazon.com/Channel-EasyCap-Laptop-Parts-Store/dp/B009RJ7PHQ/ref=sr_1_3?ie=UTF8&qid=1404604248&sr=8-3&keywords=Easycap+STK1160

      • Jacek

        What raspbian version are you using?

        • jorgegearvill

          2013-07-26 . btw I read in an article that it might be helpful to use a ” HDMI2AV ” in order to convert the output PAL signal into a NTSC signal ” HDMI2AV converter to PAL. Even trying to force it to use NTSC, it wouldn’t go.” Do you think it might work ? if so how can I do that ? I mean i would buy this http://www.amazon.com/HDMI-Composite-Video-Audio-Converter/dp/B00GH92V8C/ref=sr_1_2?s=electronics&ie=UTF8&qid=1404677088&sr=1-2&keywords=HDMI2AV However I want to know if it needs any code setup

          • Jacek

            do you have STK1160 or UTV007?

          • jorgegearvill

            UTV007

          • Jacek
          • jorgegearvill

            No I have not, should I follow all the steps above ( the ones of the post ) in order to install it ? or what’s the hole process. Thanks in advance

          • Jacek

            This is sd card image so just dump this onto your sd card with Win32DiskImager.

          • jorgegearvill

            Hello again, I used the Image but it seems like not working. I will send you a little video so you can see what I might be doing wrong. this is the Link : https://www.youtube.com/watch?v=RtewrDY4I-4&feature=youtu.be

            The thing is that I believe is a power issue with the Raspberry or my powerhub, this is because I obverved the easycap is able to send some Frames of video if it is powered for the first time, however It doesn´t work for the second, third … and It seems to work again If I power off and on the powerhub and the raspberry. So I was thinking of buying this raspberry Power Hub the ” PiHub ” : http://www.raspberrypi.org/pihub-a-robust-powered-hub-for-your-pi/
            Do you think it might work ?

            Another thing to take into consideration is that I attempted to use your exectuable code this one “1mplayer tv:// -tv device=/dev/video0 -hardframedrop ” But got only green screen, so I changed it a little to use the Mplayer in a NTSC region where I live this is the code with wich I’m able to see some Frames at the begining ” mplayer tv:// -tv driver=v4l2:width=320:height=240:device=/dev/viedo0:norm=NTSC_443:input=1:fps=10 -hardframedrop ”

            I also used this code from @Nishanth Reddy with similar results ” mplayer tv:// -tv driver=v4l2:norm=NTSC+443:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1:fps=10 -vo sdl -hardframedrop -msglevel all=6″

            BTW if this just doesn´t work in a comming future I was thinking of searching another way to input analog video to the raspberry so then I can stream it to Internet. do you know any other way to do that ? Or to do it with the raspberry Pi ?

            Thanks in advance for everything !!!

          • Jacek

            Have you tried running it without graphical interface? For me it looks like pi is not strong enough to handle the image. Try running it from console without X running and overclock pi to 900mhz

  • Nishanth Reddy

    Hi,
    Though I got the video running successfully I am trying to capture a image using the Easycap. I am trying to run a python script to do this. I have so far used imgproc and pygame libraries, but the output is a blank screen. (no input)

    Did anyone try capturing a image in python using easycap. ?

  • Marina Andrade

    hi! I’ve tried different raspian versions and I still don’t have /dev/video0 although my easycap(STK1160) works perfectly on Ubuntu. What should I do?

  • Chris Garza

    Hi, I’ve followed the instructions to a T and have even tried the “pre made” images but every time I run ”

    mplayer tv:// -tv device=/dev/video0 -hardframedrop” I get:
    “MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
    mplayer: could not open config files /home/pi/.lircrc and /etc/lirc/lirc/lircrc
    mplayer: No such file or directory
    Failed to read LIRC config file ~/.lircrc.

    Playing tv://.
    TV file format detected.
    Selected driver: v4l2
    name: Video 4 Linux 2 input
    author: Martin Olschewski
    comment: first try, more to come ;-)
    Selected device: usbtv
    Capabilities: video capture read/write streaming
    supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL-M; 6 = PAL-60;
    inputs: 0 = Composite;
    Current input: 0
    Current format: YUYV
    tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
    Selected input hasn’t got a tuner!
    v4l2: ioctl set mute failed: Inappropriate ioctl for device
    v4l2: ioctl query control failed: Inappropriate ioctl for device
    v4l2: ioctl query control failed: Inappropriate ioctl for device
    v4l2: ioctl query control failed: Inappropriate ioctl for device
    v4l2: ioctl query control failed: Inappropriate ioctl for device
    vo: couldn’t open the X11 display ()!
    vo: couldn’t open the X11 display ()!
    vo: couldn’t open the X11 display ()!
    VO XOverlay need a subdriver
    [VO_SDL] SDL initialization failed: Unable to open a console terminal.
    vo: couldn’t open the X11 display ()!
    vo: couldn’t open the X11 display ()!
    vo: couldn’t open the X11 display ()!
    ==========================================================================
    Opening video decoder: [raw] RAW Uncompressed Video
    Could not find matching colorspace – retrying with -vf scale…
    Opening video filter: [scale]
    Movie-Aspect is undefined – no prescaling applied.
    [swscaler @ 0x8e0ee0] BICUBIC scaler, from yuyv422 to rgb565le using C
    VO: [fbdev] 720×576 => 720×576 BGR 16-bit
    Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
    ==========================================================================
    Audio: no sound
    Starting playback…
    v4l2: ioctl dequeue buffer failed: No such device, idx = 0
    v4l2: ioctl query buffer failed: No such device, idx = 0

    MPlayer interrupted by signal 11 in module: filter_video
    - MPlayer crashed by bad usage of CPU/FPU/RAM.
    Recompile MPlayer with –enable-debug and make a ‘gdb’ backtrace and
    disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
    - MPlayer crashed. This shouldn’t happen.
    It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
    gcc version. If you think it’s MPlayer’s fault, please read
    DOCS/HTML/en/bugreports.html and follow the instructions there. We can’t and
    won’t help unless you provide this information when reporting a possible bug.
    [ This binary of MPlayer in Debian is currently compiled with
    '--enable-debug'; the debugging symbols are in the package
    'mplayer-dbg'.]”
    Please help!! What am I doing wrong?

    • Jacek

      Do not post questions twice, please.

  • http://febon.blogspot.com/2013/10/febon168-uvc-usb-hdmi-grabber-card-user.html Andy Tzeng

    Follow stansard uvc driver.

    if USB WEBCAM can work, UVC Grabber card will also work.

    1.USB UVC CVBS grabber card work on PI
    https://www.youtube.com/watch?v=NUrtHINxQJI

    2.USB UVC HDMI grabber card WORK on PI

    https://www.youtube.com/watch?v=DFI_bFxahDA