org.bytedeco.javacv.FrameRecorder$Exception

avcodec_open2() error -1: Could not open video codec.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web49

  • via Google Groups by Tarun Singhal, 7 months ago
    avcodec_open2() error -1: Could not open video codec.
  • avcodec_open2() error -1: Could not open video codec.
  • via GitHub by Ragghwendra
    , 1 year ago
    avcodec_open2() error -1: Could not open video codec.
  • Stack trace

    • 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:778) at com.ex.videooverlayes.errorinfo.copy.ServiceVideoCreater.onHandleIntent(ServiceVideoCreater.java:290) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.