Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/09/2014, à 09:58

Marko

Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

Bonjour,

Je souhaite faire fonctionner la clef EasyCAP DC60+ sous linux, et si possible avec VLC.

un lsusb me donne la versions suivante :

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

Etape 1 :
J'ai suivi la procédure d'installation suivante :
https://code.google.com/p/easycap-somag … ingStarted
avec les package deb, et extrait le firmare pour avoir un fichier /lib/firmware/somagic_firmware.bin

J'ai ensuite fait un somagic-init, et un lsusb :

Bus 003 Device 010: ID 1c88:003c Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) [SMI-2021CBE] 

Donc jusque là, tout va bien : la clef fonctionne, j'arrive à avoir l'image via une ligne de commande avec mplayer (trouvée sur le net).
Donc la clef fonctionne.

Mais après???

impossible de l'utiliser avec VLC puisque la manipulation n'a pas créé de /dev/video1 (video0 étant ma webcam).

Etape 2 : On recommence avec Git, modprobe et insmod

Intérêt : sur cette page : il est dit que ça créé un /dev/video1

USAGE:
-------------------------------------------------------------------------------
make
sudo /sbin/insmod somagic.ko [video_field_order=(0|1|2)]

* MPLAYER
To play audio/video with mplayer: (Replace the number in squarebrackets with your device number)
#> mplayer -vo x11 \
> tv://norm=PAL \
> -tv driver=v4l2:immediatemode=0:device=/dev/video[1]:norm=pal:forceaudio:alsa:audiorate=48000:amode=1:adevice=plughw.[2,0]

* VLC
(Replace the number in squarebrackets with your device number)
Select "Media --> Open Capture Device"
Video device name = "/dev/video[1]"
Audio device name = "plughw:[2,0]"

Donc, avec Git, et cette méthode : Via cette méthode : http://ubuntuforums.org/showthread.php?t=1958478
Je recréé le firmware, et je passe à l'étape "Building and using the kernel module" :

cd ~/easycap/easycap-somagic-linux/kernel/
make
sudo modprobe videodev
sudo insmod somagic.ko

Sauf que lorsque je fait le make, ça plante, et je ne sais pas pourquoi (je ne compile quasiment jamais) :

ubuntu:~/easycap/easycap-somagic-linux/kernel$ make 
make -C /lib/modules/3.13.0-35-generic/build M=/home/marko/easycap/easycap-somagic-linux/kernel modules 
make[1]: entrant dans le répertoire « /usr/src/linux-headers-3.13.0-35-generic » 
  CC [M]  /home/marko/easycap/easycap-somagic-linux/kernel/smi2021_v4l2.o 
In file included from /home/marko/easycap/easycap-somagic-linux/kernel/smi2021_v4l2.c:36:0: 
/home/marko/easycap/easycap-somagic-linux/kernel/smi2021.h:50:35: fatal error: media/v4l2-chip-ident.h: Aucun fichier ou dossier de ce type 
 #include <media/v4l2-chip-ident.h> 
                                   ^ 
compilation terminated. 
make[2]: *** [/home/marko/easycap/easycap-somagic-linux/kernel/smi2021_v4l2.o] Erreur 1 
make[1]: *** [_module_/home/marko/easycap/easycap-somagic-linux/kernel] Erreur 2 
make[1]: quittant le répertoire « /usr/src/linux-headers-3.13.0-35-generic » 
make: *** [all] Erreur 2 

Donc comment faire pour créer le fichier somagic.ko, avoir un /dev/video1 et l'utiliser avec mon logiciel préféré ?

Je vous remercie par avance pour votre aide.

Dernière modification par Marko (Le 14/09/2014, à 09:59)


Fractal Design R4 / GA Z87-HD3 / Intel Core I5-4670K sous 14.04 64 Bits / Win10

Hors ligne

#2 Le 14/09/2014, à 11:38

bishop.sad.clown

Re : Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

Marko a écrit :

...
Donc jusque là, tout va bien : la clef fonctionne, j'arrive à avoir l'image via une ligne de commande avec mplayer (trouvée sur le net).
Donc la clef fonctionne
...

Puisque à ce stade cela fonctionne, montre nous la commande, histoire de voir si on peut l'adapter à VLC...


@++ , Rob'
→ Trusty x64
Je n'ai pas toujours les réponses mais je les cherche en même temps que vous... =· þ

Hors ligne

#3 Le 14/09/2014, à 12:11

Marko

Re : Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

Bonjour bishop.sad.clown,

merci pour ta réponse.

Commande Mplayer

