Where's the latest tarball, build and install instructions?

Forum for questions and support relating to the 1.27.x releases only.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

libvlc or ffmpeg?
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

linuxsense wrote:libvlc or ffmpeg?
How can I tell which one is being used?
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

Under 'Source Type' in the monitors setup page. I have not had good luck with ffmpeg, libvlc works better for my RTSP camera.

eta: Forgot to mention that in order to use libvlc you need to have the VLC libs installed when you compile ZM.
rockedge
Posts: 1199
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Where's the latest tarball, build and install instructio

Post by rockedge »

I see the issue. The initial 'zm_create.sql' file does not setup the DB with the latest requirements. Use 'zm_update-1.27.1.sql' in the 'db' folder of the source to resolve the problem. Depending on your config this command might need the password option but if you stop ZM and execute 'mysql zm < zm_update-1.27.1.sql' you should be good to go. At least on that issue,
I ran across this problem as well, I will try this out right away on the machine exhibiting this error! Thanks for the insight!
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

linuxsense wrote:Under 'Source Type' in the monitors setup page. I have not had good luck with ffmpeg, libvlc works better for my RTSP camera.

eta: Forgot to mention that in order to use libvlc you need to have the VLC libs installed when you compile ZM.
Thanks. I didn't know where that feature was added.

It doesn't work because vlc was built without rtsp. I'm fixing that now.

But I have vlc installed on my laptop and it can't play the rtsp stream even with rtsp support so I suspect there are other options missing.

What is the format for the rtsp URL?

I've tried these and several other variations.
vlc rtsp://10.1.10.8:554/11
rtsp://10.1.10.8:88/videoMain
rtsp://10.1.10.8/video.asf

ffplay works with this:
ffplay rtsp://admin:admin@10.1.10.8:554/11
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

If VLC on your laptop wont play the RTSP stream it might not have the support for it, you might want to run vlc from the command line and watch the output when you connect. For RTSP on VLC just use rtsp://192.168.1.1/11 without user auth, with auth it should be rtsp://user:pass@192.168.1.1/11.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

FYI, this is what my build looks like with libvlc enabled and working well:

Code: Select all

david@ZoneMinder:~$ ldd /usr/local/bin/zmc
	linux-vdso.so.1 =>  (0x00007fff0b399000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc862ad3000)
	libvlc.so.5 => /usr/lib/libvlc.so.5 (0x00007fc8628ba000)
	libswscale.so.2 => /usr/local/lib/libswscale.so.2 (0x00007fc86263c000)
	libavformat.so.55 => /usr/local/lib/libavformat.so.55 (0x00007fc8622a5000)
	libavcodec.so.55 => /usr/local/lib/libavcodec.so.55 (0x00007fc8610ac000)
	libavutil.so.52 => /usr/local/lib/libavutil.so.52 (0x00007fc860e59000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fc860c1a000)
	libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fc86083f000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc860621000)
	libjpeg.so.62 => /opt/libjpeg-turbo/lib64/libjpeg.so.62 (0x00007fc8604c8000)
	libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007fc85ff90000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc85fc8c000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc85f987000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc85f771000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc85f3a7000)
	libvlccore.so.5 => /usr/lib/libvlccore.so.5 (0x00007fc85f0c3000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fc85eeb3000)
	libx264.so.123 => /usr/lib/x86_64-linux-gnu/libx264.so.123 (0x00007fc85eb23000)
	libvpx.so.1 => /usr/lib/x86_64-linux-gnu/libvpx.so.1 (0x00007fc85e883000)
	libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007fc85e3b4000)
	libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007fc85e186000)
	libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007fc85df45000)
	libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007fc85dd29000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc85db24000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fc862d02000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fc85d8e0000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc85d6d7000)
	libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007fc85d4d0000)
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

linuxsense wrote:If VLC on your laptop wont play the RTSP stream it might not have the support for it, you might want to run vlc from the command line and watch the output when you connect. For RTSP on VLC just use rtsp://192.168.1.1/11 without user auth, with auth it should be rtsp://user:pass@192.168.1.1/11.
Meh. Doesn't work. VLC can't play it either so I must be missing some option of VLC.

Its much closer though. Thanks very much for your help.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

Are you running the VLC client on Windows or Linux? I had some issues with the default VLC package on Ubuntu 13.04 playing RTSP streams, I can take a look at my notes to see why it was failing. Do you get any interesting output if you run VLC from a shell like "vlc -v rtsp://host/whatever"? It might be worth disabling auth on the camera if possible, I seem to recall that VLC has issues with certain authentication schemes. Always good to simplify when possible.
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

linuxsense wrote:Are you running the VLC client on Windows or Linux? I had some issues with the default VLC package on Ubuntu 13.04 playing RTSP streams, I can take a look at my notes to see why it was failing. Do you get any interesting output if you run VLC from a shell like "vlc -v rtsp://host/whatever"? It might be worth disabling auth on the camera if possible, I seem to recall that VLC has issues with certain authentication schemes. Always good to simplify when possible.
Woohoo! Its working!

I run Gentoo, and I needed two new USE flags for VLC. Not only did I have to add support for rtsp, but I had to add the "live" USE as well. I'm not sure why live would not be enabled automagically when rtsp is enabled, but its not.

ZoneMinder is up and running!

Thanks again for your help!
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

Good news. Happy to help.
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

I'm still getting partial frame errors (stripes) from the HD camera. Only one frame in about 90 minutes.

Is that likely a wireless networking issue?

Is there a way I can debug this?

Thanks much.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Where's the latest tarball, build and install instructio

Post by linuxsense »

If its on wifi I would check and see if your access point is free of interference and run a ping on it for 20 or 30 minutes and see if you get high latency or dropped packets. If you have not done so already I would also make sure that you dont have a min/max FPS set for that monitor on the zoneminder side. If you need to limit the framerate do so on the camera instead.
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

linuxsense wrote:If its on wifi I would check and see if your access point is free of interference and run a ping on it for 20 or 30 minutes and see if you get high latency or dropped packets. If you have not done so already I would also make sure that you dont have a min/max FPS set for that monitor on the zoneminder side. If you need to limit the framerate do so on the camera instead.
I haven't set the max / min frame rates in ZM. I turned down the frame rate at the camera to 10 FPS and if that doesn't work will turn down the bit rate from 768 KB/sec to 500 KB/sec.

Thanks for giving me direction. I really appreciate it.
raydude
Posts: 66
Joined: Sun Jul 21, 2013 6:09 pm

Re: Where's the latest tarball, build and install instructio

Post by raydude »

Update: looks like slowing down the frame rate increased the quality and eliminated the bad frames. I got good video of the FexEx guy delivering a package this morning.

So awesome!

Thanks again!
Locked