2Auge / easycap-somagic-linux

Automatically exported from code.google.com/p/easycap-somagic-linux
0 stars 0 forks source link

My easycap device is not working. #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Dear all,
I'm currently working on an open source project that works with gstreamer . I 
wanted out put of my camcorder as v4l2src. I found this easyCap is promising to 
work.

But when I ordered it didn't work out of the box. Details of devices are 
follows.
Model No. : DC60-2021 Version 3.1C win 7-64

When I do lsusb
Bus 002 Device 008: ID 1c88:0007 Somagic, Inc. SMI Grabber (EasyCAP DC60+ 
clone) (no firmware) [SMI-2021CBE]

I tried to do what your site http://code.google.com/p/easycap-somagic-linux/ 
says.

But when I try to do
sudo somagic-extract-firmware SmiUsbGrabber.sys
I get error
Somagic firmware was not found in driver file.

What I am doing wrong? How to fix this? Please be kind enough to help me.
Thanks in advance.

Original issue reported on code.google.com by lolith...@gmail.com on 6 Dec 2012 at 5:15

GoogleCodeExporter commented 8 years ago
Hi

Sorry to post a "me too" comment, but I thought I'd best attach the sys file in 
case anyone needs to reproduce the problem.

Thanks

Original comment by bux...@rmu.edu on 17 Dec 2012 at 4:51

GoogleCodeExporter commented 8 years ago
64bit Debian. Been working on it for hours. Bought two of these after verifying 
model number. Exact Same situation as above. 

When I too do lsusb (same as above):

Bus 002 Device 008: ID 1c88:0007 Somagic, Inc. SMI Grabber (EasyCAP DC60+ 
clone) (no firmware) [SMI-2021CBE] 

( I tried all the window's drivers Vista64 and Win7 64bit and started with 
plain old XP -none are giving up any firmware )

It does work in windows7 32bit. I do not usually use windows but hey if it can 
help anyone I am willing.

Is me too?? considered bad?? sorry if so.

Original comment by lartdena...@gmail.com on 19 Dec 2012 at 12:50

GoogleCodeExporter commented 8 years ago
SOLVED IT!!!

http://code.google.com/p/easycap-somagic-linux/source/browse/tools/somagic-extra
ct-firmware/somagic-extract-firmware.c?r=b4e1adcd7535d2487e5bbdaa54686f6fa087ddc
1

Has UPDATED code for somagic-extract-firmware.c  (Which is not updated in 
current deb file evidently) 

I removed my deb installation. I Compile from source being sure the 
"somagic-extract-firmware.c" is as on that page which specifically addresses 
our 3F

Very easy fix

To whom it may concern- Deb file should be noted as NOT for 3F or updated asap 
so more of us do not go crazy. 

Original comment by lartdena...@gmail.com on 19 Dec 2012 at 2:49

GoogleCodeExporter commented 8 years ago
(update to my solve it above) I have 64bit system so I used vista64 driver 
instead of xp and got the bin. Now off to see if this all works

Original comment by lartdena...@gmail.com on 19 Dec 2012 at 2:51

GoogleCodeExporter commented 8 years ago
Had to uninstall .deb file for driver since the bin file was not recognize.
this page 
http://code.google.com/p/easycap-somagic-linux/source/browse/user/somagic-init.c
?r=306a7981a53dfbd62bb579090cfcd81fefb928a6

has proper code to identify the 3F variant.

As of today even git source/deb does not give SmiUsbGrabber3F.sys information. 
The above 2 web pages addresses this driver and are need to compile properly 
for SmiUsbGrabber3F.sys easycap firmware and driver. 

Again my apologies if I am doing something wrong here. I am trying to help.

Original comment by lartdena...@gmail.com on 19 Dec 2012 at 3:45

GoogleCodeExporter commented 8 years ago
Thanks for posting the your solution. Since I'm new to hardware problems in 
linux can you please please tell me what to do or point me to a link for what 
to do in correct manner to get my somagic thing work? It would be a great great 
help :-)

Original comment by lolith...@gmail.com on 19 Dec 2012 at 4:41

GoogleCodeExporter commented 8 years ago
I am still working on it and intend on updating it as I go.  I am new
too. Which distro are you using? Uninstall all somagic driver and
tools.

