I’m trying to use the jetson multimedia SDK to decode video, and can’t seem to get the video framerate from the API.
It seems like this is typically done with the VIDIOC_G_PARM ioctl, which does not seem to be implemented. That ioctl is called in the gstreamer element source, but always fails.
Is there a way to do this? The samples certainly don’t include this functionality.
Hi,
The sample is to demonstrate hardware decoding and do not parse VUI to get the information. Please refer to source code of ffprobe to parse out the information. The command for showing the information is
So I am expected to parse the bitstream manually? It is extremely typical for decoders to provide information from the stream-- cuviddec exposes it in pfnSequenceCallback, Intel’s MFX exposes it directly in the decode surface–I’m unaware of any decoder implementation that doesn’t provide this.
Hi,
In current releases there is no implementation for this. Please refer to public code about parsing SPS/VUI and do integration. Frame rate is calculated by