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.

about dm355 cmos sensor decode issue

  hi,everybody!

my camera can implement  encode command and make a MPEG4 video file.example :root@192.168.0.3:/opt/dvsdk# ./encode -v xiao.mpeg4

but video file xiao.mpeg4 play too fast when video file implement  decode command .example:root@192.168.0.3:/opt/dvsdk# ./decode -v xiao.mpeg4

I am troubled by the problem for a long time. any help and suggestion would be appreciation .

winkyxiao!

 

  • I have not noticed playback being too fast myself, but if this was the case it may be that the simple demos do not utilize any sort of timestamp mechanism, allowing for the proper timebase to playback, and eventually for audio/video synchronization. If this is not in there already adding it in could prove to be a significant effort, ultimately using software like GStreamer may be the solution, though the current GStreamer implementation for DM355 is only for decoding video.

  • As Bernie suggested, the elementary video streams being processed by decode demo lack the frame rate information and/or time stamp that normally accompany more complete video files (AVI, WMV, ...).  Therefore, the decode demo just plays the elementary streams as fast as it can.

    You can add delays via timer in decode demo (probably right before FBIOPAN_DISPLAY ioctl) to slow down the video playback to desired frame rate, or better yet you can go to a more robust solution like Gstreamer.