Download the source for each. Extract the files.  There are  two links
I supplied on forum you need to use those two files/info on
them.(somagic-init.c  and somagic-extract-firmware.c)

 I just opened in geany (or text program eg Kate)as root and "selected
all and cut" and pasted it all

Gosh I am an artist ..babbler..no good for helping but if the above made sense..

then go into the extracted driver folder -the one that says "usr" and
open all .c files with geany/kate and search for 0x003C and then add
0x003F.  (you probably have to add a comma but keep the format the
same and make sure your doing this all as root.

Then do the make and make install. The .sys to bin was a breeze! and I
have mine initialized now.

 I have another severe problem with my os during an upgrade that I am
also working on. Let me know if you too get it initialize or email if
you have any questions.

Good Luck and sorry your not talking to a tech person they are much
better at explaing clear and concise.

Your's truly,
Barbara

Original comment by lartdena...@gmail.com on 19 Dec 2012 at 6:39

GoogleCodeExporter commented 8 years ago
Thanks Barbara!
I'm stuck like hell in these days. Try it on week end or upcoming holiday week 
;-) and let you know. BTW are you from China? How you got reverse engineered 
the problem? wow.... you are talented.

Original comment by lolith...@gmail.com on 20 Dec 2012 at 7:00

GoogleCodeExporter commented 8 years ago
Thanks Barbara,

I  bought my 4chusbdvr at dx.com. 
I made changes according to your tutorial, and was able to initialize device. 
Bus 001 Device 008: ID 1c88:003f Somagic, Inc. 

and pass the test
root@ubuntu-virtual-machine:/etc/mplayer# somagic-capture --test-only
root@ubuntu-virtual-machine:/etc/mplayer# echo $?
0

But when I try example command from man somagic-capture
root@ubuntu-virtual-machine:/etc/mplayer# somagic-capture --secam | mplayer -vf 
yadif -demuxer rawvideo -rawvideo "pal:format=uyvy:fps=25" -aspect 4:3 -

the result is:
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team

Playing -.
Reading from stdin...

and nothing happens

Can you get some video?

Original comment by ton...@gmail.com on 25 Dec 2012 at 11:12

GoogleCodeExporter commented 8 years ago
I haven't tried the fix that you guys mentioned (although I appreciate the 
help). I'm put off because the real reason I wanted to get this working was so 
I could use it with a security camera as a motion sensor for looking at 
wildlife, but I haven't seen any mention of using somagic-capture with motion. 
Before messing around, I was wondering what your opinion was on using this with 
motion?

Original comment by bux...@rmu.edu on 27 Dec 2012 at 6:29

GoogleCodeExporter commented 8 years ago
Sorry I have no idea :-)

Original comment by lolith...@gmail.com on 28 Dec 2012 at 3:31

GoogleCodeExporter commented 8 years ago
I am sorry. I have not looked at email in over a week nor have I
tackled where I left off with you before. I will get back at this in a
few days. Just want you to know I did not forget you. I am from
western NY LOL not China. I have hacked lots of different stuff by
online info over the years. This one- I guess we are on our own and
hence what I have found out so far. We will see if I have learned
anything over the years. Have a happy New Year and I am pretty
stubborn so I hope to win this battle with our devices.

Original comment by lartdena...@gmail.com on 31 Dec 2012 at 5:45

GoogleCodeExporter commented 8 years ago
Happy new year to you and all those hackers and open source guys in the world 
:-). 
I'll too try to hack on after few days (probably after 10th). Kind of stuck as 
hell in studies and other works.

Original comment by lolith...@gmail.com on 31 Dec 2012 at 5:48

GoogleCodeExporter commented 8 years ago
Ah this New Year seems kinda like last year LOL.
Hi all..while we have got it intialized and NOT Working yet. Noticed when 
actually reading source codes that we are missing important integers..will have 
to do a usbsnoop to add them...and then hope I am not missing something else :  
)...

... I truly do not know what I am doing. LOL Just like when I fed that wild 
raccoon by hand and she sorta bit me ...and recoiled expecting me to hit her. 
But nah, I just asked her what was she doing biting the hand that feeds her. 
Next day/night up she comes with all her babies!

BTW Bux major wildlife lover and why I too am going at this. I picked up 3 
Canon VC-C3 for 40 delivered with remotes and cords...now he double hockey 
sticks is the name of the game. ttfn

