Help with cheap ASF-MPEG4 ip cam

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
aNt1X
Posts: 10
Joined: Wed Apr 02, 2008 10:55 am

Help with cheap ASF-MPEG4 ip cam

Post by aNt1X »

Dear users,
i'm currently using some webcam identical to the A-LINKING AAL 9684.

It supports 2 view modes:
http://ip/img/video.asf (used by ActiveX)
http://ip/img/video.jpg

I can point correctly ZoneMinder to the video.jpg image, and it shows correctly, with obviously very poor refresh time. Obviously if i point ZoneMinder to video.asf, it doesn't work.

I'm still not able to view the ASF file.

If i point the ASF directly with TCPMP, it shows it correctly, and the informations provided are:

VIDEO: M4S2
Codec: MPEG4 DivX/XviD
Dimensions: 320x240

I tried the howto provided here
http://www.zoneminder.com/forums/viewtopic.php?t=10766, but i still have problems: it seems that ffmpeg can't recognize the format.
If i run ffmpeg via command line without parameters, i have this error:

Code: Select all

root@videoserver:~# ffmpeg -i http://192.168.1.220/img/video.asf
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jun  3 2007 20:59:25, gcc: 4.1.3 20070528 (prerelease) (Ubuntu 4.1.2-9ubuntu2)
http://192.168.1.220/img/video.asf: Error while opening file
root@videoserver:~#         '
but the video.asf is reachable, because if i use WGET it starts downloading the stream:

Code: Select all

root@videoserver:~# wget http://192.168.1.220/img/video.asf
--15:43:05--  http://192.168.1.220/img/video.asf
           => `video.asf.1'
Connecting to 192.168.1.220:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

    [             <=>                     ] 26,645         7.76K/s
root@videoserver:~#
What can i do? I have these 10 webcams installed, my customer is viewing them via ActiveX, but i would like to view them via ZoneMinder, and use the ZoneMinder motion detection feature.

Thank you very much,
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You have to use jpeg, ZM does not support mpeg, avi, asf capturing as they are patent encumbered.
aNt1X
Posts: 10
Joined: Wed Apr 02, 2008 10:55 am

Post by aNt1X »

cordel wrote:You have to use jpeg, ZM does not support mpeg, avi, asf capturing as they are patent encumbered.
i cannot even use the ffmpeg tool ?

i have a problem with this webcam. this ipcam has a limit of 4 simultaneous viewer.
it seems that if i use the ipcam in jpeg mode and activate Zoneminder, it seems that the webcam immediately reaches the limit, thus locking the webcam: the image doesn't refresh anymore, until i reboot the webcam.

any suggestion? i thought that using the ffmpeg decoder i was able to use Zoneminder ...

thank you very much

aNt1X
agoodm
Posts: 52
Joined: Tue Oct 09, 2007 12:16 pm

Post by agoodm »

Try lowering the frame rate of the monitor to about 2 fps.
aNt1X
Posts: 10
Joined: Wed Apr 02, 2008 10:55 am

Post by aNt1X »

Ok,
i had to recompile ffmpeg.

The version installed with "apt-get install zoneminder" wasn't able to open the asf stream.

I downloaded and compiled the latest svn version, and now i am able to convert the ASF stream to raw video with

Code: Select all

ffmpeg -i http://192.168.1.220/img/video.asf -f rawvideo -pix_fmt rgb24 - | ./vpipe -f rgb -i 0
and point the Zoneminder monitor to /dev/video1

Thank you very much

aNt1X
Post Reply