javacv
javacv copied to clipboard
setFrameRate() not working
I'm using FFMpegFrameGrabber to consume an rtmp live stream, that streams at 30fps, i tried to set the grabber frame rate using setFrameRate(4) and setOption("framerate","4") but neither worked.
Any help please?! Thanks
I don't think that's a property supported by RTMP streams. There's nothing that appears in FFmpeg's documentation about that either: https://ffmpeg.org/ffmpeg-protocols.html
Thanks @saudet so do you think it is supported with rtsp streams or it is not either?
I have an application that do frame grabbing directly on ffmpeg system command... I use this option in the command: "-vf fps=5". So maybe try grabber.setOption("vf", "fps=5"). Anyway the setFrameRate method works for me.
@felipbutcher so what type of stream are you grabbing, or you are just playing a local video file?
@MohammadFneish7 is an RTSP stream from an IP camera.
@felipbutcher yes that is right