Original comment by lartdena...@gmail.com on 3 Jan 2013 at 1:27

GoogleCodeExporter commented 8 years ago
He he he. Something like that happened to me when I found a wounded squirrel. 
She/He bit me too. However happy hacking!

Original comment by lolith...@gmail.com on 3 Jan 2013 at 10:15

GoogleCodeExporter commented 8 years ago
Hi there. Nice work from Barbara, I just pulled git and run make in "tools" and 
"user". Firmware and init was OK, then I got video from input 3, since then it 
stopped to work. There is a question how to chose from those four inputs on my 
ID 1c88:0007 Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) (no firmware) 
[SMI-2021CBE], because there is no option in somagic-capture. I'd like to help 
if someone gives instructions what to do.

Original comment by 101spe...@gmail.com on 10 Jan 2013 at 11:33

GoogleCodeExporter commented 8 years ago
101 thank you but real credit goes to  Jeffry Johnston. Without this webpage:
http://code.google.com/p/easycap-somagic-linux/source/browse/tools/somagic-extra
ct-firmware/somagic-extract-firmware.c?r=b4e1adcd7535d2487e5bbdaa54686f6fa087ddc
1

All I did was take his info and explained it here.

I also want to apologize to you for late reply- sorry. I am not much of an 
email checker. I have about 4 different programming troubleshooting situations 
going on now. Feel like running away from this madness. I am not a programmer 
that's for sure.

You bring up a very good question about the four inputs. Not completely 
confident in knowing what your asking-but I do know that you have to run 
somagic-init every time or build the module into the kernel. You got video?? 
(at least once??) How did you designate it to use 3 and how did you know 3 was 
three? We might all benefit from contacting Jeffrey above which was on my 
agenda but working something more pressing at he moment and intended to contact 
him when I had more time to divert to this..since I have several computers and 
do have windows that works fine with this but I do prefer Linux- no doubt.

Original comment by lartdena...@gmail.com on 16 Jan 2013 at 4:25

GoogleCodeExporter commented 8 years ago
101 thank you but real credit goes to  Jeffry Johnston. Without this webpage:
http://code.google.com/p/easycap-somagic-linux/source/browse/tools/somagic-extra
ct-firmware/somagic-extract-firmware.c?r=b4e1adcd7535d2487e5bbdaa54686f6fa087ddc
1

All I did was take his info and explained it here.

I also want to apologize to you for late reply- sorry. I am not much of an 
email checker. I have about 4 different programming troubleshooting situations 
going on now. Feel like running away from this madness. I am not a programmer 
that's for sure.

You bring up a very good question about the four inputs. Not completely 
confident in knowing what your asking-but I do know that you have to run 
somagic-init every time or build the module into the kernel. You got video?? 
(at least once??) How did you designate it to use 3 and how did you know 3 was 
three? We might all benefit from contacting Jeffrey above which was on my 
agenda but working something more pressing at he moment and intended to contact 
him when I had more time to divert to this..since I have several computers and 
do have windows that works fine with this but I do prefer Linux- no doubt.

Original comment by lartdena...@gmail.com on 16 Jan 2013 at 4:25

GoogleCodeExporter commented 8 years ago
Hi again, sorry for that delay. While I wrote the message, I was very confused. 
Today state is that I can play video in mplayer with "sudo somagic-capture | 
mplayer -demuxer rawvideo -rawvideo "pal:format=uyvy:fps=25" -aspect 4:3 -" 
command (without quotes). I found input 3 luckily, when those packages were 
installing I go and grab all three cameras with composite output and connect 
them. When I try the program for the first time, video was there. Don't know 
what I did after that, but something went wrong with source codes (my fault) 
and I didn't managed to init device again. Now it works smoothly after clear 
and pull repository again. I want to investigate another video inputs options 
(I have device with 4 composite video inputs and one audio) - if it is just 
"wired" in device or chosen in source code. Also don't have much time to try 
things. Thanks.

Original comment by 101spe...@gmail.com on 16 Jan 2013 at 5:58

GoogleCodeExporter commented 8 years ago
Delay 101?? what delay : )
Your speedy Gonzales.

As to " if it is just "wired" in device or chosen in source code" that
is where I had left off- when looking at source code I could not find
it addressed (might of missed it) and why I assumed my video was not
showing up. I do have the 4 composite 1Audio plug.  I only have hook
ups for two cameras and only tried one.

