Lost frames in h264 export

Lost frames in h264 export

Lost frames in h264 export
Lost frames in h264 export
a week ago - last edited Friday
Tags: #Missing frames
Model: VIGI C300HP  
Hardware Version: V2
Firmware Version: 1.0.11

Dear Support Team,

 

I have a security system with four VIGI C300HP-4 2.0 cameras and a VIGI NVR1008H(UN) 2.0 recording device.

All cameras have 1.0.11 Build 23041 Rel 57861n firmware, the VIGI NVR has 1.1.1 Build 241127 Rel.76336n firmware.

 

I use 10fps h264 recording because of compatibility and quicker export, without conversion.

 

To find something interesting, I ocassionally export files to analyse, search them with an opencv application.

 

I recognized a strange behaviour during processing, it looks many frames are missing from the mp4 file, where processing stops becuase of no more frames in the file.

[h264 @ 000001ff2b555980] no frame!
[h264 @ 000001ff2b555980] no frame!
[h264 @ 000001ff2b6760c0] no frame!
[h264 @ 000001ff2b676580] no frame!

 

They processing app was written in Python. I use  fvs = FileVideoStream(videoFileName).start() function from imutils.video to read the video.

Formerly when I used cameras in 1fps mode, I have not experienced similar problem, but in 1 fps mode the movements were smooth enough.

 

I tried tor repair (convert) files with ffmepg and ffmpeg reported similar issue, see below:

[NULL @ 000001bd851e5b80] missing picture in access unit with size 23470.6kbits/s dup=0 drop=5912 speed=17.3x
[h264 @ 000001bd8535d1c0] no frame!
[NULL @ 000001bd851e5b80] missing picture in access unit with size 8
[h264 @ 000001bd85f4e400] no frame!
Error while decoding stream #0:0: Invalid data found when processing input

 

But regardless the problems reported by ffmpeg, it was able to create a usable errorless file, but it is very time consuming to repair each file regardless I have a quite powerfull desktop computer to cope with it.

Could you look after this problem please?
 

  0      
  0      
#1
Options
1 Accepted Solution
Re:Lost frames in h264 export-Solution
a week ago - last edited Friday

  @McHP 

H.264 relies on GOP-based encoding, in which I-frames (key frames) play a critical role. When OpenCV decodes with FFmpeg (its default), missing  I-frames can lead to frame drops. In addition, anomalies during MP4 remuxing/export may also cause dropped frames.

Because the video compression is performed by the IPC, the NVR only stores the stream. To ensure the NVR’s decoding process is not at fault, please check the recorded video for the problematic time period directly in the NVR’s local GUI or web interface and confirm whether playback is smooth.

 

Recommended Solution
  0  
  0  
#2
Options
1 Reply
Re:Lost frames in h264 export-Solution
a week ago - last edited Friday

  @McHP 

H.264 relies on GOP-based encoding, in which I-frames (key frames) play a critical role. When OpenCV decodes with FFmpeg (its default), missing  I-frames can lead to frame drops. In addition, anomalies during MP4 remuxing/export may also cause dropped frames.

Because the video compression is performed by the IPC, the NVR only stores the stream. To ensure the NVR’s decoding process is not at fault, please check the recorded video for the problematic time period directly in the NVR’s local GUI or web interface and confirm whether playback is smooth.

 

Recommended Solution
  0  
  0  
#2
Options