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…

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 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.
[update] cropping can be avoided by specifying PAL as video standard. There is no cropping in such case.

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

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.


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 | – 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.

          • Frederick Dopfel

            Marina, I’ve been having the same problem. nothing mounted to video0, even though lsusb command still shows the stk1160. If you have found a solution, or have a disk image of your working setup, I would greatly appreciate it. Hope you got it to work!

  • 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:

    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: . 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:

  • 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

            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:

            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:



          • 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:
    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:

    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:

        • 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 ( 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:

            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:

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


          • 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.

            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?

      • 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 ): . I was working with the easy cap UTV007 (Fushicai) using this tutorial: BTW do you think this may work ?:

      • 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 However I want to know if it needs any code setup

          • Jacek

            do you have STK1160 or UTV007?

          • jorgegearvill


          • 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 :

            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 ” :
            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

    • Anthany Krebs

      THANY YOU!!!!

  • Nishanth Reddy

    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. ?

    • Andy Smith

      Hi Nishanth

      1. What (Easycap STK1160) is the name of the device are you using? Kindly provide the online link.
      2. Are you able to capture the images to opencv using easycap?
      Kindly share with me. I am also stuck at this point.

      • Nishanth Reddy

        1) I guess I just have the easycap. I bought from ebay. Its a STK1160 though.

        2) I used the below method to get images into python. I was not able to use opencv.

        import subprocess
        import shlex
        import shutil
        import time

        for i in range(1,10):
        command = ‘ mplayer tv:// -tv driver=v4l2:norm=NTSC_443:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1 -vo png -frames 1’, shell = True)
        file1 = open(‘00000001.png’,’rb’)
        file2 = open(‘image%d.tiff’%i,’wb+’)

  • 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
    Please help!! What am I doing wrong?

    • Jacek

      Do not post questions twice, please.

  • 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

    2.USB UVC HDMI grabber card WORK on PI

  • Guillermo


    Is there any option for current kernel versions (3.12 -) to install usbtv007 drivers? If so can you please let me know? This is because im trying to run this driver with the new model for raspberry pi, but it seems it doesn’t support any other kernel version than the current one. What can i do? Thank you.

    • assadollahi

      is it a problem with the pi 2 or the latest kernels?

  • Dorian McCarthy

    I followed all the steps. Here’s a link to a torrent for the Raspberry Pi SD Card .img backup i made, all up and running :)

    It repeats a LOT of frames though – anyone have any idea why?

  • Yunju Cho

    Hi,where did you buy the UTV007? could you give me the url?

  • rasba

    I have a problem . I built on openelec ambilight system . bringing the HDMI signal to the converter HDMI2AV . Next signal flies to EasyCcap Video grabber . Raspberry does not see the signal. until I change my source of 1080i to 576p , EasyCap sends a signal to rasbperry . What am I doing wrong? After HDMI2AV should reduce the 1080i signal to the maximum that release .

    • Jacek

      Have you checked if hdmi2av has video signal on cvbs output when 1080i is connected? It sounds like your converter does not have downscaling to PAL (unlike those at ;) )

      • rasba

        Yes. HDMI2AV Mini (white) with PAL settings. It has green screen. When i change the settings of source – sat receiver- to 576p all is ok. But in 720p or 1080i there is no lights, and the screenshot is green.

        I also try to connect my sat receiver without HDMI2AV mini, from the CVBS chinch output from reciever. That way i have a lights ok with 576i , but when i change to 720p the lights are blinking strange and not to the tempo of the picture on TV.

  • rasba

    UPDATE from Today. I think the problem is in HDMI2AV (but in all 3 devices) ? HDMI2AV does not convert the signal above 576p :((((

    I checked it directly to the TV from HDMI source without grabber

  • Mitja Sekavčnik

    There is not enough space… so I must resize partition and make some space… how to…?

    • Jacek

      use raspi-config

  • Mitja Sekavčnik

    sry my mistake… didnt see in instructions. I resolve that and go through all steps. I had a lot of problems, because my Rpi didnt boot, after few days of troubleshooting I resolve that with paper in sd card slot that push card to the slot.
    I have UTV007. when I type “mplayer tv:// -tv device=/dev/video0 -hardframedrop” I get

    “Failed to open /dev/video0: No such file or directory”

    • raspberry314

      Hi. Have you tried /dev/video1?

  • Diego Garcia

    hello everyone,

    First of, I would like to thank you for creating such an easy and useful set of instructions!. Unfortunately, my RPI is unable to render or reproduce the video successfully using mplayer. Basically, I would like to know if anyone can assist me. My set up is the following:

    *RPI B with Raspbian 2013-07-26 + utv-driver install
    *easycap utv007
    *power hob (Belkin F5U237)

    When I am using mplayer with any command found in the comments the output window is green e.i
    * mplayer tv:// -tv device=/dev/video0 -hardframedrop

    * mplayer tv:// -tv driver=v4l2:norm=NTSC_443:width=640:height=480:outfmt=uyvy:device=/dev/video0:input=1 -vo png -frames 1

    * mplayer tv:// -tv
    -vo sdl -hardframedrop -msglevel all=6
    with either format (PAL/NSTC/NSTC_443). Also, I did the following set of configuration with the GUI fully loaded and over SSH using a terminal with x11 forwarding. Either way I am seeing green screen.

    I would like to add that I am getting my input signal from a DVD player, as later I am attempting to use a camera instead. If anyone out here could spare some brain it would be greatly appreciate it.


    • Jacek

      Sometimes the most obvious answers are correct… maybe your grabber is broken? Are you sure that video signal provided is cvbs?

      • Diego Garcia

        hey Jacek Thanks for your reply indeed its true some times hhaha. As for the easycap, I tested it on win7 few months back and it worked but it was a white/black video. My input signal on the other hand, will soon be using an actual camera “hero3” I will keep y’all posted with my results.
        Also, I would like to share the following video I found. Where, someone got the RPI 2 to work with a utv007 using 2015-05-05 and as a bonus used gstreamer to stream the video over a local network. The set up is pretty sweet and basically that’s what I am aiming for.

        • Jacek

          Maybe you can try mplayer with PAL instead of NTSC?

          • Diego Garcia

            Sorry for the late reply, I will try that but I am in the process of getting an actual camera from ebay. I really hope that makes a difference in my set up.
            Thanks Jacek!! Will keep y’all posted

          • Diego Garcia

            quick update*** I was able to play the video from a backup camera in my rpi2 using the 2015-05-05 image with a stk1160. No driver was installed only mplayer to view the video. However, the latency is a big issue here. I did my test on ssh/GUI and the delay is ~5 sec on both scenarios. Note that the RPI2 was overclock to turbo at all times. Currently, I am looking for gstreamer as this is a powerful framework that removes latency.
            BTW, does anyone has any tutorial for gstreamer 1.0 in rpi ? Thanks

    • nvn

      did you try input=0?

  • Kumar Chandan

    I am new to Raspberry, I have raspberry pi 3 model B of Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux.
    root@raspberrypi:~# lsusb
    Bus 001 Device 004: ID 04ca:0061 Lite-On Technology Corp.
    Bus 001 Device 005: ID 1a2c:0023 China Resource Semico Co., Ltd
    Bus 001 Device 012: ID 1b71:3002
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    root@raspberrypi:~# arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 1: usbtv [usbtv], device 0: USBTV Audio [USBTV Audio Input]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    root@raspberrypi:~# cat /proc/asound/cards
    0 [ALSA ]: bcm2835 – bcm2835 ALSA
    bcm2835 ALSA
    1 [usbtv ]: usbtv – usbtv
    USBTV Audio at bus 1 device 12

    I followed the said process to grab audio and video. but I am getting only green screen. As you have mentioned for a 2013-06-26 raspbian but I am unable to install on Rpi3 model-B. What can I do??? Thank you.

  • extremvision

    I have an UTV007 (Fushicai) grabber on raspberry pi2, and i can have an image with opencv python lib but there is some noise on image that i dont have on windows.

    I then started to follow your installation but
    sudo bash stopped from few hours
    with cross-compiler tool prefix (cross compile) [] (NEW)

    The first time, i hitted the key enter, and i had to choose so many things i did not really understand.

    I red through, and it looks like to be at the end (make prepare or make script) but i am not sure.

    What should i do to finish the installation ? Thanks,

  • Sergio Beltran

    Hello, I am trying to record video from Analogic Cameras with the usbtv007 , I am able to do it with only one, but once the second one start recording the screens got a lot of green lines and noise, is like it is a driver isssue allocating the buffer to the same register. have anyone here tried that? . each Easy Cap device is power up and the cameras too. anyone have any idea of what can I tried, Im running it on a Raspberry 3 (tried 2 also) and lates Kernel and raspbian version

    • Gabriel A. Garcia

      Hello, I need to stream video from an analogic camera, i have the usbtv too. Can you help me please?

  • Andy Tzeng

    software: qV4L2

    hdmi as 1080p uvc webcam for raspberry pi 3

    composite as 480p uvc webcam ( with 3D-deinterlace ) for raspberry pi 3

    SDI as 720p uvc webcam for raspberry pi 3

  • Rijosef Manahan

    where can i buy this in the philippines?

  • Tyler Hilbert

    How can I tell if I have utv007 or stk1160?

    • Jacek

      Run lsusb and check device and vendor ID (1b71:3002)

      • Tyler Hilbert

        Do you mean run isusb on the raspberry pi in order to get the version? The problem I have with that is I have to know which version of easycap I have in order to know which version of rasbian I should install. Does that mean I have to guess which version I have and install rasbian and then use the install to check which version I have and if it’s the wrong version I’ll have to reinstall rasbian?

  • Mart

    I got the following problem.
    Im using two videograbbers:
    one gives a YUY2 video output and the other a mjpeg output.
    But for some reason I cant find these specs in the list of the sellers.
    Does anyone know where to buy a videograbber with YUY2 output and compatible with raspi?
    Please send link