Good to know you got video : ) TYVM (getting video means the rest of
us are not trying in vain)

Original comment by lartdena...@gmail.com on 16 Jan 2013 at 6:59

GoogleCodeExporter commented 8 years ago
Yes, it was after two weeks. Didn't realized, that you wrote just a hour before 
I came. One more thing: is it ok, that I have to comagic-exctract-firmware & 
somagic-init device after each reconnection (after each power off of a USB HUB).

Original comment by 101spe...@gmail.com on 18 Jan 2013 at 7:50

GoogleCodeExporter commented 8 years ago
Yes, it is very normal. You need to compile it into the kernel to have it start 
on every reboot or insertion. This web page explains it easy 
http://ubuntuforums.org/showthread.php?t=1958478
See Section:
Building and using the kernel module
Code:
cd ~/easycap/easycap-somagic-linux/kernel/
Code:
make
sudo modprobe videodev
sudo insmod somagic.ko

Original comment by lartdena...@gmail.com on 18 Jan 2013 at 2:52

GoogleCodeExporter commented 8 years ago
Now I see, that this can make /dev/video* available, but insmod doesn't work.

~/easycap-somagic-linux/kernel$ make
make -C /lib/modules/3.5.0-21-generic/build 
M=/home/jans/Dokumenty/easycap-somagic-linux/kernel modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-21-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-21-generic'

~/easycap-somagic-linux/kernel$ sudo /sbin/insmod somagic.ko
insmod: error inserting 'somagic.ko': -1 Invalid parameters

Original comment by 101spe...@gmail.com on 18 Jan 2013 at 9:22

GoogleCodeExporter commented 8 years ago
Hope you already figured this out.
Again sorry very slow here lol not in real life.
Don't believe you need sbin  in the command. (somagic.ko is located in YOUR 
sbin?)

Original comment by lartdena...@gmail.com on 20 Jan 2013 at 11:41

GoogleCodeExporter commented 8 years ago
I mage the mods to the source per the recommendation above for the driver file 
with the ...3F.sys name.  I was able to complete the driver installation and 
get everything working per the instructions but the easycap is not showing as 
an available devise in VLC.  Is there a procedure for making the device visible 
to VLC?  I have included a link to the updated source to work with the "F" 
suffixed driver file.

http://www.4shared.com/zip/whlhbMiV/EasyCapDC60driverFiles.html

Original comment by pblaw...@gmail.com on 27 Jan 2013 at 5:56

GoogleCodeExporter commented 8 years ago
Fixed in 1.1 release

Original comment by calam...@gmail.com on 12 Mar 2013 at 2:47

GoogleCodeExporter commented 8 years ago
Oh glad to hear it. Was very busy with work! Thought of looking into somagic 
source in April. :-) Glad to hear it was fixed

Original comment by lolith...@gmail.com on 12 Mar 2013 at 5:04

GoogleCodeExporter commented 8 years ago
Thats awesome!!! Thanks!!!

It seems to be working, up until I try to capture video. I'm probably doing 
something silly.....

sudo somagic-capture -n | mplayer -vf yadif,screenshot -demuxer rawvideo 
-rawvideo "ntsc:format=uyvy:fps=30000/1001" -aspect 4:3 -
MPlayer svn r34540 (Ubuntu), built with gcc-4.7 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing -.
Reading from stdin...

And then nothing happens..... when I control-c it outputs....

MPlayer interrupted by signal 2 in module: demux_open
rawvideo file format detected.
Load subtitles in ./
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object 
file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
Opening video filter: [screenshot]
Opening video filter: [yadif]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x9c9a7c0] using unscaled uyvy422 -> yuv420p special converter
VO: [xv] 720x480 => 720x540 Planar YV12 
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
Audio: no sound
Starting playback...
V:   0.0   0/  0 ??% ??% ??,?% 0 0 

Exiting... (Quit)

Original comment by bux...@rmu.edu on 13 Mar 2013 at 3:59

GoogleCodeExporter commented 8 years ago
make sure your video source is playing when you run the command, if no signal 
is found on the capture line it will not popup with video output. In case you 
are still having this issue.

Original comment by johnnyf...@gmail.com on 10 Mar 2014 at 8:56