Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#118·ffmpeg-libav-tutorial

"COM must not be in STA mode\n"

Author: SulisahneCreated Jul 15, 2022Updated Sep 22, 2022

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?

Source: leandromoreira/ffmpeg-libav-tutorial

View original on GitHubView discussion on GitHub