Framerate limit for asf streaming (urgent)
Framerate limit for asf streaming (urgent)
How can be mpeg or mjpeg video streaming from ZM limited to, for example 1 fps, where this camera is being recorded at 20 fps?
Thank you,
Darko
Thank you,
Darko
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
Hi phil.
is there a way to limit the java streaming aswell ?
i would like also to capture at 7 fps but record at 2 fps, i know that there is a way with record mode, but not modect, and is another way setting two cameras for the same video source, but as i use multiplexed bt878 cards this makes capture even slower.
is there a way ?
thanks you
victor diago
is there a way to limit the java streaming aswell ?
i would like also to capture at 7 fps but record at 2 fps, i know that there is a way with record mode, but not modect, and is another way setting two cameras for the same video source, but as i use multiplexed bt878 cards this makes capture even slower.
is there a way ?
thanks you
victor diago
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Assuming you have the latest version, edit zm_monitor.cp and go to line 1411. Change the line
to
ie. change fps to effective_fps. Then go down a few lines until you see
and move the last_read index line above the 'if' leaving you with
I think that should do it. I'm still researching this as I can't exactly work out why the second chage should make a positive difference but it seems to. So the real fix may be slightly different however this should get you going.
Phil
Code: Select all
VideoStream vid_stream( "pipe:", format, bitrate, fps, camera->Colours(), (width*scale)/ZM_SCALE_SCALE, (height*scale)/ZM_SCALE_SCALE );
Code: Select all
VideoStream vid_stream( "pipe:", format, bitrate, effective_fps, camera->Colours(), (width*scale)/ZM_SCALE_SCALE, (height*scale)/ZM_SCALE_SCALE );
Code: Select all
if ( (frame_mod == 1) || ((frame_count%frame_mod) == 0) )
{
last_read_index = shared_data->last_write_index;
Code: Select all
last_read_index = shared_data->last_write_index;
if ( (frame_mod == 1) || ((frame_count%frame_mod) == 0) )
{
Phil
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
Hi phil,
This is a urgent problem for me, could you please take a look ? i will learn about encoding mpeg and try too look at code too, this is casing me headaches !!!!
sometimes, when using mplayer (or ffplay directly) i cant connect to the mpeg stream, it gives me this error :
If i try sometimes, i can connect and watch stream, but it gives me another errors as output. Then, the delay from captured image to showed one, tha was usually 2 seconds, gradually grow and in four hours i have about 8 seconds delay.
This is a urgent problem for me, could you please take a look ? i will learn about encoding mpeg and try too look at code too, this is casing me headaches !!!!
sometimes, when using mplayer (or ffplay directly) i cant connect to the mpeg stream, it gives me this error :
Code: Select all
Playing http://localhost/cgi-bin/zms?mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=15&format=asf.
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]:80 ...
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]:80 ...
size_confirm mismatch!: 30130 43520
Error while parsing chunk header
Trying default streaming for http protocol
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]:80 ...
Cache size set to 0 KBytes
Connected to server: localhost
Stream not seekable!
Exiting... (End of file)
Code: Select all
error while decoding block: 19 x 14 (5)
[msmpeg4 @ 0x85bc7a0]Error at MB: 313
[msmpeg4 @ 0x85bc7a0]concealing 2147483647 errors
[msmpeg4 @ 0x85bc7a0]overreading 4 bits
[msmpeg4 @ 0x85bc7a0]concealing 900 errors
[msmpeg4 @ 0x85bc7a0]ac-tex damaged at 19 14
[msmpeg4 @ 0x85bc7a0]
error while decoding block: 19 x 14 (5)
[msmpeg4 @ 0x85bc7a0]Error at MB: 313
[msmpeg4 @ 0x85bc7a0]concealing 2147483647 errors
[msmpeg4 @ 0x85bc7a0]ac-tex damaged at 19 14
[msmpeg4 @ 0x85bc7a0]
error while decoding block: 19 x 14 (5)
[msmpeg4 @ 0x85bc7a0]Error at MB: 313
[msmpeg4 @ 0x85bc7a0]concealing 2147483647 errors
[msmpeg4 @ 0x85bc7a0]ac-tex damaged at 19 14
[msmpeg4 @ 0x85bc7a0]
error while decoding block: 19 x 14 (5)
[msmpeg4 @ 0x85bc7a0]Error at MB: 313
[msmpeg4 @ 0x85bc7a0]concealing 2147483647 errors