Easycap (somagic) and Zoneminder

Forum for questions and support relating to the 1.30.x releases only.
Locked
vveren
Posts: 3
Joined: Sun Jun 18, 2017 10:11 pm

Easycap (somagic) and Zoneminder

Post by vveren »

Hello everyone!

I'm trying to make the easycap somagic work identified by lsusb below: Bus 001 Device 004: ID 1c88:003f Somagic, Inc.

In the general tab zoneminder, I configured it as follows:

Source Type: Libvlc

In the source tab zoneminder, I configured it as follows:

Source Path: rtsp://localhost:8099/v.sdp
Remote Method: UDP

In the terminal I typed the following command:

sudo somagic-capture -p --sync=1 --iso-transfers 20 2>/dev/null | ffmpeg -f rawvideo -pix_fmt uyvy422 -s 720x576 -y -an -r pal -i - -s 320x240 -c:v libx264 -preset ultrafast -f mpegts - | su USER -c "cvlc -q --sout '#rtp{sdp=rtsp://localhost:8099/v.sdp}' "

Resulting in the terminal:
----------------------------------------------------------------------------------------------
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, rawvideo, from 'pipe:':
Duration: N/A, start: 0.000000, bitrate: 165888 kb/s
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 165888 kb/s, 25 tbr, 25 tbn, 25 tbc
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x1590840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x1590840] profile High 4:2:2, level 1.3, 4:2:2 8-bit
Output #0, mpegts, to 'pipe:':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264), yuv422p, 320x240, q=-1--1, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.1.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
----------------------------------------------------------------------------------------------

NOTHING APPEARS ON ZONEMINDER! ANYONE HAVE ANY IDEA WHAT I'M DOING WRONG????

Thanks!
Edson Weren
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Easycap (somagic) and Zoneminder

Post by bbunge »

vveren
Posts: 3
Joined: Sun Jun 18, 2017 10:11 pm

Re: Easycap (somagic) and Zoneminder

Post by vveren »

Before performing this post I followed the steps described in: viewtopic.php? T = 24289!

And it did not work!
Locked