sudo somagic-capture -n --luminance=0 --lum-aperture=3 --contrast=88 --sync=1 | mplayer -vf yadif -demuxer rawvideo -rawvideo "ntsc:format=uyvy:fps=30/1.001:w=720:h=480" -aspect 3:2 -

Celle ci fonctionne

Commande VLC :

sudo somagic-capture -n --luminance=0 --lum-aperture=3 --contrast=88 --sync=1 | vlc --demux rawvid --rawvid-fps 30 --rawvid-width 720 --rawvid-height 480 --rawvid-chroma=UYVY -

Celle là ne fonctionne pas chez moi.

Source : http://forum.ubuntu-fr.org/viewtopic.php?id=1068451

J'ajoute que la commande mplayer ne fonctionne qu'une fois. Ensuite, la video ne se lance plus.
(bon, ma source video n'est pas stable, il faut que j'en trouve une autre)

Copie d'écran

Dernière modification par Marko (Le 14/09/2014, à 12:12)


Fractal Design R4 / GA Z87-HD3 / Intel Core I5-4670K sous 14.04 64 Bits / Win10

Hors ligne

#4 Le 14/09/2014, à 13:45

Marko

Re : Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

J'ai refait toute la procédure d'installation par Git :

Installation du Firmware : OK

Marko@Marko-ubuntu:~$ mkdir easycap
Marko@Marko-ubuntu:~$ cd easycap
Marko@Marko-ubuntu:~/easycap$ git clone https://code.google.com/p/easycap-somagic-linux/
Clonage dans 'easycap-somagic-linux'...
remote: Counting objects: 1430, done.
Réception d'objets: 100% (1430/1430), 73.92 MiB | 919.00 KiB/s, done.
Résolution des deltas: 100% (772/772), done.
Vérification de la connectivité... fait.
Marko@Marko-ubuntu:~/easycap$ cd ~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ ls
debian  Makefile  man  README  somagic-extract-firmware.c
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ make
cc -s -W -Wall somagic-extract-firmware.c -o somagic-extract-firmware -lgcrypt
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ ls
debian  Makefile  man  README  SmiUsbGrabber3C.sys  somagic-extract-firmware  somagic-extract-firmware.c
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ ls
debian  Makefile  man  README  SmiUsbGrabber3C.sys  somagic-extract-firmware  somagic-extract-firmware.c
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ sudo ./somagic-extract-firmware SmiUsbGrabber3C.sys
[sudo] password for Marko: 
Firmware written to '/lib/firmware/somagic_firmware.bin'.
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ sudo rm /lib/firmware/somagic_firmware.bin
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ sudo ./somagic-extract-firmware SmiUsbGrabber3C.sys
Firmware written to '/lib/firmware/somagic_firmware.bin'.
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/tools/somagic-extract-firmware$ cd ~/easycap/easycap-somagic-linux/user
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ ls
debian  Makefile  man  README  somagic-audio-capture.c  somagic-both.c  somagic-capture.c  somagic-init.c
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ make && sudo make install
cc -s -W -Wall somagic-init.c -o somagic-init -lusb-1.0 -lgcrypt
cc -s -W -Wall somagic-capture.c -o somagic-capture -lusb-1.0 -lgcrypt
mkdir -p /usr/local/bin
install somagic-init somagic-capture /usr/local/bin/
mkdir -p /usr/local/share/man/man1
install man/somagic-init.1 man/somagic-capture.1 /usr/local/share/man/man1/
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 046d:09a2 Logitech, Inc. QuickCam Communicate Deluxe/S7500
Bus 003 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 003 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 003 Device 002: ID 046d:c03f Logitech, Inc. M-BT85 [UltraX Optical Mouse]
Bus 003 Device 007: ID 1c88:0007 Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) (no firmware) [SMI-2021CBE]
Bus 003 Device 006: ID 1267:0103 Logic3 / SpectraVideo plc G-720 Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ sudo somagic-init
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 046d:09a2 Logitech, Inc. QuickCam Communicate Deluxe/S7500
Bus 003 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 003 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 003 Device 002: ID 046d:c03f Logitech, Inc. M-BT85 [UltraX Optical Mouse]
Bus 003 Device 008: ID 1c88:003c Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) [SMI-2021CBE]
Bus 003 Device 006: ID 1267:0103 Logic3 / SpectraVideo plc G-720 Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Test Vidéo 1 : Echec

Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ sudo somagic-capture -c --iso-transfers 100 --pal --sync=1 | mplayer -nocache -vf yadif -demuxer rawvideo -rawvideo "pal:format=uyvy:fps=25" -aspect 4:3 -
somagic-capture: Failed to submit request #84 for transfer: Cannot allocate memory
MPlayer 1.1-4.8 (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...
rawvideo file format detected.
Load subtitles in ./
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
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 @ 0x1d51280] using unscaled uyvy422 -> yuv420p special converter
VO: [xv] 720x576 => 768x576 Planar YV12 
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
Audio: no sound
Starting playback...
V:   0.0   0/  0 ??% ??% ??,?% 0 0 


