Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ #18

Open
menkeyi opened this issue Apr 3, 2023 · 0 comments
Open

Comments

@menkeyi
Copy link

menkeyi commented Apr 3, 2023

etc/mky/opencv_ffmpeg_streaming/streamer/streamer.cpp: In member function ‘int streamer::Streamer::init(const streamer::StreamerConfig&)’:
/etc/mky/opencv_ffmpeg_streaming/streamer/streamer.cpp:186:37: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
186 | out_codec = avcodec_find_encoder(codec_id);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
| |
| const AVCodec*
make[2]: *** [streamer/CMakeFiles/streamer.dir/build.make:76: streamer/CMakeFiles/streamer.dir/streamer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:126: streamer/CMakeFiles/streamer.dir/all] Error 2

Does not support the ffmpeg 5 version?
(base) root@lab:/etc/mky/opencv_ffmpeg_streaming# ffmpeg -V
ffmpeg version 5.1.1-1ubuntu2.1 Copyright (c) 2000-2022 the FFmpeg developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant