leandromoreira / leandromoreira/ffmpeg-libav-tutorial

"COM must not be in STA mode\n"

Open
#118 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Hi

This error occures when calling avcodec_open2 with the AV_CODEC_ID_H265 or AV_CODEC_ID_H264 encoder on windows:

"COM must not be in STA mode\n"
Could not open the codec: "Invalid argument"

Does anyone have an idea how to fix this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows failure at the avcodec_open2 call using the H265 and H264 encoder paths described in the report. Investigate the reported COM STA-mode error alongside the resulting Invalid argument message; done means codec opening succeeds on Windows for the affected encoders, with the behavior verified against the original failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.