Closed sumit33 closed 2 years ago
I don't think "vp8" is a valid format name. Please check the docs.
@saudet yes,its not valid. I changed it with a valid format. But still it shows error.
org.bytedeco.javacv.FrameRecorder$Exception: avcodec_open2() error -22: Could not open video codec.
There's something the codec doesn't like about your settings. Check the log for more information.
@saudet Sorry for the late update. I found out my problem. The jar I used for my application is not enabled with "libvpx" and also facing problems to enabled it. How can I enable "libvpx" in the jar on windows? Or can I get any jar where "libvpx" is already enabled? I'm totally new in this field. Please Help.
Please upgrade to JavaCV 1.5.7.
@saudet solved. The problem is for setting the wrong preset and tune for libvpx. Now it's working. What I get after doing that is an encoded byte buffer. How to decode it for saving and playing?
You can save to a file, and read back with FFmpegFrameGrabber.
I used h264 encoding before that worked fine. But now I want to use vp8 or vp9..I just call "libvpx" library..but it shows error..
av_guess_format() error: Could not guess output format for "" and vp8 format.
This is my code.