ffmpeg video streaming

Support and queries relating to all previous versions of ZoneMinder
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

ffmpeg video streaming

Post by sick347 »

ok I've done a good deal of searching on this website and in general to try to understand how to get the ffmpeg stuff installed and working in my current system.

I'm running suse 10.0 and ZM 1.22.0....it works great with stills and mjpeg but now I need to update to streaming video. From what I've read it is ffmpeg that allows real-time video streaming...right?

I tested my web browser (Mozilla) and it does play video in the browser. I know this because I went to google video and watched one. It came up in windows media player inside the browser.

I used apt-get install ffmpeg and it seemed to start working but barfed like this:
Checking GPG signatures...
Unknown signature /var/cache/apt/archives/libmp4v2_1.4.1-4_i586.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#3ab2ce5e)
Unknown signature /var/cache/apt/archives/faad2_2.5-0.pm.2_i586.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#5277a2fa)
Unknown signature /var/cache/apt/archives/faac_1.25-0.pm.3_i586.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#5277a2fa)
Unknown signature /var/cache/apt/archives/lame_3.96.1-2_i586.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#5f6842a4)
Unknown signature /var/cache/apt/archives/xvid_1.1.0-0.pm.4_i686.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#5277a2fa)
Unknown signature /var/cache/apt/archives/x264_0.0svn20060728-1_i586.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#3ab2ce5e)
Unknown signature /var/cache/apt/archives/libffmpeg0_0.4.9-7.pm.svn20061008_i686.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#5277a2fa)
Unknown signature /var/cache/apt/archives/ffmpeg_0.4.9-7.pm.svn20061008_i686.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#5277a2fa)
E: Error(s) while checking package signatures:
0 unsigned package(s)
8 package(s) with unknown signatures
0 package(s) with illegal/corrupted signatures
E: Handler silently failed

so I guess that means it was a complete fail? At least for the install of ffmpeg and it's dependancies?

Any help will be greatly appreciated...I'm pretty much floundering around trying to get this to work.

many thanks
-frank
:roll:
got my eye on you!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i have never got ffmpeg to work on anything but the livecd's or ctu zm. I think you have to build ffmpeg on the machine in use and then build zm afterwards. But as i havt been able to i have always used ross's cd's (usulally the 2006 non live one now)
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

thanks jameswilson,

live CD, what is that? does that mean I have to put a CDROM in the computer and the live CD and it run from there? ...all of zoneminder? hmmmm seems strange.

Where do I get such a CD?

Is there anyone that has had success compiling ffmpeg into their distro and getting it to work with ZM on there machine without the live CD?

thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The LiveCD is a full distro including ZM that you can download, burn onto a CD and install easily onto your hardware. You can download it from the Downloads section or look in the LiveCD forum for a link to a torrent (which is preferred).

I have compiled ffmpeg from source a number of times, it's usually pretty simple. I haven't ever installed it from a package though.
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

phil,

both methods sound great. thanks for that info.

what is yur recommendation for ffmpeg source download, where do I get it from?

thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

They don't make it easy. You have to get it directly from the subversion archive

Code: Select all

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
You may have to install subversion onto your system to get it, if you don't have it on there already.
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

YEEEHAAWWW!!!

that was easy...now I guess I need to compile ffmpeg.

Is there a site with instructions so I don't bother you with this mundane compile stuff?

thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It's pretty simple if you don't want support for any unusual formats. Just do

Code: Select all

./configure
make
make install
make installlib
and I think you are done for the default install. You may need to install the ZM patch in the Wiki to add support for the latest ffmpeg before rebuilding ZM though.
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

great!

so do I need to put the ffmpeg directory in a special location? Or can I put it anywhere and build from there?

I ask because I'm going through the make right now and getting lots of warnings.

thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can build anywhere (so long as it's in it's own dir and you don't mix the files up with other applications). Warnings are probably ok, if the make succeeds then you are usually good to go.
Phil
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

ok great.

how do I apply the patch?

I think I need it because the zm configure failed.

I see the patch in Wiki but don't know how to apply it...as in the steps to install it.

thanks
-frank
got my eye on you!
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

ok phil I found out how to in Wiki.

it does say the patches only apply to 1.22.2 while I'm running 1.22.0...but since you "are the man" I'll go with what you tell me!

thanks
-frank
got my eye on you!
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

HEY HEY!!!

I got it working....BUT it wants to jam all me cams into the first cam I have defined such that I see them all in a "rotating" fashion....

They seem to work individually though...

any thoughts?

this is bizarre.

thanks
-frank
got my eye on you!
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

ok so after a little more testing I see that there is not much difference, if any, with using the streaming video vs the mjpeg.

I'm trying to get rid of ALL the chop I see in MJPEG by using the streaming video. But I still see the chop in the streaming video as I do in the MJPEG.

who out there has really nice video running with no chop?

thanks
-frank
got my eye on you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you post a link (or mail me) a video of an example of 'chop' as I'm not 100% sure what you mean.
Phil
Locked