I’m using the SDK samples to encode some videos(x264) and I having a slight issue. While all the frames are encoded properly after the video is done, both my file system(ubuntu 15.04) and opencv are reporting the wrong video length(Ubuntu reports 0 seconds and opencv report -9.2233x10^18 frames). The header appears to report the frame rate correctly but not the length.
I have continued testing this issue with ffprobe/ffmpeg to see if it could retrieve the proper information after encoding but it also failed to get the proper info. Here is the output from ffprobe:
Some information appears to be encoded properly but the duration and bitrate are not. I’m wondering if there is a setting for the encoder that I am missing that needs to be set to ensure that the container information is properly written after encoding is complete.