Page 1 of 1

can`t get swf working

Posted: Fri Nov 23, 2007 8:39 pm
by mlody207
Hi,
sory for my english.

I`m trying to run swf streaming.

Im running up-to-date Gentoo on Celeron 2.4@2.8, 1G ram, 320hdd, 2x kodicom 4p card witch 7 cameras attached,
apache 2.2.6, ZM 1.22.3, ffmpeg 0.4.9_p20070525. using bttv module, kernel 2.6.24-rc2-mm1, ZM_CAN_STREAM=yes.
All has been installed from portage.
i have spent many hours on reading, and everything is working ok now, except video streaming.
when it`s set to jpeg, everything works fine; when ZM_STREAM_METHOD=mpeg and ZM_MPEG_LIVE_FORMAT=swf, a get:

Code: Select all

==> /var/log/apache2/error_log <==
/var/www/localhost/cgi-bin/nph-zms: symbol lookup error: /var/www/localhost/cgi-bin/nph-zms: undefined symbol: av_init_packet
zm* logs are clear. When ZM_MPEG_LIVE_FORMAT=avi/mov/mpg/mpeg/mp4, FF wants to install non-existent plugin.

I`ve read faq, wiki, many posts on this forum. I`ve tried five or six different versions of ffmpeg
(from portage and/or svn), compiled ffmpeg and ZM from source, i have changed FPS, buffer size, image size, nph-zms<>zms,
tried on IE6,7; FF 2.0 both on linux and windows etc..etc..,
but i still don`t know what`s wrong. It`s working only in asf format under win IE.

Compilations went without any problems, ./configure without any warnings.

How can I get swf working?

thanx for reply

Posted: Sun Nov 25, 2007 4:45 am
by Plunk
It is my understanding that SWF if currently not supported. I remember seeing a post by zoneminder about adding it. I do not however know where support for SWF is. My impression was that it will not work if you just change the format to swf in configuration. I've never seen asf work myself, however I've not tried. I do have quicktime streaming working on my install.

Have you tried another format other than asf or swf? Have you tried mpeg?

Did you compile zm with --with-ffmpeg=ffmpeg/location/ option?

Posted: Mon Nov 26, 2007 10:18 pm
by mlody207
about swf: http://www.zoneminder.com/forums/viewto ... hlight=swf

not supported, but it seems to work :)

yes, i have tried avi,mov,mpg,mpeg,mp4 like i said before.
and yes, i have compiled ZM with --with-ffmpeg. portage did it for me (USE="mpeg" emerge zoneminder). I`m using ~x86 keyword for whole system.

Portage installs ffmpeg into /usr (which is the ZM default path for it).
I have also compiled parallel version of ffmpeg (from svn) with "--prefix=/usr/local/ffmpeg" and then compiled ZM from source with "--with-ffmpeg=/usr/local/ffmpeg/"


Still nothing :/


----- edit:
ok, it`s working :))
i have downgraded ffmpeg to version media-video/ffmpeg-0.4.9_p20070129 and:
ZM_CAN_STREAM = yes
ZM_MPEG_LIVE_FORMAT = swf
ZM_MPEG_REPLAY_FORMAT = swf
ZM_OPT_MPEG = ffmpeg
ZM_PATH_FFMPEG = /usr/bin/ffmpeg
ZM_FFMPEG_OUTPUT_OPTIONS = -r 25

so, full set of commands:
/etc/init.d/zoneminder stop
/etc/init.d/apache stop
emerge =media-video/ffmpeg-0.4.9_p20070129
emerge zoneminder
webapp-config -I -h localhost zoneminder zoneminder 1.22.3
/etc/init.d/apache start
/etc/init.d/zoneminder start

:)