obs-studio 31.0 with ffmpeg 7.1.1 make error
system and version requirement.
opensuse leap 15.6
ffmpeg 7.1.1
gcc8
error log:
/home/blue/Downloads/obs-studio/libobs/media-io/media-remux.c: In function ‘init_output’:
/home/blue/Downloads/obs-studio/libobs/media-io/media-remux.c:108:53: error: ‘AVCodecParameters’ {aka ‘struct AVCodecParameters’} has n
o member named ‘ch_layout’; did you mean ‘channel_layout’?
av_channel_layout_default(&out_stream->codecpar->ch_layout,
^~~~~~~~~
channel_layout
/home/blue/Downloads/obs-studio/libobs/media-io/media-remux.c:109:30: error: ‘AVCodecParameters’ {aka ‘struct AVCodecParameters’} has n
o member named ‘ch_layout’; did you mean ‘channel_layout’?
in_stream->codecpar->ch_layout.nb_channels);
^~~~~~~~~
channel_layout
/home/blue/Downloads/obs-studio/libobs/media-io/media-remux.c:113:29: error: ‘AVCodecParameters’ {aka ‘struct AVCodecParameters’} has n
o member named ‘ch_layout’; did you mean ‘channel_layout’?
if (in_stream->codecpar->ch_layout.nb_channels == 5)
^~~~~~~~~
channel_layout
/home/blue/Downloads/obs-studio/libobs/media-io/media-remux.c:114:27: error: ‘AVCodecParameters’ {aka ‘struct AVCodecParameters’} has n
o member named ‘ch_layout’; did you mean ‘channel_layout’?
out_stream->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_4POINT1;
^~~~~~~~~
channel_layout
make[2]: *** [libobs/CMakeFiles/libobs.dir/build.make:804: libobs/CMakeFiles/libobs.dir/media-io/media-remux.c.o] Error 1
make[2]: *** Waiting for unfinished jobs….
[ 13%] Built target json11
make[1]: *** [CMakeFiles/Makefile2:1103: libobs/CMakeFiles/libobs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs….
[ 13%] Built target obspython_swig_compilation
[ 13%] Linking CXX executable obs-browser-page
Copy browser-helper to binary directory
[ 13%] Built target browser-helper
make: *** [Makefile:156: all] Error 2
Read more here: Source link