[FFmpeg-user] Problematic Hikvision video file for conversion ffmpeg

George Andguladze gandguladze at hotmail.com
Tue Dec 12 10:25:06 EET 2017

Greetings to all,

I have a video file acquired from Hikvision's NVR connected to IP cameras. The method used to download this video was Hikvision NVR's internal API that produced a flawed video file in several ways:

1.      Duration of the video file is wrong (as seen in Mediainfo or VLC). My guess is this happens due to NVR storing video files in chunks and when attempting to download video by supplying specific start time and end time to NVR's API the software just creates a new video file in memory by extracting the needed parts from stored video and attaching the original video file's duration to the newly created one.

2.      Audio cannot be played in most media players including VLC.

I have tried converting the video file using ffmpeg with different settings to try and fix these issues but the output video still has the same problems. What's interesting is that ffmpeg's ffplay is able to play the video file perfectly with sound and no disruptions. Therefore I figured there must be a way to convert the video file to normalize it for other players as well.

Mediainfo output of the video file in question:  https://pastebin.com/zNTpPi79

Output of ffmpeg: https://pastebin.com/vAZZV9CT

Video file itself:  https://www.dropbox.com/s/9ccptsuiqk2ntsv/1.zip?dl=0

Any help is greatly appreciated,


George A.

More information about the ffmpeg-user mailing list