-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set video codec H265 for FFmpegFrameRecorder? #866
Comments
You'll need to provide a way to reproduce your issue. It works just fine for me on Linux:
|
I used FFmpegFrameRecorder and javacv-platform-1.3.3-bin.zip in android |
You're right, it looks like libx265 doesn't work on Android, which I think has already been reported in issues #41 and bytedeco/javacpp-presets#386. Could you check upstream what's up this? I wasn't able to find anything wrong with the build and the same works on Linux. |
#52) * Fix x265 encoding with FFmpeg on Android (issue bytedeco/javacv#866)
I figured out what the problem was. There was a bug in the patch I created for Android. I've fixed it in the commit above, so please try out new snapshot binaries: http://bytedeco.org/builds/ Thanks! |
we used ffmpeg in conjuction with realm and webrtc. there has always been an issue with loading of libs with ffmpeg. I saw that you created android 64 bit releases. When will it be possible for you to do a release. If it's possible to release by tuesday we can include it in our next app release. or this will get pushed for another month. |
thanks you for support |
@softwarejoint Binaries are available on the snapshot server: http://bytedeco.org/builds/ |
Fix included in JavaCV 1.4.1. Thanks for reporting and enjoy! |
It's not been fixed in version 1.5.2 JavaCV. The settings as below. |
@max-tian I'm pretty sure that works, but please first update to JavaCV 1.5.7 just to be sure. |
I change the video codec to H265 for faster videostream. The following gives me org.bytedeco.javacv.FrameRecorder$Exception: avcodec_open2() error -1: Could not open video codec..
recorder.setSampleRate(sampleAudioRateInHz);
recorder.setVideoBitrate(videoBitrate);
recorder.setVideoCodec(avcodec.AV_CODEC_ID_H265);
recorder.setPixelFormat(avutil.AV_PIX_FMT_YUV420P);
The text was updated successfully, but these errors were encountered: