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
, 2 years ago
avcodec_open2() error -22: Could not open video codec.
via GitHub by kostyaev
, 2 years ago
avcodec_open2() error -22: Could not open audio codec.
via GitHub by yesong
, 2 years ago
via GitHub by jananiarvind
, 2 years 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)