Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834379 - gui-apps/wf-recorder-0.2.1-r1 with ffmpeg-5.0: ../wf-recorder-0.2.1/src/frame-writer.cpp:23:9: error: ‘av_register_all’ was not declared in this scope
Summary: gui-apps/wf-recorder-0.2.1-r1 with ffmpeg-5.0: ../wf-recorder-0.2.1/src/frame...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: consus
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
Reported: 2022-02-28 18:53 UTC by Kobboi
Modified: 2022-06-15 17:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

build.log.gz (build.log.gz,2.95 KB, application/gzip)
2022-02-28 18:54 UTC, Kobboi
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 18:54 UTC, Kobboi

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 18:53:55 UTC
[12/15] x86_64-pc-linux-gnu-g++ -Iwf-recorder.p -I. -I../wf-recorder-0.2.1 -I/usr/lib64/libffi/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++11 -Wno-deprecated-declarations -O2 -march=znver3 -pipe -g -ggdb3 -D_REENTRANT -pthread -MD -MQ wf-recorder.p/src_frame-writer.cpp.o -MF wf-recorder.p/src_frame-writer.cpp.o.d -o wf-recorder.p/src_frame-writer.cpp.o -c ../wf-recorder-0.2.1/src/frame-writer.cpp
FAILED: wf-recorder.p/src_frame-writer.cpp.o 
x86_64-pc-linux-gnu-g++ -Iwf-recorder.p -I. -I../wf-recorder-0.2.1 -I/usr/lib64/libffi/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++11 -Wno-deprecated-declarations -O2 -march=znver3 -pipe -g -ggdb3 -D_REENTRANT -pthread -MD -MQ wf-recorder.p/src_frame-writer.cpp.o -MF wf-recorder.p/src_frame-writer.cpp.o.d -o wf-recorder.p/src_frame-writer.cpp.o -c ../wf-recorder-0.2.1/src/frame-writer.cpp
../wf-recorder-0.2.1/src/frame-writer.cpp: In constructor ‘FFmpegInitialize::FFmpegInitialize()’:
../wf-recorder-0.2.1/src/frame-writer.cpp:23:9: error: ‘av_register_all’ was not declared in this scope
   23 |         av_register_all();
      |         ^~~~~~~~~~~~~~~
../wf-recorder-0.2.1/src/frame-writer.cpp: In member function ‘void FrameWriter::init_video_stream()’:
../wf-recorder-0.2.1/src/frame-writer.cpp:154:50: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  154 |     AVCodec* codec = avcodec_find_encoder_by_name(params.codec.c_str());
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  const AVCodec*
../wf-recorder-0.2.1/src/frame-writer.cpp:168:34: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  168 |     videoCodecCtx = videoStream->codec;
      |                                  ^~~~~
../wf-recorder-0.2.1/src/frame-writer.cpp: In member function ‘void FrameWriter::init_audio_stream()’:
../wf-recorder-0.2.1/src/frame-writer.cpp:238:50: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  238 |     AVCodec* codec = avcodec_find_encoder_by_name("aac");
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                                  |
      |                                                  const AVCodec*
../wf-recorder-0.2.1/src/frame-writer.cpp:252:34: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  252 |     audioCodecCtx = audioStream->codec;
      |                                  ^~~~~
../wf-recorder-0.2.1/src/frame-writer.cpp: In constructor ‘FrameWriter::FrameWriter(const FrameWriterParams&)’:
../wf-recorder-0.2.1/src/frame-writer.cpp:356:38: error: invalid conversion from ‘const AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
  356 |     this->outputFmt = av_guess_format(NULL, params.file.c_str(), NULL);
      |                       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      |
      |                                      const AVOutputFormat*
../wf-recorder-0.2.1/src/frame-writer.cpp: In destructor ‘FrameWriter::~FrameWriter()’:
../wf-recorder-0.2.1/src/frame-writer.cpp:631:32: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  631 |     avcodec_close(videoStream->codec);
      |                                ^~~~~
../wf-recorder-0.2.1/src/frame-writer.cpp:637:36: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  637 |         avcodec_close(audioStream->codec);
      |                                    ^~~~~

Reproducible: Always
Comment 1 Kobboi 2022-02-28 18:54:16 UTC
Created attachment 766021 [details]
Comment 2 Kobboi 2022-02-28 18:54:18 UTC
Created attachment 766022 [details]
Comment 3 Larry the Git Cow gentoo-dev 2022-06-15 17:39:49 UTC
The bug has been closed via the following commit(s):

commit 8f5b49114674da8eb7f873c00690f3bbca600f68
Author:     John Helmert III <>
AuthorDate: 2022-06-15 17:20:23 +0000
Commit:     John Helmert III <>
CommitDate: 2022-06-15 17:39:34 +0000

    gui-apps/wf-recorder: add 0.3.0
    Signed-off-by: John Helmert III <>

 gui-apps/wf-recorder/Manifest                 |  1 +
 gui-apps/wf-recorder/wf-recorder-0.3.0.ebuild | 31 +++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)