video generation error

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Andrew85
Posts: 6
Joined: Fri Aug 11, 2023 12:31 am

video generation error

Post by Andrew85 »

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
Andrew85
Posts: 6
Joined: Fri Aug 11, 2023 12:31 am

Re: video generation error

Post by Andrew85 »

Hi,
I forgot to say which version is FFmpeg, it is version 4.4.2
any idea what to do?
thanks
User avatar
iconnor
Posts: 3391
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: video generation error

Post by iconnor »

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
Andrew85
Posts: 6
Joined: Fri Aug 11, 2023 12:31 am

Re: video generation error

Post by Andrew85 »

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
User avatar
iconnor
Posts: 3391
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: video generation error

Post by iconnor »

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.
mikb
Posts: 705
Joined: Mon Mar 25, 2013 12:34 pm

Re: video generation error

Post by mikb »

Andrew85 wrote: Tue Oct 31, 2023 8:38 pm 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?
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 ;)
Andrew85
Posts: 6
Joined: Fri Aug 11, 2023 12:31 am

Re: video generation error

Post by Andrew85 »

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
User avatar
iconnor
Posts: 3391
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: video generation error

Post by iconnor »

There should not exist a 0000. File. Counting begins at 1
Post Reply