Page 1 of 1

ffmpeg source - how to specify extra options

Posted: Sun Sep 20, 2009 6:45 am
by lunatic4ever
Hi,

I have a cheap webcam that produces corrupted MJPEG-stream. (it's a KONIG CMP-NWIPCAM10, based on the SQ610 platform)
After messing around with scripting to correct the stream for ZM i found that ffmpeg can handle this corrupt stream but ONLY when you specify the -er parameter and set it to 4

example that works:
ffmpeg -er 4 -y -r 5 -f mjpeg -i "http://192.168.2.15/cgi-bin/Stream?Vide ... ookie00000" -f mjpeg out.avi
This produces a good out.avi file

According to the ZM documentation, anything that can be understood by ffmpeg should work so I tried it but get no image.
I think it has to do with the extra parameters I specified for the input file.

My question is: how can I add these parameters to the ZM ffmpeg source option?

thanks

Posted: Mon Sep 21, 2009 8:46 am
by lunatic4ever
Meanwhile I found a workaround.
I re-stream the corrupted stream using ffserver to another port on my machine and use this new stream in ZM
Works perfectly...

This is where I found the correct setup for ffserver: http://www.infohit.net/blog/post/motion ... linux.html