no video streaming only jpeg

Support and queries relating to all previous versions of ZoneMinder
Locked
aot2002
Posts: 73
Joined: Mon Apr 26, 2004 7:10 am

no video streaming only jpeg

Post by aot2002 »

I finally got zoneminder working with my ebay cards and its running at 33.3 for one camera...i installed ffmpeg but i cant seem to get a streaming real time video ..

only jpgs are refreshed every 5 seconds ?
i went into options ? am i missing something?
jay
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

no video streaming only jpeg

Post by cordel »

aot2002,
What does your zmdc.log say?
does is report any errors for ffmpeg or any of it's librarys?
How did you install ffmpeg?

If your getting a library error...
Did you do the [ make installlib ] after you did your [ make install ]?
make installlib installs the library files in your shared library directory.


Here's how I installed ffmpeg.
mkdir /usr/bin/ffmpeg
cd /usr/bin/ffmpeg

Then run your configure script from this directory.

ie.
/usr/src/ffmpeg-0.4.8/configure --prefix=/usr
this of course is my preferance and may not be the most preferable for someone else or correct for that matter.

make && make install
make installlib #installs lib files to your shared lib

Now in your options, tools tab set your path to the executable file
following the above example that would be in /usr/bin so you would put for that option...
/usr/bin/ffmpeg

Yours might be at
/usr/local/bin/ffmpeg.
hope that helps.
If not post more information on what you are getting in your logs.
Cordel
aot2002
Posts: 73
Joined: Mon Apr 26, 2004 7:10 am

I've upgraded to the .3 latest version too

Post by aot2002 »

I can create videos from an alarm triggered event and it will generate a video then play it via the windows media player but i still cannot live stream a camera????

I've upgraded to the .3 latest version too???

any ideas ?
what exactly should be set in options is already set for recording unless im missing something ?
does berkley need to be installed?





MY ---------> cat /tmp/zmwatch.log


Restarting capture daemon ('/usr/local/bin/zmdc.pl restart zmc -d 0'), time since last capture 1 seconds (1084344381-1084344380)
'zmc -d 0' started at 04/05/12 02:46:21
'zmc -d 0' starting at 04/05/12 02:46:21, pid = 21501
Can't get shared memory id '2053971970': No such file or directory
Watchdog starting at 04/05/12 02:48:52
Watchdog pausing for 30 seconds














MY---->>>>>>>>>> cat /tmp/zmvideo.log



Creating video file Event-4.mpg for event 4
/usr/local/bin/ffmpeg -y -hq -intra -r 4.97 -s 320x240 -i %03d-capture.jpg Event-4.mpg > mpeg.log
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:05.2, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 4.97 fps
Output #0, mpeg, to 'Event-4.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 4.97 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 26 q=5.0 size= 110kB time=5.2 bitrate= 172.3kbits/s

Finished Event-4.mpg
Creating video file Event-9.mpg for event 9
/usr/local/bin/ffmpeg -y -hq -intra -r 5.03 -s 320x240 -i %03d-capture.jpg Event-9.mpg > mpeg.log
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:06.7, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 5.03 fps
Output #0, mpeg, to 'Event-9.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 5.03 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 34 q=5.0 size= 148kB time=6.8 bitrate= 179.4kbits/s

Finished Event-9.mpg








MY------>>>> cat /tmp/zmdc.log

'zmupdate.pl -c' stopping at 04/05/12 02:48:36
'zmupdate.pl -c' died at 04/05/12 02:48:36, signal 14
'zmaudit.pl -d 900 -y' stopping at 04/05/12 02:48:36
'zmaudit.pl -d 900 -y' died at 04/05/12 02:48:36, signal 14
'zma -m 1' stopping at 04/05/12 02:48:36
'zma -m 1' died at 04/05/12 02:48:36
'zmc -d 0' stopping at 04/05/12 02:48:36
'zmc -d 0' died at 04/05/12 02:48:36
'zmfilter.pl ' stopping at 04/05/12 02:48:36
'zmfilter.pl ' died at 04/05/12 02:48:36, signal 14
'zmwatch.pl ' stopping at 04/05/12 02:48:36
'zmwatch.pl ' died at 04/05/12 02:48:36, signal 14
Can't find child with pid of '21597'
Can't find child with pid of '21598'
Server shutdown at 04/05/12 02:48:47
Server starting at 04/05/12 02:48:47
'zmc -d 0' started at 04/05/12 02:48:50
'zmc -d 0' starting at 04/05/12 02:48:50, pid = 21633
'zma -m 1' started at 04/05/12 02:48:50
'zma -m 1' starting at 04/05/12 02:48:50, pid = 21637
'zmc -d 0' already running at 04/05/12 02:48:50, pid = 21633
'zmfilter.pl' started at 04/05/12 02:48:51
'zmfilter.pl' starting at 04/05/12 02:48:51, pid = 21643
'zmaudit.pl -d 900 -y' started at 04/05/12 02:48:51
'zmaudit.pl -d 900 -y' starting at 04/05/12 02:48:51, pid = 21647
'zmwatch.pl' started at 04/05/12 02:48:52
'zmwatch.pl' starting at 04/05/12 02:48:52, pid = 21651
'zmupdate.pl -c' started at 04/05/12 02:48:52
'zmupdate.pl -c' starting at 04/05/12 02:48:52, pid = 21657










MY ->>>>>>>>>>>>> /var/log/messages



May 12 02:46:23 localhost zmfix[21504]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:23 localhost zmc-d0[21501]: INF [Got TERM signal, exiting]
May 12 02:46:23 localhost zmc-d0[21501]: ERR [Sync failure for frame 3: Interrupted system call]
May 12 02:46:23 localhost zmc-d0[21512]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:24 localhost zmc-d0[21512]: INF [Starting Capture]
May 12 02:46:29 localhost zms[21529]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:30 localhost zms[21532]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:30 localhost zms[21534]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:31 localhost zms[21536]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:31 localhost zms[21537]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:32 localhost zms[21540]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:32 localhost zms[21541]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:33 localhost zms[21548]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:33 localhost zms[21549]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:38 localhost zms[21553]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:39 localhost zms[21558]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:39 localhost zms[21559]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:40 localhost zms[21562]: INF [Debug Level = 0, Debug Log = ]
May 12 02:46:40 localhost zms[21563]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:36 localhost zma-m1[21402]: INF [Got signal (Terminated), exiting]
May 12 02:48:36 localhost zmc-d0[21512]: INF [Got TERM signal, exiting]
May 12 02:48:36 localhost zmc-d0[21512]: ERR [Sync failure for frame 1: Interrupted system call]
May 12 02:48:47 localhost zmfix[21610]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:50 localhost zmc-d0[21633]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:50 localhost zma-m1[21637]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:50 localhost zma-m1[21637]: WAR [Waiting for capture daemon]
May 12 02:48:51 localhost zmc-d0[21633]: INF [Starting Capture]
May 12 02:48:52 localhost zma-m1[21637]: INF [Warming up]
May 12 02:48:58 localhost zms[21676]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:58 localhost zms[21679]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:58 localhost zms[21678]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:59 localhost zms[21682]: INF [Debug Level = 0, Debug Log = ]
May 12 02:48:59 localhost zms[21683]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:00 localhost zms[21687]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:00 localhost zms[21686]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:04 localhost zms[21697]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:05 localhost zms[21700]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:05 localhost zms[21701]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:06 localhost zms[21704]: INF [Debug Level = 0, Debug Log = ]
May 12 02:49:06 localhost zms[21705]: INF [Debug Level = 0, Debug Log = ]
jay
Locked