Problems with MPEG streaming

Forum for questions and support relating to the 1.24.x releases only.
Locked
stevelup
Posts: 3
Joined: Tue May 19, 2009 2:20 pm

Problems with MPEG streaming

Post by stevelup »

Hi

Thanks for a fantastic piece of software.

I'm struggling to get MPEG streaming working. I'll run through the steps I have taken to try and resolve this.

1) Fresh, clean install of Debian 5.0
2) Latest FFMPEG SVN built from source - all libraries and headers in the right place
3) Zoneminder 1.24.1 again freshly built from source

No errors or problems during compilation and installation. All features work fine except MPEG streaming.

nph-zms crashes as soon as you try to open an MPEG stream. Diagnostics below:-

Code: Select all

ay 19 15:14:10 goatcam zms[26188]: INF [Debug Level = 0, Debug Log = <none>]
May 19 15:14:10 goatcam zms[26188]: Libgcrypt warning: missing initialization - please fix the application
May 19 15:14:10 goatcam zms[26188]: INF [Authenticated user 'admin']
May 19 15:14:10 goatcam zms[26188]: INF [Got signal 15 (Terminated), exiting]
May 19 15:14:10 goatcam zms[26188]: FAT [Error -1 while writing video frame]
May 19 15:14:10 goatcam zms[26188]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
May 19 15:14:10 goatcam zms[26188]: ERR [Signal address is (nil), from 0xb7f32424]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: [0xb7f32424]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: [0xb7f32424]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /lib/i686/cmov/libc.so.6(gsignal+0x50) [0xb7002640]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /lib/i686/cmov/libc.so.6(abort+0x188) [0xb7004008]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x80561f8]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x80772b8]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x806c0d7]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x806cbc4]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x804d21a]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb6fed775]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x804c8e1]]
May 19 15:14:10 goatcam zms[26188]: INF [Backtrace complete, please execute the following command for more information]
May 19 15:14:10 goatcam zms[26188]: INF [addr2line -e /usr/lib/cgi-bin/nph-zms 0xb7f32424 0xb7f32424 0xb7002640 0xb7004008 0x80561f8 0x80772b8 0x806c0d7 0x806cbc4 0x804d21a 0xb6fed775 0x804c8e1]

Code: Select all

goatcam:/var/log# addr2line -e /usr/lib/cgi-bin/nph-zms 0xb7f32424 0xb7f32424 0xb7002640 0xb7004008 0x80561f8 0x80772b8 0x806c0d7 0x806cbc4 0x804d21a 0xb6fed775 0x804c8e1
??:0
??:0
??:0
??:0
??:0
/root/ZoneMinder-1.24.1/src/zm_mpeg.cpp:384
/root/ZoneMinder-1.24.1/src/zm_monitor.cpp:3262
/root/ZoneMinder-1.24.1/src/zm_monitor.cpp:3489
/root/ZoneMinder-1.24.1/src/zms.cpp:282
??:0
/build/buildd-glibc_2.9-7-i386-XDyi15/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
Any ideas? I'm pretty good at googling and pretty good at problem solving but this has left me stumped.

Thanks,

Steve
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

i would suggest reinstalling or reconfiguring Libgcrypt, like

apt-get install ......

or even

dpkg-reconfigure .......

and then see what you get;
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
stevelup
Posts: 3
Joined: Tue May 19, 2009 2:20 pm

Post by stevelup »

Done that - even rebuilt it from source and made sure only the new libraries were available.

Googling for the libgcrypt warning shows that lots of people experience that and it has no other effect so I decided - possibly incorrectly - to ignore it!

It's worth pointing out that that warning appears elsewhere in the logs and seems independent of the MPEG problem as far as I can see.

Thanks,

Steve
belanger
Posts: 19
Joined: Wed Apr 15, 2009 10:09 am

Post by belanger »

henriquejf wrote:i would suggest reinstalling or reconfiguring Libgcrypt, like

apt-get install ......

or even

dpkg-reconfigure .......

and then see what you get;
Libcrypt has nothing to do with this bug. First of, its a warning and 2nd the user is indeed authenticated so that proves its not related to this bug. The warning comes from the library but it complains that the application layer did not properly initialise a variable but as logged by the application, the authentication did work.

Looking at the traceback, the bug happens in libc called by the application :

May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb6fed775]]
May 19 15:14:10 goatcam zms[26188]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x804c8e1]]

stevelup, can you output the following command as stated in the debug information.

addr2line -e /usr/lib/cgi-bin/nph-zms 0xb7f32424 0xb7f32424 0xb7002640 0xb7004008 0x80561f8 0x80772b8 0x806c0d7 0x806cbc4 0x804d21a 0xb6fed775 0x804c8e1

Pierre B.
stevelup
Posts: 3
Joined: Tue May 19, 2009 2:20 pm

Post by stevelup »

Hi

I did the addr2line - it's the second code block in my original post.

Regards,

Steve
Locked