hello:
I am using pipeinputstream to convert H264 data to FLV,When I pause, use the following code to keep the loop going。
// pause sign
if (playstatus) {
Thread.sleep(100);
continue;
}
When I continue playing, an error occurs when I loop to get the pkt and call the recordpacket function. This is an error message:
org.bytedeco.javacv.FrameRecorder$Exception: av_write_frame() error -10053 while writing video packet.
[2020-12-02 10:38:34.447] [pool-1-thread-1] [ERROR] [com.junction.play.RtmpPush] : av_write_frame() error -10053 while writing video packet.
at org.bytedeco.javacv.FFmpegFrameRecorder.writePacket(FFmpegFrameRecorder.java:1257)
at org.bytedeco.javacv.FFmpegFrameRecorder.recordPacket(FFmpegFrameRecorder.java:1292)
at com.junction.play.RtmpPush.push(RtmpPush.java:238)
at com.junction.play.RealPlay.play(RealPlay.java:99)
at com.junction.thread.CameraThread$MyRunnable.run(CameraThread.java:45)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Warning: [flv @ 0000000026c20200] Failed to update header with correct duration.
Warning: [flv @ 0000000026c20200] Failed to update header with correct filesize.
Here is my code, hope to get your help, thank you very much!!
hello: I am using pipeinputstream to convert H264 data to FLV,When I pause, use the following code to keep the loop going。
When I continue playing, an error occurs when I loop to get the pkt and call the recordpacket function. This is an error message:
Here is my code, hope to get your help, thank you very much!!