Closed zhoutian94 closed 1 year ago
We can easily accomplish this with the ffmpeg program: http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html
We can easily accomplish this with the ffmpeg program: http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html
thanks for you reply, for some reason I can only use "FFmpegFrameGrabber "and "FFmpegFrameRecorder", not ffmpeg directly , is that possible to solve these problem
I tried 'recorder.setVideoCodecName("libx264") ' and 'recorder.setVideoCodecName("H264") ', but no effect
thanks for you reply, for some reason I can only use "FFmpegFrameGrabber "and "FFmpegFrameRecorder", not ffmpeg directly , is that possible to solve these problem
Please try again with the snapshots: http://bytedeco.org/builds/
thanks for you reply, for some reason I can only use "FFmpegFrameGrabber "and "FFmpegFrameRecorder", not ffmpeg directly , is that possible to solve these problem
Please try again with the snapshots: http://bytedeco.org/builds/
See issue #2039
Yes ,I tried again with javacv-platform 1.5.10-SNAPSHOT , and using denpendencies like these : (I'm not sure if the choosen module is right.)
try {
Loader.load(org.bytedeco.ffmpeg.presets.avcodec.class);
pushVideo(pushAddress, pushPotocol, grabber);
} catch (UnsatisfiedLinkError e) {
String path = Loader.cacheResource(avcodec.class, "windows-x86_64/avcodec-60.dll").getPath();
new ProcessBuilder("D:\\dependencies\\DependenciesGui.exe", path).start().waitFor();
}
But nothing error log show, the log still stuck in output.
Info: Output #0, flv, to 'rtmp://127.0.0.1:1935/myapp/m1':
Info: Metadata:
Info: encoder :
Info: Lavf60.3.100
Info:
Info: Stream #0:0
Debug: , 0, 1/1000
Info: : Video: hevc (Main), 1 reference frame ([12][0][0][0] / 0x000C), yuvj420p(pc, bt470bg/bt470bg/smpte170m, left), 1920x1080 (0x0), 0/1, q=2-31
Info: ,
Info: 25 fps,
Info: 1k tbn
Info:
I solved this problem, just replace 'recorder.recordPacket' with 'recorder.record'
Can javacv 1.5.3 solve the problem that h265 cannot be converted to h264?
I'm confused with this, the source video codec is H265, I want to transcode it to H264, So I set recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);, but the video codec of ouput stream still the H265, and can't to play 。 but when source is H264 is fine.
pom snippet:
log snippet(input): (no error)
log snippet(ouput): (no error , and the log stuck in here)