EASYCAP analog to digital Video Encoder for Linux

A couple of days ago while attending a meeting of the Western North Carolina Linux Users Group (WNCLUG) someone asked if anyone knew how to get an EASYCAP analog to digital Video Encoder fob working on Linux. I’ve posted a photo of an EasyCap below. A few years ago I used an EASYCAP on Linux to transfer some old VHS tapes to my computer. While I haven’t used the EASYCAP in years, I still had the files that I used to make it work on Linux.

My EASYCAP was purchased from eBay several years ago. Its only physical marking is “EasyCap”

lsusb shows:
Bus 002 Device 003: ID 05e1:0408 Syntek Semiconductor Co., Ltd STK1160 Video Capture Device

The first step in getting an EASYCAP working on Linux is, of course, to throw the included Windows driver CDs into the trash. I performed the transfers using two very simplistic bash scripts (one line scripts). Here is the “how”:

I have a folder with a bunch of files, mostly because I needed to compile ffmpeg from source because it was missing from the repository, but the following worked for me:

#! /bin/bash
# easycap.sh
mencoder tv:// -tv channel=0:driver=v4l2:device=/dev/easycap1:normid=6:input=0:chanlist=us-cable:width=720:height=576:brightness=0:contrast=0 :hue=0:saturation=0:buffersize=16:alsa:amode=1:for cechan=2:audiorate=48000:adevice=plughw.0,0:forcea udio:immediatemode=0 -oac mp3lame -ovc lavc -quiet -lavcopts acodec=mp2:abitrate=128:vcodec=mpeg4:vbitrate=1072 -lameopts cbr:br=128 -o ./capture_vid.avi

I needed to de-interlace the output so I also used this script:

# deinterlace.sh
# Deinterlace eacycap recorded file
ffmpeg -i Recording -target NTSC -deinterlace -sameq DeInterlaced.avi


UPDATE: There are several version of the Chinese EasyCap devices. I discovered a great resource for dealing with each of the variants. See the link below:


Quote | This entry was posted in Electronics, Linux, Programming. Bookmark the permalink.

1 Response to EASYCAP analog to digital Video Encoder for Linux

  1. acassis says:

    Very nice Celem!
    I have one of time here around (I need to find it), I will give it a try. Thank you!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s