Page 1 of 2

No mpeg streaming with latest SVN versions of ZM and ffmpeg

Posted: Thu Feb 19, 2009 4:10 am
by timf
On Ubuntu 8.10 I down loaded the latest svn versions of ZM and ffmpeg (rev 28656) and did a fresh install. As usual zm make choked on line 183 of zm_rtsp.cpp so I commented it out - ugly I know, but it allowed the install to proceed.

Everything appears to work fine so far apart from mpeg streaming live video - while this feature is not important to me personally - it's interesting to try and fix. Maybe related to me commenting out line 183 ?

In the syslog I found this:

Feb 18 20:00:19 zoneminder zms[5760]: ERR [Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb734e685]]
Feb 18 20:00:19 zoneminder zms[5760]: ERR [Backtrace: /usr/lib/cgi-bin/nph-zms [0x804cad1]]
Feb 18 20:00:19 zoneminder zms[5760]: INF [Backtrace complete, please execute the following command for more information]

So I did and this was the output:


root@zoneminder:~# addr2line -e /usr/lib/cgi-bin/nph-zms 0xb8093430 0xb8093430 0xb74278a0 0xb7429268 0x805660d 0x8078db1 0x806c96e 0x8071f1c 0x804d43a 0xb7412685 0x804cad1
??:0
??:0
??:0
??:0
??:0
/home/tim/downloads/zm/src/zm_mpeg.cpp:168
/home/tim/downloads/zm/src/zm_monitor.cpp:3255
/home/tim/downloads/zm/src/zm_monitor.cpp:3489
/home/tim/downloads/zm/src/zms.cpp:282
??:0
??:0
root@zoneminder:~# addr2line -e /usr/lib/cgi-bin/nph-zms 0xb7fcf430 0xb7fcf430 0xb73638a0 0xb7365268 0x805660d 0x8078db1 0x806c96e 0x8071f1c 0x804d43a 0xb734e685 0x804cad1
??:0
??:0
??:0
??:0
??:0
/home/tim/downloads/zm/src/zm_mpeg.cpp:168
/home/tim/downloads/zm/src/zm_monitor.cpp:3255
/home/tim/downloads/zm/src/zm_monitor.cpp:3489
/home/tim/downloads/zm/src/zms.cpp:282
??:0
??:0

The error on line 168 refers to codec not found - so maybe a path problem ?
Any ideas suggestions ?

Tim

Posted: Thu Feb 19, 2009 5:29 am
by newvisionantenna
I haven't had it choke like it used to lately, but the mpeg streaming option has stopped working. I remember using it about a week or so ago, worked in IE7 with no problems. Do you still have that DVD laying around? Just wonder if mpeg streaming still works on it. I left the ffmpeg source on it so maybe we when about it stopped working.


edit: Just checked, the free DVD version that I made with ffmpeg SVN-r16420 still has mpeg streaming working. I just installed it inside a vps and tried it with IE7 and got video with mpeg selected in options. Maybe it would be best to grab that version and then apply the rtsp patch to it, unless there is some new feature that is required out of ffmpeg as of recent.

It's almost like we need our own special ffmpeg designed just for Zoneminder, every day it's something new that's causing issues.

Posted: Thu Feb 19, 2009 7:26 am
by nuck
newvisionantenna wrote:It's almost like we need our own special ffmpeg designed just for Zoneminder, every day it's something new that's causing issues.
If it's of any help, I just installed zm svn-2778 tonight with ffmpeg svn-17125 (dated Feb 10th).

Posted: Thu Feb 19, 2009 8:28 am
by newvisionantenna
With that combo does mpeg streaming still working when selected in the options? Just trying to find a version of ffmpeg that enables all features to work seems like half the battle.

Posted: Tue Mar 10, 2009 9:09 am
by newvisionantenna
This topic seems to have died out but I don't think the problem was solved. I'm trying to figure out if the problem is with ffmpeg or the newer releases of Zoneminder. I know that on an older DVD I made this option was working. I also remember that clicking on the image would make the image zoomed in. What is breaking these options? Is it newer svn ffmpeg or newer Zoneminder not working correct?

Nuck never said if his combo worked and noone has said anything more about it. I assume people are not aware of the option or just don't care that it's broken in some cases.

Posted: Wed Mar 11, 2009 10:56 am
by punk_ecas
I have the same problem. With jpeg on options everything is fine, but when i choose mpeg with asf or swf format I can't get video.

I have installed the last versions of zm and ffmpeg(SVN-r17942) from svn.

Any suggest to fix this?

PS.: Sorry about my english!