Exiting... (End of file)

Test Vidéo 2 : OK, mais ça ne fonctionne qu'une seule fois

Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ sudo somagic-capture -n --luminance=0 --lum-aperture=3 --contrast=88 --sync=1 | mplayer -vf yadif -demuxer rawvideo -rawvideo "ntsc:format=uyvy:fps=30/1.001:w=720:h=480" -aspect 3:2 -
MPlayer 1.1-4.8 (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...
bad sync on line 0 @0 (0000)
resync after 129 @128(0080)
bad sync on line 0 @392 (0188)
bad sync on line 0 @0 (0000)
resync after 255 @254(00fe)
bad sync on line 0 @682 (02aa)
bad sync on line 0 @0 (0000)
resync after 315 @314(013a)
rawvideo file format detected.
Load subtitles in ./
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
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.50:1 - prescaling to correct movie aspect.
[swscaler @ 0x158c2e0] using unscaled uyvy422 -> yuv420p special converter
VO: [xv] 720x480 => 720x480 Planar YV12 
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
Audio: no sound
Starting playback...
bad sync on line 173 @18 (0012)0 0 
bad sync on line 173 @0 (0000)
resync after 441 @440(01b8)
bad sync on line 202 @60 (003c)0 0 
bad sync on line 202 @0 (0000)
resync after 479 @478(01de)
bad sync on line 179 @230 (00e6) 0 
resync after 3 @232(00e8)
V:  27.8 835/835  0% 10%  0.0% 0 0 

Exiting... (Quit)

Building and using the kernel module : Erreur "Make"

Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/user$ cd ~/easycap/easycap-somagic-linux/kernel/
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/kernel$ ls
Makefile  smi2021_audio.c  smi2021.h      smi2021_main.c  smi2021_video.c
README    smi2021_bl.c     smi2021_i2c.c  smi2021_v4l2.c
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/kernel$ make
make -C /lib/modules/3.13.0-35-generic/build M=/home/Marko/easycap/easycap-somagic-linux/kernel modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-3.13.0-35-generic »
  CC [M]  /home/Marko/easycap/easycap-somagic-linux/kernel/smi2021_v4l2.o
In file included from /home/Marko/easycap/easycap-somagic-linux/kernel/smi2021_v4l2.c:36:0:
/home/Marko/easycap/easycap-somagic-linux/kernel/smi2021.h:50:35: fatal error: media/v4l2-chip-ident.h: Aucun fichier ou dossier de ce type
 #include <media/v4l2-chip-ident.h>
                                   ^
compilation terminated.
make[2]: *** [/home/Marko/easycap/easycap-somagic-linux/kernel/smi2021_v4l2.o] Erreur 1
make[1]: *** [_module_/home/Marko/easycap/easycap-somagic-linux/kernel] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-3.13.0-35-generic »
make: *** [all] Erreur 2
Marko@Marko-ubuntu:~/easycap/easycap-somagic-linux/kernel$ 

Dernière modification par Marko (Le 14/09/2014, à 13:55)


Fractal Design R4 / GA Z87-HD3 / Intel Core I5-4670K sous 14.04 64 Bits / Win10

Hors ligne

#5 Le 16/09/2014, à 20:00

Marko

Re : Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

Up.

personne n’utilise cette clef ?


Fractal Design R4 / GA Z87-HD3 / Intel Core I5-4670K sous 14.04 64 Bits / Win10

Hors ligne

#6 Le 06/11/2014, à 00:14

dragstere42

Re : Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

Bonjour,
J'utilise la même cle que vous mais jai exactement le même souci,
Elle n'est pas reconnu sous /dev/video

Avez vous une solution ?
Cordialement

Hors ligne

#7 Le 06/11/2014, à 08:30

Marko

Re : Clef EasyCAP DC60+ : Pas de /dev/video1 ! (somagic.ko)

Bonjour,

non, je n'ai pas trouvé de solution.
Je l'utilise sous Windows ... forcé et contraint...


Fractal Design R4 / GA Z87-HD3 / Intel Core I5-4670K sous 14.04 64 Bits / Win10

Hors ligne