This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Video decode demo frame rate control?

Hi,

Is there an easy way to control the frame rate for the decode demo in the DVSDK?

With the command './decode -v some_clip.h264', the video decoder runs smoothly. But it seems to run as fast as it possibly can. The command './decode -help' doesn't show any option for the frame rate control.

Thanks,

Robby

  • By 'an easy way' I meant without hacking the code. But if I have to, what would be the most straightforward way to make the video decoder run at 30 frames per second?

  • Unfortunately, I am afraid there is no easy way which does not require modifying source code.  Our codecs only deal with elementary streams; this means no header information is found with regards to frame rate, size... of video in file produced by demo.  You can stick some delays in the user application (e.g. decode demo) source code to slow down the rate at which the user application reads and display data from the file, but this is very different than adding this sort of information into the encoded file.  If you want to add a transport stream type header for all applications (such as mplayer, windows media) to use to determine refresh rate, resolution, aspect ratio and such...this is a much more complex task and requires you become familiar with MPEG standards (defines transport stream format, including header).

  • Juan, thank you for the timely clarification.

  • A follow-up question: when I play the H.264 BP decoder demo with the DarVinci effect clip, is the decoder running at 30fps (it looks likely)? If yes, how is the frame rate control achieved?

    Thanks