bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.39k stars 1.56k forks source link

FFmpegFrameRecorder how to record each frame from RTMP streams of dynamic frames #2219

Open skill7899 opened 2 months ago

skill7899 commented 2 months ago

the rtmp streams some time 20fps , some time 30fps,My application uses JavaCV to pull the RTMP stream and process each frame, and also saves it to the local video to record the processing of frames X to Y. Due to the dynamic frame rate, the video I save with the recorder has a fixed frame rate, which may result in some frames being lost, making it impossible to accurately locate the frames

saudet commented 2 months ago

Make sure to call setTimestamp() before record().