bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.51k stars 1.58k forks source link

recorder.record(frame); It's blocked here #1974

Open redoriental opened 1 year ago

redoriental commented 1 year ago

for (;;) { try { System.out.println(1); frame = grabber.grab(); System.out.println(2); if ((frame) != null) { System.out.println(3); recorder.setTimestamp(frame.timestamp); recorder.record(frame); System.out.println(4); } } catch (Exception e) { throw new RuntimeException(e); } } After I use javacv to transcode the stream for a period of time, in recorder.record (frame); There's a blockage here The last print number before blocking is 3

saudet commented 1 year ago

Please make sure that FFmpegLogCallback.set() has been called.

saudet commented 1 year ago

Could you also provide all the messages that you get in the log?