zmc crash with ffmpeg source on upgrade

Forum for questions and support relating to the 1.25.x releases only.
Locked
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

zmc crash with ffmpeg source on upgrade

Post by Phoenix84 »

After upgrading to 1.25.0 from 1.24.4, I get a seg fault when zmc loads with an ffmpeg source.

Code: Select all

dragon bin # /usr/bin/zmc -m 1
[h264 @ 0x7ecb010] Format h264 probed with size=2048 and score=51
[h264 @ 0x7ecb010] max_analyze_duration 5000000 reached at 5000000
[h264 @ 0x7ecb010] Estimating duration from bitrate, this may be inaccurate
Segmentation fault (core dumped)
ZM log:

Code: Select all

2011-11-19 02:08:12.500835	zmc_m1	19145	INF	Priming capture from /tmp/zmodo0	zm_ffmpeg_camera.cpp	91
2011-11-19 02:08:12.500048	zmc_m1	19145	INF	Starting Capture	zmc.cpp	191
I looked at the core dump, and it's crashing at zm_ffmpeg_camera.cpp:106
mFormatContext->streams[0] is NULL.

This is with ffmpeg 0.7.7.

I can record from the stream directly with ffmpeg, so I know it's working. I even deleted all the tables and reran the zmcreate.sql script.

Any ideas?
Phoenix84
Posts: 21
Joined: Sat Jun 25, 2011 7:20 pm

Re: zmc crash with ffmpeg source on upgrade

Post by Phoenix84 »

I figured it out.
In case anyone else runs into this...

Apparently either the ffmpeg build, or the zoneminder build was also finding libaries under /usr/local.
I had custom built libx264 and ffmpeg packages, and had them stored under /usr/local. Something was picking that up and causing issues (even though I didn't supply it explicitly).
This was on Gentoo.
Locked