leandromoreira / leandromoreira/ffmpeg-libav-tutorial
"COM must not be in STA mode\n"
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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