Hi,
I have by some days this error in the logs
Video generation '/usr/bin/zmvideo.pl -e 45113 -r 1 -s 0 -f mp4' failed with status: 9
screenshot here
https://postimg.cc/YhZq7bPw
what should I do?
I have done recently some ubuntu updates
I have kubuntu 22.04 and zoneminder version 1.36.33
many thanks in advance
Andrew
video generation error
Re: video generation error
Hi,
I forgot to say which version is FFmpeg, it is version 4.4.2
any idea what to do?
thanks
I forgot to say which version is FFmpeg, it is version 4.4.2
any idea what to do?
thanks
Re: video generation error
Try running it on the command line, perhaps there will be better output.
sudo /usr/bin/zmvideo.pl -e 45113 -r 1 -s 0 -f mp4
sudo /usr/bin/zmvideo.pl -e 45113 -r 1 -s 0 -f mp4
Re: video generation error
here the error
31/10/2023 21:37:12.814967 zmvideo[329671].INF [ZoneMinder::Event:302] [Creating video file Event-45113-r1-s1.mp4 for event 45113]
Use of uninitialized value in division (/) at /usr/share/perl5/ZoneMinder/Event.pm line 304.
Illegal division by zero at /usr/share/perl5/ZoneMinder/Event.pm line 304.
here the 304 line of the file
my $frame_rate = sprintf('%.2f', $self->{Frames}/$self->{FullLength});
my understanding is that $self is 0 so the division is not valid?
can someone check that line?
thanks
31/10/2023 21:37:12.814967 zmvideo[329671].INF [ZoneMinder::Event:302] [Creating video file Event-45113-r1-s1.mp4 for event 45113]
Use of uninitialized value in division (/) at /usr/share/perl5/ZoneMinder/Event.pm line 304.
Illegal division by zero at /usr/share/perl5/ZoneMinder/Event.pm line 304.
here the 304 line of the file
my $frame_rate = sprintf('%.2f', $self->{Frames}/$self->{FullLength});
my understanding is that $self is 0 so the division is not valid?
can someone check that line?
thanks
Re: video generation error
I don't know how old you zmvideo.pl is... but current 1.36.33 has no line 304. I don't know if our current version works as not many people use it, but it's a good place to start.
Re: video generation error
I suspect $self isn't zero, but the member {FullLength} is zero. It warns about something be un-initialised, which would be my first instinct to check. Uninitialised things often, but not always, end up at zero until set otherwise

Re: video generation error
ok I have searched in the hard disk that event
there are files
then I looked at the event and I fount that file with a name like 0000capture is missing and so only one frame is present
in the directory there are like 15 frames (jpg files)
so I think I can just delete this event and live without problems
also because only a shadow is visible in that event
probably an error in the file system has not saved the 0000capture file ?
thanks everyone for the attention
regards
Andrew
there are files
then I looked at the event and I fount that file with a name like 0000capture is missing and so only one frame is present
in the directory there are like 15 frames (jpg files)
so I think I can just delete this event and live without problems

probably an error in the file system has not saved the 0000capture file ?
thanks everyone for the attention
regards
Andrew
Re: video generation error
There should not exist a 0000. File. Counting begins at 1