org.bytedeco.javacv.FrameRecorder$Exception: avcodec_open2() error -1: Could not open video codec.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Tarun Singhal, 1 year ago
avcodec_open2() error -1: Could not open video codec.
via GitHub by alicanalbayrak
, 1 year ago
avcodec_open2() error -22: Could not open video codec.
via GitHub by kostyaev
, 1 year ago
avcodec_open2() error -22: Could not open audio codec.
via GitHub by jananiarvind
, 1 year ago
avcodec_open2() error -22: Could not open video codec.
org.bytedeco.javacv.FrameRecorder$Exception: avcodec_open2() error -1: Could not open video codec.
at org.bytedeco.javacv.FFmpegFrameRecorder.startUnsafe(FFmpegFrameRecorder.java:590)
at org.bytedeco.javacv.FFmpegFrameRecorder.start(FFmpegFrameRecorder.java:294)
at com.ex.videooverlayes.errorinfo.copy.ServiceVideoCreater.prepareRecorder(ServiceVideoCreater.java:777)
at com.ex.videooverlayes.errorinfo.copy.ServiceVideoCreater.onHandleIntent(ServiceVideoCreater.java:289)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago

Know the solutions? Share your knowledge to help other developers to debug faster.