Open WLGQD opened 2 years ago
What happens if you don't call flush()?
What is written in hs_err_pid117652.log is FFmpegFrameRecorder.flush() . I didn't call FFmpegFrameRecorder.flush()
Your crash log says that you're calling flush(). Please try without calling flush().
BTW, it's probably easier to use the ffmpeg program: http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html When that crashes, it doesn't bring down the JVM, so we can recover.
Your crash log says that you're calling flush(). Please try without calling flush().
BTW, it's probably easier to use the ffmpeg program: http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html When that crashes, it doesn't bring down the JVM, so we can recover.
1.the log says FFmpegFrameRecorder.flush() .But I didn't call FFmpegFrameRecorder.flush() explicitly, there is a call to flush() in the source code FFmpegFrameRecorder.close().
public void stop() throws Exception {
if (oc != null) {
try {
flush();
/* write the trailer, if any */
av_write_trailer(oc);
} finally {
release();
}
}
}
2.http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html 。 Error in linux system, Could not initialize class org.bytedeco.ffmpeg.global.avdevice
1.the log says FFmpegFrameRecorder.flush() .But I didn't call FFmpegFrameRecorder.flush() explicitly, there is a call to flush() in the source code FFmpegFrameRecorder.close().
I don't see where you're calling close(). You'll need to call that or it might not work well, that's normal.
2.http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html 。 Error in linux system, Could not initialize class org.bytedeco.ffmpeg.global.avdevice
Please try with the snapshots: http://bytedeco.org/builds/
1.the log says FFmpegFrameRecorder.flush() .But I didn't call FFmpegFrameRecorder.flush() explicitly, there is a call to flush() in the source code FFmpegFrameRecorder.close().
I don't see where you're calling close(). You'll need to call that or it might not work well, that's normal.
2.http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html 。 Error in linux system, Could not initialize class org.bytedeco.ffmpeg.global.avdevice
Please try with the snapshots: http://bytedeco.org/builds/
sorry misspelled, , i call .stop(), there is a call to flush() in the source code FFmpegFrameRecorder.stop().
try {
if (null != recorder){
recorder.stop();
recorder.release();
}
} catch (FFmpegFrameRecorder.Exception e) {
log.error("关闭recorder失败, inputFile:{}", videoFile, e);
}
Does it crash with other formats than wav?
hi , I have a lot of videos that need to extract audio, the service often crashes, I try to add synchronized, but it still appears, there is no error message in the log, and I reprocess the last video, it is normal, you Can you take a look at it for me?
hs_err_pid117652.log