Page 1 of 1

ffmpeg libraries

Posted: Mon Mar 08, 2010 10:38 am
by novazion
Hello,

I've got a problem trying to get a rtsp stream from an Axis camera.

Switching debug mode to on and level to 9 I can see this:

Code: Select all

03/08/10 11:27:15.068046 zmc_m1[8032].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.08032]
03/08/10 11:27:15.068800 zmc_m1[8032].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
03/08/10 11:27:15.068872 zmc_m1[8032].FAT-zm_monitor.cpp/2380 [You must have ffmpeg libraries installed to use remote camera protocol 'rtsp' for monitor 1]
However ffmpeg returns in a command prompt:

libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.37. 1
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1. 4. 1 / 1. 4. 1
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0

Is it a path problem?
By default the path was /usr/local/bin/ffmpeg.
I switch it to /usr/bin which is my path to ffmpeg.

I also tried to copy ffmpeg executable to /usr/local/bin for a try.

Nothings work.

Any helps or comments would be greatly appreciated. I'm on a despair ;)

Thank You.
Emeric.

Posted: Mon Mar 08, 2010 11:27 am
by mastertheknife
Hi,

I think you didn't compile zm with ffmpeg support.


mastertheknife.

Posted: Mon Mar 08, 2010 2:05 pm
by novazion
Thank you for your answer.

I "yumed" it under a fedora Core 12. Is there a way to know if it has been compiled with ffmpeg support?

Thanks.
Emeric.

Posted: Wed Mar 10, 2010 1:33 pm
by Nadrek
I've just gotten the ffmpeg working with a stream from VLC.

So, in brief:
A) Get VLC installed and playing something (in my instance, an old Logitech QuickCam Communicate STX on a Windows system)

B) Start VLC as follows, once you know it plays (adjust the input device dshow:// as appropriate):

Code: Select all

vlc dshow:// :sout=#transcode{vcodec=DIV3,vb=800,scale=1,acodec=none}:std{access=http,mux=asf,dst=0.0.0.0:8720}
OR

Code: Select all

vlc dshow:// :sout=#transcode{vcodec=MJPG,vb=800,scale=1,acodec=none}:std{access=http,mux=asf,dst=0.0.0.0:8720}
OR, (and after you start Zoneminder, get some coffee; this takes a very long time and has on my setup ~13s of latency, but does decode):

Code: Select all

vlc dshow:// :sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=none}:std{access=http,mux=asf,dst=0.0.0.0:8720}

Then create a Zoneminder camera
Zoneminder 1.24.1 on Ubuntu 9.04 (upgraded from 8.10) 64-bit has been tested and works
type ffmpeg
source path http://x.y.z.q:port
24 bit color
Fill in X and Y dimensions
MONITOR mode


Ensure firewalls between the machines allow communication (watch network monitor, wireshark, saidar, or whatever else to view the network traffic).

Start VLC, start viewing the Zoneminder camera. If it works, your zoneminder can use ffmpeg sources.

I have had no luck with most containers and most vcodecs; the above three are known to work on my setup, though I'm sure more combinations also work.

Posted: Fri Mar 19, 2010 10:34 am
by dariush
Hi Nadrek,
I'm using exactly the same config to stream my screen, but there's a problem when I stop vlc (so stopping the streaming).
The related zmc process starts consuming CPU resources and the only way to make it stopping is just restarting zm!!!!

Have you experienced the same behaviour?
I'd need to record specific screen sessions and not having the stream from vlc all the time..

Ciao, Dariush.

Posted: Sun Mar 21, 2010 4:11 am
by Nadrek
Yes, I have had exactly the same problem.

ZM 1.24.1 default install on Ubuntu 9.04 x64 (Synaptic upgrade from 8.10 x64), MSI K9AGM-FID motherboard, Intel Pro/1000 PT NIC, AMD Athlon X2 dual core. After VLC shuts down, ZM takes up 50% of CPU (i.e. 100% of one core) until restarted.

Posted: Sun Mar 21, 2010 6:44 pm
by dariush
I'll check the zmc code to find where the problem is when the ffmpeg camera is used and will give you a feedback.
Talk to you in the next days.
Dariush.