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
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