Posted: Wed Mar 11, 2009 12:10 pm
by newvisionantenna
I had some time so I went back and looked at my DVD I made a month ago. The ffmpeg and Zoneminder used at the time had that option working and the scale feature and zoom option when I would click on the picture. I was thinking I could use that ffmpeg version in a newer build but the RTSP files that the patch is for are not present in that ffmpeg build. I know that ffmpeg changes all the time, but could we atleast get a version number that has every option working with Zoneminder? If I don't want to get errors while building I need to use a new version, but newer version's have changed and the RTSP patch no longer works. I tried to figure out maually what the changes are but looking at the actual file looks nothing like the example in the patch.

Then if I use the newer builds then I lose features that are suppose to work with Zoneminder. I guess most people don't care or don't bother to fully check out their install because I know that we are not the only people seeing these issues.

Posted: Wed Mar 11, 2009 7:14 pm
by Blazer
I totally agree that ffmpeg is to blame for these sorts of issues.

I have used ffmpeg for many projects over the past couple of years, including zoneminder, and I have always been bitten by using the "latest svn" of ffmpeg, and even certain point builds, because they seemingly drastically change things with every build! For instance in the latest svn build of ffmpeg, the --enable-swscale option has been completely removed!

I seriously think that there should be a stick and in the Zoneminder readme and install files which version of ffmpeg was used in the development, so that people can use that exact same version and thus have no problems.

I'm about to try checking out the ver you said worked for you, via:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk -r16420 ffmpeg

And see if that solves my issues.

Posted: Wed Mar 11, 2009 7:49 pm
by Blazer
I switched to ffmpeg ver 0.5 instead of using an svn build. It did not have any effect on my jpeg decode errors, (in case wondering, yes I recompiled/reinstalled zm afterwards) so again this acts like a libjpeg problem, yet ZM 1.23.3 and even an rpm version of 1.22.3 work fine on the same server. So strange!

Posted: Wed Mar 11, 2009 11:08 pm
by newvisionantenna
Let me know how that older ffmpeg works. I tried to apply the rtsp patch, but I found out the file to patch was not even included in that build. I'm not sure if that means rtsp won't work or just the authentication part. I seem to recall using that DVD and build on my VPS also and doing a test with Bluecherry's RTSP feed they let me demo. It had the default admin/admin but RTSP actually worked now that i think about it.

I think I will go back to that version and do further testing. If I lose the option to change the user name and password but get everything else back it's worth it to me and the project i'm working on.

Posted: Thu Mar 12, 2009 11:16 am
by punk_ecas
newvisionantenna,

http://67.210.200.98/ this is your demo page, right?
If you activate mpeg that won't work?

And about RTSP patch that you talk in other posts, what it does?

I would like to know if it's possible to stream video in rtsp with zm.

Posted: Thu Mar 12, 2009 2:08 pm
by newvisionantenna
That is a small demo, need to check it out since I've been so busy lately. I'll turn mpeg on but last time I checked it wasn't working with the newer ffmpeg builds.

The rtsp patch was submitted to fix ffmpeg and allow Axis and other rtsp camera's in regards to using the default admin/admin user name and password. The big feature in 1.24 and newer is RTSP, that's the big push. I know it works and had a bluecherry demo cam online at my demo server and it worked great. The picture quality was great and there was little to no cpu usage on the server. Add to the fact it was streaming to a remote server and still getting decent quality.

Posted: Thu Mar 12, 2009 4:02 pm
by newvisionantenna
I just spent some time and rebuilt that demo with mmap on and also used the ffmpeg build I mentioned earlier. Mpeg option in zoneminder is selected and works just fine with IE7. One thing I'm seeing is the newer 1.24.1 is still not zooming and scaleing like it used to on 1.24.0. If I could just get someone to test and confirm a known RTSP camera works on my server I would be helpful. I'm about 95% sure this version of ffmpeg worked using atlease the default user name and password on ACTI.

Posted: Thu Mar 12, 2009 4:23 pm
by punk_ecas
Thanks for trying mpeg, it works fine.
The ffmpeg version that you have on that demo is SVN-r16420? do you think the mmap also helps on getting mpeg streaming?

I don't know want's going on with ffmpeg server, it has been down lately.

unfortunately i don't have any rtsp camera to help you.

Posted: Thu Mar 12, 2009 4:41 pm
by newvisionantenna
The mmap had no effect on the streaming as it worked before with shared memory. I just wanted to give it another chance since it seems alittle easier if it works compared to changing shared memory settings. I was wondering why I couldn't pull down the proper SVN and finally figured out the site was down. I had a local zip file of the version I said worked. I'm trying to find a RTSP video feed so that I can test it out. I'll keep looking unless someone has a camera I can try.