zoneminder icon indicating copy to clipboard operation
zoneminder copied to clipboard

Missing snapshots

Open Gransi opened this issue 3 years ago • 1 comments

Describe Your Environment

  • ZoneMinder v1.36.12
  • How you installed ZoneMinder: http://ppa.launchpad.net/iconnor/zoneminder-1.36/ubuntu
  • Ubuntu 20.04.3 LTS
  • Chrome Version 96.0.4664.110 (Official Build) (64-bit)

Describe the bug Not all snapshot are created in event view image

It seams that the variable ZM_PATH_FFMPEG is sometimes empty or null during execution. I replaced for testing the variable with the ffmpeg command and it works for me.

$command = 'ffmpeg -ss '. $Frame->Delta() .' -i '.$Event->Path().'/'.$Event->DefaultVideo().' -frames:v 1 '.$path . ' 2>&1';

Debug Logs

12/16/21 23:24:29.792813 web_php[86346].DBG [192.168.1.170] [Setting cookie parameters to Array
(
    [lifetime] => 3600
    [path] => /
    [domain] => 
    [secure] => 
    [httponly] => 1
    [samesite] => Strict
)] at /usr/share/zoneminder/www/includes/session.php line 28
12/16/21 23:24:29.793803 web_php[86346].DBG [192.168.1.170] [View: image Request:  Action:  User: admin] at /usr/share/zoneminder/www/index.php line 233
12/16/21 23:24:29.795318 web_php[86346].DBG [192.168.1.170] [Running  -ss 3.04 -i /mnt/ssd02/zoneminder/7/2021-12-16/223900/223900-video.mp4 -frames:v 1 /mnt/ssd02/zoneminder/7/2021-12-16/223900/snapshot.jpg 2>&1] at /usr/share/zoneminder/www/views/image.php line 185
12/16/21 23:24:29.796020 web_php[86346].DBG [192.168.1.170] [Command:  -ss 3.04 -i /mnt/ssd02/zoneminder/7/2021-12-16/223900/223900-video.mp4 -frames:v 1 /mnt/ssd02/zoneminder/7/2021-12-16/223900/snapshot.jpg 2>&1, retval: 127, output: sh: 1: -ss: not found] at /usr/share/zoneminder/www/views/image.php line 189
12/16/21 23:24:29.796099 web_php[86346].FAT [192.168.1.170] [Can't create frame images from video for this event 223900-video.mp4

                Command was:  -ss 3.04 -i /mnt/ssd02/zoneminder/7/2021-12-16/223900/223900-video.mp4 -frames:v 1 /mnt/ssd02/zoneminder/7/2021-12-16/223900/snapshot.jpg 2>&1

                Output was: sh: 1: -ss: not found] at /usr/share/zoneminder/www/views/image.php line 196
12/16/21 23:24:32.151653 web_php[86346].DBG [192.168.1.170] [Setting cookie parameters to Array
(
    [lifetime] => 3600
    [path] => /
    [domain] => 
    [secure] => 
    [httponly] => 1
    [samesite] => Strict
)] at /usr/share/zoneminder/www/includes/session.php line 28
12/16/21 23:24:32.152657 web_php[86346].DBG [192.168.1.170] [View: image Request:  Action:  User: admin] at /usr/share/zoneminder/www/index.php line 233
12/16/21 23:24:32.153610 web_php[86346].DBG [192.168.1.170] [Running  -ss 3.04 -i /mnt/ssd02/zoneminder/7/2021-12-16/223900/223900-video.mp4 -frames:v 1 /mnt/ssd02/zoneminder/7/2021-12-16/223900/snapshot.jpg 2>&1] at /usr/share/zoneminder/www/views/image.php line 185
12/16/21 23:24:32.155485 web_php[86346].DBG [192.168.1.170] [Command:  -ss 3.04 -i /mnt/ssd02/zoneminder/7/2021-12-16/223900/223900-video.mp4 -frames:v 1 /mnt/ssd02/zoneminder/7/2021-12-16/223900/snapshot.jpg 2>&1, retval: 127, output: sh: 1: -ss: not found] at /usr/share/zoneminder/www/views/image.php line 189
12/16/21 23:24:32.155548 web_php[86346].FAT [192.168.1.170] [Can't create frame images from video for this event 223900-video.mp4

                Command was:  -ss 3.04 -i /mnt/ssd02/zoneminder/7/2021-12-16/223900/223900-video.mp4 -frames:v 1 /mnt/ssd02/zoneminder/7/2021-12-16/223900/snapshot.jpg 2>&1

                Output was: sh: 1: -ss: not found] at /usr/share/zoneminder/www/views/image.php line 196

Gransi avatar Dec 16 '21 22:12 Gransi

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

welcome[bot] avatar Dec 16 '21 22:12 welcome[bot]