Default Playback Speed

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
tony
Posts: 29
Joined: Mon Dec 29, 2003 8:30 pm

Default Playback Speed

Post by tony »

Is it possible to change the default playback speed? It would make checking a lot of clips easier if I could see them quickly and play any suspicious ones back at the correct speed.

If there is not a default can anyone identify the code that I need to change to speed up the playback that is used when the video window is viewed?

I am using ZM v 9.16

Thanks

Tony
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Default Playback Speed

Post by zoneminder »

Hi Tony,

Do you mean playback via streams or via generated MPEG?

If it's the former you can edit zm_html_view_event.php and go to about line 30 where you will see the following code

if ( !isset( $rate ) )
$rate = 1;
if ( !isset( $scale ) )
$scale = 1;

If you change $rate = 1 to $rate = 2 or another value it will replay at that rate. Changing it to $rate = 0 will replay as fast as possible. However bear in mind that this is still limited by bandwidth so on a fast connection it will fly by but over a dial-up it may be slower than realtime. Reducing the size by half by changing $scale = 1 to $scale = -2 will also help speed things up.

Cheers,

Phil,
Locked