Hi,
I would like to increase play speed when decoding from mp4 file. I dont know if it is possible but I tried videorate rate element but it did not change the speed.
This is the pipeline :
Sorry about the confusion. I have a 25 fps 4k mp4 file that has 4 minutes duration. I would like to capture this image in opencv in 2x speed and in this way video duration will be 2 minutes. This is what I am trying. So it is 2x fast forward in your question. I tried to double fps in pipeline but it did not effect, video was playing in normal speed. I searched and saw rate in videorate element can speed the video but it did not work either. Since I could not find any other example I wanted to ask here.
But I am facing a different problem now.
When video is playing it sometimes says this :
FPS: 24.99624753394147, read time: 0.031426429748535156, post process time: -0.031426429748535156
FPS: 24.95554283708331, read time: 0.0323028564453125, post process time: -0.0323028564453125
FPS: 24.987347068305574, read time: 0.03145480155944824, post process time: -0.03145480155944824
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 279
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 279
FPS: 21.897061173496812, read time: 0.04397726058959961, post process time: -0.04397726058959961
FPS: 28.143399554739673, read time: 0.03153204917907715, post process time: -0.03153204917907715
It happens 4 or 5 times in 2 minutes video play. How can I solve this?
And also by doing this fps remains the same with the videos fps which is 25. So I guess in this case I am dropping some frames to speed the video. Is there another way to speed without dropping or duplicating frames.